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.cpp | |
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.cpp')
-rw-r--r-- | src/symbols.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/symbols.cpp b/src/symbols.cpp index 8772fc9..3cafaaa 100644 --- a/src/symbols.cpp +++ b/src/symbols.cpp @@ -26,11 +26,11 @@ #include "symbols.h" /* - * defaults for sciteco-minimal + * Constructors executed before the ones defined in generated code. */ namespace Symbols { - SymbolList __attribute__((weak)) scintilla; - SymbolList __attribute__((weak)) scilexer; + SymbolList __attribute__((init_priority(1000))) scintilla; + SymbolList __attribute__((init_priority(1000))) scilexer; } /* |