diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2013-02-24 13:15:53 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2013-02-24 13:15:53 +0100 |
commit | f5253185aa55a46cb3da80f66e7127a45c82052f (patch) | |
tree | 3868f1ed2c708176d9d072dfbad26487639df582 /src/symbols.h | |
parent | fd4b89e797c1efc73304fa4da073fb31f55527f1 (diff) | |
download | sciteco-f5253185aa55a46cb3da80f66e7127a45c82052f.tar.gz |
cleaned up SymbolList class: make attributes private
* they were logically private but still declared public so that
initializer constructor functions could access them.
* instead, now use friend classes
* has the side effect that initializing priority can be declared
using GCC's init_priority attribute which works with earlier
compilers than the constructor (with priority) attribute
Diffstat (limited to 'src/symbols.h')
-rw-r--r-- | src/symbols.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/symbols.h b/src/symbols.h index bb27d01..1e94e98 100644 --- a/src/symbols.h +++ b/src/symbols.h @@ -22,7 +22,6 @@ #include <glib.h> class SymbolList { -public: struct Entry { const gchar *name; gint value; @@ -30,8 +29,6 @@ public: const Entry *entries; gint size; - -private: int (*cmp_fnc)(const char *, const char *, size_t); /* for auto-completions */ @@ -53,6 +50,10 @@ public: gint lookup(const gchar *name, const gchar *prefix = ""); GList *get_glist(void); + + /* generated per Scintilla SymbolList */ + friend class SymbolListInitializer_scintilla; + friend class SymbolListInitializer_scilexer; }; namespace Symbols { |