Removed (pretty inconsistently used) tab chars from source code base.
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Data */
|
||||
/* Data */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ static char* Last = 0;
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Code */
|
||||
/* Code */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
@@ -34,24 +34,24 @@ char* __fastcall__ strtok (register char* s1, const char* s2)
|
||||
|
||||
/* Use the stored location if called with a NULL pointer */
|
||||
if (s1 == 0) {
|
||||
s1 = Last;
|
||||
s1 = Last;
|
||||
}
|
||||
|
||||
/* If s1 is empty, there are no more tokens. Return 0 in this case. */
|
||||
if (*s1 == '\0') {
|
||||
return 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Search the address of the first element in s1 that equals none
|
||||
* of the characters in s2.
|
||||
*/
|
||||
while ((c = *s1) && strchr (s2, c) != 0) {
|
||||
++s1;
|
||||
++s1;
|
||||
}
|
||||
if (c == '\0') {
|
||||
/* No more tokens found */
|
||||
Last = s1;
|
||||
return 0;
|
||||
/* No more tokens found */
|
||||
Last = s1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Remember the start of the token */
|
||||
@@ -59,14 +59,14 @@ char* __fastcall__ strtok (register char* s1, const char* s2)
|
||||
|
||||
/* Search for the end of the token */
|
||||
while ((c = *s1) && strchr (s2, c) == 0) {
|
||||
++s1;
|
||||
++s1;
|
||||
}
|
||||
if (c == '\0') {
|
||||
/* Last element */
|
||||
Last = s1;
|
||||
/* Last element */
|
||||
Last = s1;
|
||||
} else {
|
||||
*s1 = '\0';
|
||||
Last = s1 + 1;
|
||||
*s1 = '\0';
|
||||
Last = s1 + 1;
|
||||
}
|
||||
|
||||
/* Return the start of the token */
|
||||
|
||||
Reference in New Issue
Block a user