summaryrefslogtreecommitdiff
path: root/src/minimacro.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/minimacro.cpp')
-rw-r--r--src/minimacro.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/minimacro.cpp b/src/minimacro.cpp
index ecacd79..6fc5382 100644
--- a/src/minimacro.cpp
+++ b/src/minimacro.cpp
@@ -73,7 +73,7 @@ Bu::FString Bu::MiniMacro::parseRepl()
73 bool bIsFirst = true; 73 bool bIsFirst = true;
74 for( const char *sNext = sCur;;) 74 for( const char *sNext = sCur;;)
75 { 75 {
76 for(; *sNext != ':' && *sNext != '}' && *sNext != '\0'; sNext++ ); 76 for(; *sNext != ':' && *sNext != '}' && *sNext != '\0'; sNext++ ) { }
77 if( *sNext == '\0' ) 77 if( *sNext == '\0' )
78 break; 78 break;
79 Bu::FString sName( sCur, (ptrdiff_t)sNext-(ptrdiff_t)sCur ); 79 Bu::FString sName( sCur, (ptrdiff_t)sNext-(ptrdiff_t)sCur );
@@ -113,7 +113,7 @@ Bu::FString Bu::MiniMacro::parseCmd()
113{ 113{
114 Bu::FString sOut; 114 Bu::FString sOut;
115 const char *sNext = sCur; 115 const char *sNext = sCur;
116 for(; *sNext != ':' && *sNext != '}' && *sNext != '\0'; sNext++ ); 116 for(; *sNext != ':' && *sNext != '}' && *sNext != '\0'; sNext++ ) { }
117 if( *sNext != '\0' ) 117 if( *sNext != '\0' )
118 { 118 {
119 Bu::FString sName( sCur, (ptrdiff_t)sNext-(ptrdiff_t)sCur ); 119 Bu::FString sName( sCur, (ptrdiff_t)sNext-(ptrdiff_t)sCur );
@@ -149,9 +149,9 @@ Bu::FString Bu::MiniMacro::callFunc(
149 StrList lsParams; 149 StrList lsParams;
150 for( const char *s = sFunc.getStr()+i+1; *s && *s != ')'; s++ ) 150 for( const char *s = sFunc.getStr()+i+1; *s && *s != ')'; s++ )
151 { 151 {
152 for(; *s == ' ' || *s == '\t' || *s == '\r' || *s == '\n'; s++ ); 152 for(; *s == ' ' || *s == '\t' || *s == '\r' || *s == '\n'; s++ ) { }
153 const char *sNext; 153 const char *sNext;
154 for( sNext = s; *sNext && *sNext != ')' && *sNext != ','; sNext++ ); 154 for( sNext = s; *sNext && *sNext != ')' && *sNext != ','; sNext++ ) { }
155 Bu::FString p( s, (ptrdiff_t)sNext-(ptrdiff_t)s ); 155 Bu::FString p( s, (ptrdiff_t)sNext-(ptrdiff_t)s );
156 lsParams.append( p ); 156 lsParams.append( p );
157 sNext++; 157 sNext++;