aboutsummaryrefslogtreecommitdiffhomepage
path: root/symbols.cpp
AgeCommit message (Collapse)AuthorFilesLines
2012-11-24cache GLists corresponding to symbol listsRobin Haberkorn1-4/+4
2012-11-24allow symbolic names (symbols) being specified for the scintilla (ES) commandRobin Haberkorn1-2/+15
* new syntax is <[lParam,[wParam,[msg]]]>ES[msg[,wParam[,lParam]]]$[lParam string]$ * symbols are matched case-insensitive, the leading SCI_ for message symbols may be omitted * added support for more multiple string arguments (for commands in general) * fixed "C conditional: succeeds for every alpanumeric character, dot, dollar or underscore * added SCLEX_ and SCE_ constants as symbols * updated teco.ini: using symbolic names is preferred since that way code does not depend on the current Scintilla version
2012-11-23system for looking up static symbolsRobin Haberkorn1-0/+47
* symbols are extracted from C header files by a TECO macro * macro is executed using a "minimal" version of SciTECO that does not include symbols (uses gcc's weak symbols) * the generated C++ code contains the symbol-name-to-define mapping as a constant sorted array and initializes the appropriate SymbolList object * a symbol lookup is super fast using a simple binary search in the symbol lists * except for object initialization, no there's no overhead for keeping the symbol lists! * build process is complicated by introduction of bootstrapping via sciteco-minimal