From 9dd2447d42fd6c822139f3cd1fd2cd284346e5e8 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Fri, 1 Feb 2013 19:34:23 +0100 Subject: fixed buffer Ring initialization * there was a dependency on interface initialization. it did not cause issues because destruction order was by chance. * introduced INIT_PRIO and PRIO_* macros to easy initialization order declaration (using a PRIO_* formula makes code self-documenting) * also used this to clean up QRegisterTable initialization (we do not need the explicit initialize() method) * also used to clean up symbols initialization --- src/symbols.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/symbols.cpp') diff --git a/src/symbols.cpp b/src/symbols.cpp index 6943b7c..5b0de92 100644 --- a/src/symbols.cpp +++ b/src/symbols.cpp @@ -23,14 +23,15 @@ #include +#include "sciteco.h" #include "symbols.h" /* * Constructors executed before the ones defined in generated code. */ namespace Symbols { - SymbolList __attribute__((init_priority(1000))) scintilla; - SymbolList __attribute__((init_priority(1000))) scilexer; + SymbolList scintilla INIT_PRIO(PRIO_SYMBOLS-1); + SymbolList scilexer INIT_PRIO(PRIO_SYMBOLS-1); } /* -- cgit v1.2.3