aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/symbols-extract.tes
diff options
context:
space:
mode:
Diffstat (limited to 'src/symbols-extract.tes')
-rwxr-xr-xsrc/symbols-extract.tes22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/symbols-extract.tes b/src/symbols-extract.tes
index 7d12ea8..3f71629 100755
--- a/src/symbols-extract.tes
+++ b/src/symbols-extract.tes
@@ -33,20 +33,28 @@ I/*
#include "Q#in"
#include "sciteco.h"
-#include "symbols.h"
+#include "scintilla.h"
-namespace SciTECO {
-
-static const SymbolList::Entry entries[] = {^J
+static const teco_symbol_entry_t entries[] = {^J
<
.,W.Xa 0KK
I#ifdef Qa^J^I{"Qa", Qa},^J#endif^J
.-Z;>
I};
-SymbolList Symbols::Q[getopt.n](entries, G_N_ELEMENTS(entries));
-
-} /* namespace SciTECO */^J
+static void __attribute__((constructor))
+teco_symbols_init(void)
+{
+ teco_symbol_list_init(&Q[getopt.n], entries, G_N_ELEMENTS(entries), FALSE);
+}
+
+#ifndef NDEBUG
+static void __attribute__((destructor))
+teco_cmdline_cleanup(void)
+{
+ teco_symbol_list_clear(&Q[getopt.n]);
+}
+#endif^J
!* write output file *!
EWQ#ou