guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: freeing srcprops ?


From: Kevin Ryde
Subject: Re: freeing srcprops ?
Date: Fri, 19 Jan 2007 10:28:28 +1100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

Han-Wen Nienhuys <address@hidden> writes:
>
>  SCM
>  scm_make_srcprops (long line, int col, SCM filename, SCM copy, SCM plist)
>  {
> +  if (!SCM_UNBNDP (filename))
> +    plist = scm_acons (scm_sym_filename, filename, plist);

Can those two cells be shared among all source props for the same
file, to save space?

> +  SCM_RETURN_NEWSMOB3 (scm_tc16_srcprops,
> +                    SRCPROPMAKPOS (line, col),

If col is a freaky big value then perhaps put it in the plist.  Could
be helpful if there's stupidly long lines in some generated code file,
wouldn't cost anything normally.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]