projects
/
blerg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for markdown-style headlines (lines beginning with #)
[blerg.git]
/
database
/
database.h
diff --git
a/database/database.h
b/database/database.h
index
4c5853e
..
2f71bee
100644
(file)
--- a/
database/database.h
+++ b/
database/database.h
@@
-7,6
+7,9
@@
#include <stdint.h>
#include <time.h>
#include <stdint.h>
#include <time.h>
+#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;
struct record {
uint32_t offset;
uint16_t length;