diff options
author | Mike Buland <eichlan@xagasoft.com> | 2008-09-24 03:22:58 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2008-09-24 03:22:58 +0000 |
commit | 0975d66d2f06603f5e4016440b333aac88e2958a (patch) | |
tree | cd3767fb74c2475fd78bca9ff2d3ba825dd329f4 /src/minimacro.cpp | |
parent | 17df4c2b9616c29865b0d893cc797d4938a660a2 (diff) | |
download | libbu++-0975d66d2f06603f5e4016440b333aac88e2958a.tar.gz libbu++-0975d66d2f06603f5e4016440b333aac88e2958a.tar.bz2 libbu++-0975d66d2f06603f5e4016440b333aac88e2958a.tar.xz libbu++-0975d66d2f06603f5e4016440b333aac88e2958a.zip |
Ok, now all the warnings are gone (except for those coming from nids, but that's
ok, nids is still in flux, they'll be gone soon).
Diffstat (limited to 'src/minimacro.cpp')
-rw-r--r-- | src/minimacro.cpp | 8 |
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++; |