mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-08-29 17:57:30 +00:00
refactor to build tags
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
This commit is contained in:
20
internal/tokenizer/flex/linguist.h
Normal file
20
internal/tokenizer/flex/linguist.h
Normal file
@@ -0,0 +1,20 @@
|
||||
enum tokenizer_type {
|
||||
NO_ACTION,
|
||||
REGULAR_TOKEN,
|
||||
SHEBANG_TOKEN,
|
||||
SGML_TOKEN,
|
||||
};
|
||||
|
||||
struct tokenizer_extra {
|
||||
char *token;
|
||||
enum tokenizer_type type;
|
||||
};
|
||||
|
||||
// #include <stddef.h>
|
||||
|
||||
// #ifdef __APPLE__
|
||||
// char *strndup(const char *s1, size_t n);
|
||||
// #elif defined(_WIN32) || defined(_WIN64)
|
||||
// char *strndup(const char *s1, size_t n);
|
||||
// #pragma warning (disable: 4244)
|
||||
// #endif // _WIN32 || _WIN64
|
Reference in New Issue
Block a user