static const char *TOKEN_ALL_SECTION = "ALL";
static const char *TOKEN_KERNEL_SECTION = "KERNEL";
+static const char *TOKEN_GAME_SECTION = "GAME";
#ifdef NO_STRING
#include <stddef.h>
return (*s1 - *s2);
}
+static int strncmp(const char * s1, const char * s2, size_t count)
+{
+ while ((*s1) && (*s1 == *s2) && count != 0)
+ {
+ ++s1;
+ ++s2;
+ --count;
+ }
+ if (count == 0) return 0;
+ return (*s1 - *s2);
+}
+
#endif // NO_STRING
static inline int is_continuation_byte(char b)
{
record_entries = 1;
}
+ else if (strcmp(ctx.line_pos, TOKEN_GAME_SECTION) == 0 && strcmp(section, TOKEN_KERNEL_SECTION) != 0 &&
+ strlen(section) == 9 && strncmp(section, "PCS", 3) == 0 && section[3] >= 'A' && section[3] <= 'H')
+ {
+ record_entries = 1;
+ }
else if (strcmp(section, ctx.line_pos) == 0)
{
record_entries = 1;