aboutsummaryrefslogtreecommitdiffhomepage
path: root/internalize_scripts.py
diff options
context:
space:
mode:
Diffstat (limited to 'internalize_scripts.py')
-rwxr-xr-xinternalize_scripts.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/internalize_scripts.py b/internalize_scripts.py
index 99f20445..9d9770f1 100755
--- a/internalize_scripts.py
+++ b/internalize_scripts.py
@@ -66,7 +66,7 @@ funcs.sort(key=cfunc.cfunc_name)
fd = open('builtin_scripts.h', 'w')
fd.write('/* This file is generated by internalize_scripts.py */\n\n')
fd.write("""struct builtin_script_t {
- const char *name;
+ const wchar_t *name;
const char *def;
};""")
@@ -85,7 +85,7 @@ for func in funcs:
fd.write('\n')
# Output the refs
-func_refs = ["{%s, %s}" % (stringize(func.name), func.cfunc_name()) for func in funcs]
+func_refs = ["{L%s, %s}" % (stringize(func.name), func.cfunc_name()) for func in funcs]
fd.write('const struct builtin_script_t internal_function_scripts[%d] =\n' % len(funcs))
fd.write('{\n\t')
fd.write(',\n\t'.join(func_refs))