X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=database%2Fdatabase.h;h=2f71beebe2e4f9964ae6dba3ca2e5c43e0db038d;hb=b6235374b91ba7acf62c06c72de2f1291f46ac4c;hp=4c5853e72fcc5e10628be3620a99e93fdc0d1c58;hpb=86333bedb512d2fd809c3161bc40e682b2e9938b;p=blerg.git diff --git a/database/database.h b/database/database.h index 4c5853e..2f71bee 100644 --- a/database/database.h +++ b/database/database.h @@ -7,6 +7,9 @@ #include #include +#define VALID_CHAR(c) ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9') || c == '-' || c == '_') +#define WHITESPACE(c) (c == ' ' || c == '\t' || c == '\n' || c == '\r') + struct record { uint32_t offset; uint16_t length;