diff options
| author | nyamatongwe <devnull@localhost> | 2002-02-12 03:34:52 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2002-02-12 03:34:52 +0000 | 
| commit | 11d2193b5c81e3c53b5f7d4c6db2b72b4228ff68 (patch) | |
| tree | 8fe49a32298d50683cafe1b03bf44a4d5dd32920 | |
| parent | f680b6eca633a8f8e5849554bfe8f7117fa625b6 (diff) | |
| download | scintilla-mirror-11d2193b5c81e3c53b5f7d4c6db2b72b4228ff68.tar.gz | |
Made lexer objects const so they do not show up in map as static / globals.
File specific inline functions marker as static to ensure no bad linking.
| -rw-r--r-- | src/Document.cxx | 2 | ||||
| -rw-r--r-- | src/KeyMap.cxx | 2 | 
2 files changed, 2 insertions, 2 deletions
| diff --git a/src/Document.cxx b/src/Document.cxx index 8b40806f3..76695efe5 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -19,7 +19,7 @@  #include "RESearch.h"  // This is ASCII specific but is safe with chars >= 0x80 -inline bool isspacechar(unsigned char ch) { +static inline bool isspacechar(unsigned char ch) {  	return (ch == ' ') || ((ch >= 0x09) && (ch <= 0x0d));  } diff --git a/src/KeyMap.cxx b/src/KeyMap.cxx index e1fe8e032..761df4c8f 100644 --- a/src/KeyMap.cxx +++ b/src/KeyMap.cxx @@ -62,7 +62,7 @@ unsigned int KeyMap::Find(int key, int modifiers) {  	return 0;  } -KeyToCommand KeyMap::MapDefault[] = { +const KeyToCommand KeyMap::MapDefault[] = {      {SCK_DOWN,		SCI_NORM,	SCI_LINEDOWN},      {SCK_DOWN,		SCI_SHIFT,	SCI_LINEDOWNEXTEND},      {SCK_DOWN,		SCI_CTRL,	SCI_LINESCROLLDOWN}, | 
