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
_______________________________________________
Users-prolog mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/users-prolog