Browse Source

Fixed symbol/dynobj mixup

master
dirkson 3 years ago
parent
commit
b87917dbb4
  1. 2
      genfiles/ncurses.gen
  2. 2
      src/gen.c

2
genfiles/ncurses.gen

@ -3,6 +3,8 @@ ncurses {
libncurses.so
libncurses.so.5
libncurses.so.6
libncurses.so.6.1
libncurses.so.6.2
}
gcc {
}

2
src/gen.c

@ -148,7 +148,7 @@ int dynloadgen_write_header(gendata_t *gendata)
fprintf(file, "void* dynload_%s_symbol_pointers[DYNLOAD_%s_SYMBOL_NUM];\n", gendata->name, upperName);
fprintf(file, "char* dynload_%s_dynobj[DYNLOAD_%s_SYMBOL_NUM] = { ", gendata->name, upperName);
fprintf(file, "char* dynload_%s_dynobj[DYNLOAD_%s_DYNOBJ_NUM] = { ", gendata->name, upperName);
for (i = 0; i < gendata->lib.dynobj_num; i++)
{
fprintf(file, "\"%s\", ", gendata->lib.dynobj[i]);

Loading…
Cancel
Save