[libxml2] Update build_glob.py
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] Update build_glob.py
- Date: Wed, 2 Mar 2022 19:52:09 +0000 (UTC)
commit eca472effec753b9bc695044e5ee3a7a1637c8b3
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Wed Mar 2 02:50:19 2022 +0100
Update build_glob.py
This script generated parts of globals.c. Some adjustments are still
needed to make it usable again.
build_glob.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/build_glob.py b/build_glob.py
index 8855ec79..46d6288f 100755
--- a/build_glob.py
+++ b/build_glob.py
@@ -68,7 +68,7 @@ if __name__ == "__main__":
fields = string.split(line, ",")
# Update the header file
writeline(global_functions_hdr)
- global_functions_hdr.write("extern "+fields[0]+" *")
+ global_functions_hdr.write("XMLPUBFUN "+fields[0]+" * XMLCALL ")
if fields[2]:
global_functions_hdr.write("(*")
global_functions_hdr.write("__"+fields[1]+"(void)")
@@ -80,13 +80,13 @@ if __name__ == "__main__":
writeline(global_functions_hdr,"(*(__"+fields[1]+"()))")
writeline(global_functions_hdr,"#else")
if fields[2]:
- writeline(global_functions_hdr,"LIBXML_DLL_IMPORT extern "+fields[0]+" "+fields[1]+fields[2]+";")
+ writeline(global_functions_hdr,"XMLPUBVAR "+fields[0]+" "+fields[1]+fields[2]+";")
else:
- writeline(global_functions_hdr,"LIBXML_DLL_IMPORT extern "+fields[0]+" "+fields[1]+";")
+ writeline(global_functions_hdr,"XMLPUBVAR "+fields[0]+" "+fields[1]+";")
writeline(global_functions_hdr,"#endif")
# set/get for per-thread global defaults
if fields[3]:
- writeline(global_functions_hdr,fields[0]+"
"+fields[1][:3]+"ThrDef"+fields[1][3:]+"("+fields[0]+" v);")
+ writeline(global_functions_hdr,"XMLPUBFUN "+fields[0]+" XMLCALL
"+fields[1][:3]+"ThrDef"+fields[1][3:]+"("+fields[0]+" v);")
# Update the implementation file
writeline(global_functions_impl)
# writeline(global_functions_impl, "extern "+fields[0]+" "+fields[1]+";")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]