Re: constant values INDOMAIN_* in fd_values_c.c

Daniel Diaz <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <[email protected]>
Sorry for the late reply

to refer a Prolog predicate from a C code you have to use the hexgplc 
tool (provided with GNU Prolog).

See: http://gnu-prolog.inria.fr/manual/manual008.html#toc11

For instance to find the name of the predicate foo use:

    hexgplc -H foo
gives:
    X666F6F

The name of the symbol corresponding to foo is then: X666F6F

Similarly:

    hexgplc -H indomain_random_alt
gives:
    X696E646F6D61696E5F72616E646F6D5F616C74

Cheers

Otmane BENKIRANE wrote:
> hello,
> 
> thank you for you last answer.
> 
> In the fd_values_c.c file, I don't understand what's mean  the  constant
> value in #define (an ascii conversion, ...), how  can i  obtain this
> value if i define others constants ?
> example :
> #define INDOMAIN_RANDOM_ALT  X24696E646F6D61696E5F72616E646F6D5F616C74
> 
> Thanks
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.