aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Fabio Bas2009-12-18 10:26:06 +0000
committerGravatar Fabio Bas2009-12-18 10:26:06 +0000
commitff5bac65d7cddd99b775a1472fec186d1fdddcc1 (patch)
treef34a1b34350a04bfceb3b7bd229c5cc9e2345921
parentfix for #649 (diff)
downloadKVIrc-ff5bac65d7cddd99b775a1472fec186d1fdddcc1.tar.gz
KVIrc-ff5bac65d7cddd99b775a1472fec186d1fdddcc1.tar.bz2
KVIrc-ff5bac65d7cddd99b775a1472fec186d1fdddcc1.zip
applied grammar patch by DarthGandalf
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@3708 17fca916-40b9-46aa-a4ea-0a15b648b75c
-rw-r--r--src/kvirc/ui/kvi_ircview_gettextline.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/kvirc/ui/kvi_ircview_gettextline.cpp b/src/kvirc/ui/kvi_ircview_gettextline.cpp
index 4df98ae48..7d2e5a595 100644
--- a/src/kvirc/ui/kvi_ircview_gettextline.cpp
+++ b/src/kvirc/ui/kvi_ircview_gettextline.cpp
@@ -219,7 +219,7 @@ const kvi_wchar_t * KviIrcView::getTextLine(int iMsgType,
// return to the appropriate loop
// This is again BAD PROGRAMMING(TM) :).... but it is faster than
// the version with no dynamic gotos, and really faster
- // that any version without gotos that comed into my mind...
+ // that any version without gotos that came into my mind...
//
// This code will prolly work only with GCC...(and even needs a "smart" one)
@@ -246,7 +246,7 @@ const kvi_wchar_t * KviIrcView::getTextLine(int iMsgType,
// ...we have less instructions , but the code takes longer to execute (7-8% longer)
// it might be also due to pipeline tricks, jump "next instruction precalculation" stuff...
- // So we end up using the fist version here
+ // So we end up using the first version here
void * loop_begin;
@@ -321,7 +321,7 @@ const kvi_wchar_t * KviIrcView::getTextLine(int iMsgType,
if(KVI_OPTION_BOOL(KviOption_boolIrcViewUrlHighlighting) || KVI_OPTION_BOOL(KviOption_boolDrawEmoticons))
{
loop_begin = &&highlighting_check_loop; // get the address of the return label
- // forewer loop
+ // forever loop
highlighting_check_loop:
// yet more optimized
if(*((unsigned short *)p) < 0xff)
@@ -330,16 +330,16 @@ highlighting_check_loop:
//nothing_found:
p++;
goto highlighting_check_loop;
- // newer here
+ // never here
} else {
loop_begin = &&escape_check_loop; // get the address of the return label
// forever loop
escape_check_loop:
while(*((unsigned short *)p) > 31)p++;
goto check_escape_switch; // returns to escape_check_loop or returns from the function at all
- // newer here
+ // never here
}
- // newer here
+ // never here
#else // !COMPILE_USE_DYNAMIC_LABELS