Your error description is a bit vague. Do you mean it doesn't compile? Do you include program.h in external.c?
/ Martin Nilsson (provokatör)
Previous text:
2004-03-26 23:38: Subject: ADD_FUNCTION() macro on pike 7.5 ?
Hello there,
Does ADD_FUNCTION macro still works outside the program scope on the module level in a Pike C module (not in a cmod) ? We have currently issues in our Caudium C module... and it seems that the following code has stopped to work :
main.c
/* ... */
void pike_module_init( void ) {
/* some other add_function_constant() */
add_function_constant( "http_date", f_http_date, "function(int|void:string)", 0);
/* */
init_external_module();
/* */
}
in external.c we have :
void init_external_module (void) {
ADD_FUNCTION("whatever",f_whatever, tFunc(tVoid, tInt), 0);
}
Before (on 7.2 and in 7.4) it has used to work, but today on Pike 7.5 it has suddenlt stopped to work...
Is this normal ?
/Xavier
-- Xavier Beaudouin - Unix System Administrator & Projects Leader. President of Kazar Organization : http://www.kazar.net/ Please visit http://caudium.net/, home of Caudium & Camas projects
/ Brevbäraren