aboutsummaryrefslogtreecommitdiff
path: root/include/tags.h
blob: 0b7f5a9dd3045acb09dda7db42512e9d1785f2ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef TAGS_H
#define TAGS_H

/*
	tags are stored in a big table (or their hashes are) ordered
	by alphabetical order
	tags can have namespaces which are a special tag that starts
	with a ':'
	all tags in a namespace are located between two occurrences
	of the namespace within the list,
		e.g [":people", "sam hyde", "hitler", ":people"]
	maybe namespaces use another hashing function to prevent
	collisions because of the lack of space because of the ':'
*/

#define MAXTAGS 4094

void insertTag(char **tags, char *tag){
	if()
}

#endif