users-prolog
[Top][All Lists]
Advanced

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

Re: constant values INDOMAIN_* in fd_values_c.c


From: Daniel Diaz
Subject: Re: constant values INDOMAIN_* in fd_values_c.c
Date: Fri, 10 Feb 2006 14:45:58 +0100
User-agent: Thunderbird 1.5 (X11/20051201)

Otmane BENKIRANE a écrit :
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

Each Prolog predicate gives rise to a C identifier built with the ASCII code of each character of the predicate. In this case the predicate is '$indomain_random_alt' defined in fd_values.pl (24 is the ASCII code of $, 69 of i,...).

A way to obtain it is to use hexgplc as follows:

hexgplc -H '$indomain_random_alt'
X24696E646F6D61696E5F72616E646F6D5F616C74

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



--
Ce message a été vérifié par MailScanner
pour des virus ou des polluriels et rien de
suspect n'a été trouvé.





reply via email to

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