/*****************************************************************************/
-/* Code */
+/* Code */
/*****************************************************************************/
char* L;
const char* Comment;
unsigned Line;
- unsigned Len;
+ unsigned Len;
long Val;
unsigned DVal;
int Sign;
++L;
}
- /* Remove trailing whitespace */
- Len = strlen (L);
- while (Len > 0 && IsSpace (L[Len-1])) {
- --Len;
- }
- L[Len] = '\0';
+ /* Remove trailing whitespace */
+ Len = strlen (L);
+ while (Len > 0 && IsSpace (L[Len-1])) {
+ --Len;
+ }
+ L[Len] = '\0';
/* If the line is empty or starts with a comment char, ignore it */
if (*L == '\0' || *L == CommentStart) {
} else if (*L == ':' && *++L == '=') {
++L;
} else {
- if (!IgnoreUnknown) {
- Error ("%s(%u): Missing `='", Filename, Line);
- }
- continue;
- }
+ if (!IgnoreUnknown) {
+ Error ("%s(%u): Missing `='", Filename, Line);
+ }
+ continue;
+ }
/* Allow white space once again */
L = SkipWhitespace (L);
}
/* Determine the base of the number. Allow $ and % as prefixes for
- * hex and binary numbers respectively.
- */
+ ** hex and binary numbers respectively.
+ */
if (*L == '$') {
Base = 16;
++L;
/* Close the include file ignoring errors (we were just reading). */
(void) fclose (F);
}
-
-
-