mapi/new: reinstate _NO_HIDDEN suffixes in the new generator
Strictly speaking we can rework the rest of the code so we do not need those. That said, this will require a series on it's own so let's carry this local quirk for now. Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
This commit is contained in:
parent
451805f810
commit
313f977224
|
@ -139,7 +139,7 @@ def generate_public_stubs(functions):
|
||||||
return text
|
return text
|
||||||
|
|
||||||
def generate_public_entries(functions):
|
def generate_public_entries(functions):
|
||||||
text = "#ifdef MAPI_TMP_PUBLIC_ENTRIES\n"
|
text = "#ifdef MAPI_TMP_PUBLIC_ENTRIES_NO_HIDDEN\n"
|
||||||
|
|
||||||
for func in functions:
|
for func in functions:
|
||||||
retStr = ("return " if func.hasReturn() else "")
|
retStr = ("return " if func.hasReturn() else "")
|
||||||
|
@ -158,12 +158,12 @@ GLAPI {f.rt} APIENTRY {f.name}({f.decArgs})
|
||||||
for func in functions:
|
for func in functions:
|
||||||
text += " (mapi_func) %s,\n" % (func.name,)
|
text += " (mapi_func) %s,\n" % (func.name,)
|
||||||
text += "};\n"
|
text += "};\n"
|
||||||
text += "#undef MAPI_TMP_PUBLIC_ENTRIES\n"
|
text += "#undef MAPI_TMP_PUBLIC_ENTRIES_NO_HIDDEN\n"
|
||||||
text += "#endif /* MAPI_TMP_PUBLIC_ENTRIES */\n"
|
text += "#endif /* MAPI_TMP_PUBLIC_ENTRIES_NO_HIDDEN */\n"
|
||||||
return text
|
return text
|
||||||
|
|
||||||
def generate_stub_asm_gcc(functions):
|
def generate_stub_asm_gcc(functions):
|
||||||
text = "#ifdef MAPI_TMP_STUB_ASM_GCC\n"
|
text = "#ifdef MAPI_TMP_STUB_ASM_GCC_NO_HIDDEN\n"
|
||||||
text += "__asm__(\n"
|
text += "__asm__(\n"
|
||||||
|
|
||||||
for func in functions:
|
for func in functions:
|
||||||
|
@ -171,8 +171,8 @@ def generate_stub_asm_gcc(functions):
|
||||||
text += '"\\t"STUB_ASM_CODE("%d")"\\n"\n\n' % (func.slot,)
|
text += '"\\t"STUB_ASM_CODE("%d")"\\n"\n\n' % (func.slot,)
|
||||||
|
|
||||||
text += ");\n"
|
text += ");\n"
|
||||||
text += "#undef MAPI_TMP_STUB_ASM_GCC\n"
|
text += "#undef MAPI_TMP_STUB_ASM_GCC_NO_HIDDEN\n"
|
||||||
text += "#endif /* MAPI_TMP_STUB_ASM_GCC */\n"
|
text += "#endif /* MAPI_TMP_STUB_ASM_GCC_NO_HIDDEN */\n"
|
||||||
return text
|
return text
|
||||||
|
|
||||||
if (__name__ == "__main__"):
|
if (__name__ == "__main__"):
|
||||||
|
|
Loading…
Reference in New Issue