diff options
author | nyamatongwe <unknown> | 2000-09-07 12:34:13 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2000-09-07 12:34:13 +0000 |
commit | 0197776bc8d55c49a6e608a35525714814fc4fcc (patch) | |
tree | bdb6425a2954a543d62f9a57f492412b9c6f1b5a /src/PropSet.cxx | |
parent | 253de8c6859edcaf349abeea4e8405d19669289e (diff) | |
download | scintilla-mirror-0197776bc8d55c49a6e608a35525714814fc4fcc.tar.gz |
Changed back to two pass way of creating word arrays.
Diffstat (limited to 'src/PropSet.cxx')
-rw-r--r-- | src/PropSet.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/PropSet.cxx b/src/PropSet.cxx index 27cd51baa..a58d14316 100644 --- a/src/PropSet.cxx +++ b/src/PropSet.cxx @@ -336,7 +336,7 @@ static bool iswordsep(char ch, bool onlyLineEnds) { // Creates an array that points into each word in the string and puts \0 terminators // after each word. static char **ArrayFromWordList(char *wordlist, int *len, bool onlyLineEnds = false) { -#if 0 +#if 1 char prev = '\n'; int words = 0; for (int j = 0; wordlist[j]; j++) { @@ -403,7 +403,11 @@ out: void WordList::Clear() { if (words) { delete []list; +#if 1 + delete []words; +#else free(words); +#endif free(wordsNoCase); } words = 0; |