diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-12-05 07:37:17 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-12-05 07:37:17 +0100 |
commit | a54b49f5a8858ae6603d0db56019adc3ce0dff90 (patch) | |
tree | 40894af980f74648a43d5c322e4501b3a400c4cd /src/symbols.h | |
parent | 29d54a4b19caf94b2efd2bd537e8c24f70e9520b (diff) | |
download | sciteco-a54b49f5a8858ae6603d0db56019adc3ce0dff90.tar.gz |
windows compatibility changes
* respect executable extensions
* do not use weak symbols which appear to be broken on MinGW.
Instead, the generated symbol constants contain constructor functions
initializing the corresponding objects. Constructor priorities are used
to ensure that the initialization takes place after the dummy (NULL)
initialization.
* do not change the working dir (causes trouble when sciteco gets passed
relative paths but the exe is not in the current dir)
instead look for teco.ini in program's directory
Diffstat (limited to 'src/symbols.h')
-rw-r--r-- | src/symbols.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/symbols.h b/src/symbols.h index dd8bcc4..58bf1ef 100644 --- a/src/symbols.h +++ b/src/symbols.h @@ -27,10 +27,10 @@ public: gint value; }; -private: const Entry *entries; gint size; +private: /* for auto-completions */ GList *list; @@ -48,8 +48,8 @@ public: }; namespace Symbols { - extern SymbolList __attribute__((weak)) scintilla; - extern SymbolList __attribute__((weak)) scilexer; + extern SymbolList scintilla; + extern SymbolList scilexer; } #endif |