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: Mon, 30 May 2005 10:48:13 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a5) Gecko/20041122

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





reply via email to

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