diff options
| author | Soikk | 2022-05-28 03:45:54 +0200 |
|---|---|---|
| committer | Soikk | 2022-05-28 03:45:54 +0200 |
| commit | 377dc104be127291ede5b32640c23eea0ba6791a (patch) | |
| tree | 0556ec062d321198580d31b6ce61b6d79fdeabb1 /include | |
| parent | f59d888123dd15bf0e70b1966c2c4245bee36b3a (diff) | |
| download | soikk-DB-377dc104be127291ede5b32640c23eea0ba6791a.tar.xz soikk-DB-377dc104be127291ede5b32640c23eea0ba6791a.tar.zst | |
trying boyer-moore
Diffstat (limited to 'include')
| -rw-r--r-- | include/bm.h | 10 | ||||
| -rw-r--r-- | include/db.h | 1 | ||||
| -rw-r--r-- | include/tags.h | 23 |
3 files changed, 34 insertions, 0 deletions
diff --git a/include/bm.h b/include/bm.h new file mode 100644 index 0000000..b59e390 --- /dev/null +++ b/include/bm.h @@ -0,0 +1,10 @@ +#ifndef BM_H +#define BM_H + +#include "db.h" + + +ssize_t BM(char *x, int m, char *y, int n); + + +#endif
\ No newline at end of file diff --git a/include/db.h b/include/db.h index a5fca10..3ffcafb 100644 --- a/include/db.h +++ b/include/db.h @@ -15,6 +15,7 @@ #include "parser.h" #include "storage.h" #include "str.h" +#include "bm.h" #endif
\ No newline at end of file diff --git a/include/tags.h b/include/tags.h new file mode 100644 index 0000000..b8a62b5 --- /dev/null +++ b/include/tags.h @@ -0,0 +1,23 @@ +#ifndef TAGS_H +#define TAGS_H + +/* + tags are stored in a big string, separated by semicolons (;) + tags can have namespaces, which should come before the tag + and be followed by a colon (:) + should a namespace store more than one tag, the following + tags will be separated by a comma (,) + spaces are only allowed inside tags or namespaces, as part + of themselves + semicolons, colons, and commas are not allowed inside tags + or namespaces + example: "person:ted kaczynsky;mood:serious;meta:jpg" +*/ + +#define MAXTAGS 4094 + +void insertTag(char **tags, char *tag){ + if() +} + +#endif
\ No newline at end of file |
