pike.git / bin / fake_dynamic_load.pike

version» Context lines:

pike.git/bin/fake_dynamic_load.pike:471:    sizeof(prototypes),sizeof(prototypes)==1?"":"s");    }else{    string ret="/* Fake prototypes */\n";    foreach(prototypes, mixed expr)    ret+=sprintf("extern int %s;\n",expr->name);    ret+="\nvoid *PikeSymbol[]= {\n";    foreach(prototypes, mixed expr)    ret+=sprintf(" (void *)& %s,\n",expr->name,expr->name);    ret+="0 };\n\n";    -  /* Fixme: touch module_magic.h if we need to -  * recompile all the modules. -  */ -  +     Stdio.write_file("export_functions.c",ret);       ret="PMOD_EXPORT extern void **PikeSymbol;\n";    int num=0;    foreach(prototypes, mixed expr)    {    ret+=sprintf("/* %s */\n#define %s (*(%s)(PikeSymbol[%d]))\n",    expr->location || "",    expr->name,    expr->ptrtype,