526c0f9d45
from Jeremy Evans (maintainer)
24 lines
780 B
Plaintext
24 lines
780 B
Plaintext
$OpenBSD: patch-src_KeyWords_cxx,v 1.3 2008/03/22 11:44:42 steven Exp $
|
|
--- src/KeyWords.cxx.orig Tue Jun 19 16:12:16 2007
|
|
+++ src/KeyWords.cxx Tue Jun 19 16:14:30 2007
|
|
@@ -77,7 +77,8 @@ int LexerModule::GetStyleBitsNeeded() const {
|
|
|
|
const LexerModule *LexerModule::Find(int language) {
|
|
const LexerModule *lm = base;
|
|
- while (lm) {
|
|
+ int i;
|
|
+ for(i=0; lm && i < 88; i++) {
|
|
if (lm->language == language) {
|
|
return lm;
|
|
}
|
|
@@ -89,7 +90,8 @@ const LexerModule *LexerModule::Find(int language) {
|
|
const LexerModule *LexerModule::Find(const char *languageName) {
|
|
if (languageName) {
|
|
const LexerModule *lm = base;
|
|
- while (lm) {
|
|
+ int i;
|
|
+ for(i=0; lm && i < 88; i++) {
|
|
if (lm->languageName && 0 == strcmp(lm->languageName, languageName)) {
|
|
return lm;
|
|
}
|