Rev 6021 | Rev 6742 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6021 | Rev 6058 | ||
---|---|---|---|
Line 179... | Line 179... | ||
179 | $inc text2 |
179 | $inc text2 |
180 | } |
180 | } |
181 | return 0; |
181 | return 0; |
182 | } |
182 | } |
Line -... | Line 183... | ||
- | 183 | ||
- | 184 | inline signed int streq(dword text1, text2) { |
|
- | 185 | if (!strcmp(text1,text2)) return true; else return false; |
|
- | 186 | } |
|
183 | 187 | ||
184 | /* |
188 | /* |
185 | signed int strncmp(dword s1, s2, signed n) |
189 | signed int strncmp(dword s1, s2, signed n) |
186 | unsigned char _s1,_s2; |
190 | unsigned char _s1,_s2; |
187 | { |
191 | { |
Line 383... | Line 387... | ||
383 | EDI = strlen(ESI); |
387 | EDI = strlen(ESI); |
384 | ESBYTE[ESI+EDI] = BL; |
388 | ESBYTE[ESI+EDI] = BL; |
385 | ESBYTE[ESI+EDI+1] = 0; |
389 | ESBYTE[ESI+EDI+1] = 0; |
386 | } |
390 | } |
Line 387... | Line -... | ||
387 | - | ||
388 | - | ||
389 | inline fastcall signed int old_strchr( ESI,BL) |
- | |
390 | { |
- | |
391 | int jj=0; |
- | |
392 | do{ |
- | |
393 | jj++; |
- | |
394 | $lodsb |
- | |
395 | IF(AL==BL) return jj; |
- | |
396 | } while(AL!=0); |
- | |
397 | return 0; |
- | |
398 | } |
- | |
399 | 391 | ||
400 | inline dword strchr(dword shb;char s) |
392 | inline dword strchr(dword shb;char s) |
401 | { |
393 | { |
402 | char ss; |
394 | char ss; |
403 | loop() |
395 | loop() |
Line 895... | Line 887... | ||
895 | text2++; |
887 | text2++; |
896 | } |
888 | } |
897 | return 0; |
889 | return 0; |
898 | } |
890 | } |
Line 899... | Line -... | ||
899 | - | ||
900 | inline void debugi(dword d_int) |
- | |
901 | { |
- | |
902 | char tmpch[12]; |
- | |
903 | itoa_(#tmpch, d_int); |
- | |
904 | debugln(#tmpch); |
- | |
905 | } |
- | |
906 | - | ||
907 | 891 | ||
908 | #define strnmov strmovn |
892 | #define strnmov strmovn |
909 | #define stricmp strcmpi |
893 | #define stricmp strcmpi |
Line 910... | Line 894... | ||
910 | #define strcmpn strncmp |
894 | #define strcmpn strncmp |
911 | 895 |