-#include "ccan_tokenizer/read_cnumber.c"
-#include "ccan_tokenizer/read_cstring.c"
-#include "ccan_tokenizer/dict.c"
-#include "ccan_tokenizer/ccan_tokenizer.c"
-#include "ccan_tokenizer/queue.c"
-#include "ccan_tokenizer/charflag.c"
-#include "tap/tap.h"
+#include <ccan/ccan_tokenizer/read_cnumber.c>
+#include <ccan/ccan_tokenizer/read_cstring.c>
+#include <ccan/ccan_tokenizer/dict.c>
+#include <ccan/ccan_tokenizer/ccan_tokenizer.c>
+#include <ccan/ccan_tokenizer/queue.c>
+#include <ccan/ccan_tokenizer/charflag.c>
+#include <ccan/tap/tap.h>
#define item(num) (toks->first[num])
//sed 's/toks->array\.item\[\([^]]*\)\]/item(\1)/g'
char *string = talloc_strdup(NULL, orig);
unsigned int i;
- toks = tokenize(string, strlen(string), MQ);
+ toks = tokenize(string, string, strlen(string), MQ);
ok1(token_list_sanity_check(toks, stdout));
ok1(token_list_count(toks) == strlen(string)/size + 1);
char *string = spacify(orig, size);
unsigned int i;
- toks = tokenize(string, strlen(string), MQ);
+ toks = tokenize(string, string, strlen(string), MQ);
ok1(token_list_sanity_check(toks, stdout));
ok1(token_list_count(toks) == strlen(orig)/size*2 + 1);
const char *string = backslashify(orig);
unsigned int i;
- toks = tokenize(string, strlen(string), MQ);
+ toks = tokenize(string, string, strlen(string), MQ);
ok1(token_list_sanity_check(toks, stdout));
ok1(token_list_count(toks) == strlen(orig)/size + 1);
/* char literal */
str = talloc_strdup(NULL, char_token);
- toks = tokenize(str, strlen(str), MQ);
+ toks = tokenize(str, str, strlen(str), MQ);
ok1(token_list_sanity_check(toks, stdout));
ok1(token_list_count(toks) == 2);
ok1(item(0).type == TOK_STARTLINE);
/* string literal */
str = talloc_strdup(NULL, string_token);
- toks = tokenize(str, strlen(str), MQ);
+ toks = tokenize(str, str, strlen(str), MQ);
ok1(token_list_sanity_check(toks, stdout));
ok1(token_list_count(toks) == 2);
ok1(item(0).type == TOK_STARTLINE);
/* Identifiers */
str = talloc_strdup(NULL, ident_tokens);
- toks = tokenize(str, strlen(str), MQ);
+ toks = tokenize(str, str, strlen(str), MQ);
ok1(token_list_sanity_check(toks, stdout));
token_list_dump(toks, stdout);
ok1(token_list_count(toks) == 10);
/* Identifiers */
backslashed_idents = backslashify(ident_tokens);
- toks = tokenize(backslashed_idents, strlen(backslashed_idents), MQ);
+ toks = tokenize(backslashed_idents, backslashed_idents, strlen(backslashed_idents), MQ);
ok1(token_list_sanity_check(toks, stdout));
ok1(token_list_count(toks) == 10);
ok1(item(0).type == TOK_STARTLINE);