X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=database%2Fdatabase.h;h=2f71beebe2e4f9964ae6dba3ca2e5c43e0db038d;hb=efabc7da2c7dff11ab6835d23655a023f1cbc296;hp=d12886998cc88868af86eb6099b1489b5a62ebdc;hpb=213e6e64dd863fd39d0db7c6fb4ccf1970a868fb;p=blerg.git diff --git a/database/database.h b/database/database.h index d128869..2f71bee 100644 --- a/database/database.h +++ b/database/database.h @@ -1,9 +1,15 @@ +/* Blerg is (C) 2011 The Dominion of Awesome, and is distributed under a + * BSD-style license. Please see the COPYING file for details. + */ #ifndef _DATABASE_H #define _DATABASE_H #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;