aboutsummaryrefslogtreecommitdiffhomepage
path: root/internalize_scripts.py
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-01-05 11:44:57 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-01-13 23:54:16 -0800
commit57c9eeeecb57a618ab534135f07144a4bbc99324 (patch)
tree26b09f7671578e55877a3cf47ae49ac0b8d595ab /internalize_scripts.py
parentf78c4fa751fa3bb6a99b6329af0444170b1febc6 (diff)
Changes related to supporting "intern scripts." These are scripts that used to be installed in /share/functions, but now are just compiled-in strings. This should reduce the amount of I/O done at launch time.
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))