Re: Queries
Bruno Haible <[email protected]>
| Newsgroups | gmane.lisp.clisp.devel |
|---|---|
| Message-ID | <2368646.zpYjdKcJRW@omega> |
Compro Prasad wrote:
> What do the following file naming conventions refer to:
> + spvw*
> + clos*
> + ari*
http://clisp.org/impnotes/src-files.html
> + *.d (why not the default *.c)
http://clisp.org/impnotes/src-file-types.html
After some lightweight preprocessing, it's C code.
> Can you explain the following line. I was too stuck here but couldn't
> understand the syntax from "object" to "=". It would be better if you
> can tell me the fine details of why and how do you estimate it lies in
> that specific location in memory:
> #define S_help_(name)
> (((object){.one_o=((oint)((UBYTE*)((&symbol_tab_data.name))+((oint)(tint)((
> (1UL<<(2)) ))<<48)))}))
It uses the so-called "designated initializer" syntax of C:
(struct_type){.member=value}
See https://gcc.gnu.org/onlinedocs/gcc/Designated-Inits.html
and ISO C11 section 6.7.9.
This macro S_help_ relies on how the symbol_tab gets initialized (in spvw.d).
Bruno
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
clisp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-devel