#include "token/ellipsis-tlist.h"
#include "ellipsis-lexer.h"
#include "ellipsis-tokenize.h"
#include "ellipsis-special-directive_if.h"
#include "ellipsis-special-directive_include.h"
#include "ellipsis-special-directive_define.h"
#include <stdlib.h>
#include <threads.h>
#include "utils/ellipsis-error.h"
#include "utils/ellipsis-malloc.h"
#include "language/ellipsis-special.h"
#include <string.h>
#include <limits.h>
#include "ellipsis_special_directive_specials.c"
Functions | |
static void | ellipsis‿special‿directive‿_Once‿init‿callback (void) |
static void | ellipsis‿special‿directive‿_Once‿init‿user (void) |
void | ellipsis‿special‿directive‿_Once‿init (void) |
void | ellipsis‿special‿directive‿append (size_t len, ellipsis‿special *p) |
ellipsis‿special const * | ellipsis‿special‿directive‿find (size_t len, char const buf[len]) |
void | ellipsis‿special‿directive‿lex (ellipsis‿token *tok, ellipsis‿special const **spp) |
static void | ellipsis‿special‿directive‿magic‿_Once‿atexit‿callback (void) |
Cleanup code for this translation unit. | |
static void | ellipsis‿special‿directive‿magic‿_Once‿init‿callback (void) |
static void | ellipsis‿special‿directive‿magic‿_Once‿init‿user (void) |
Startup code for this translation unit. | |
void | ellipsis‿special‿directive‿magic‿_Once‿init (void) |
static int | special_compar (void const *a, void const *b) |
static void | specials_scale (size_t len) |
static void | specials_sort (void) |
|
static |
References __FILE__, ellipsis‿special‿directive‿_Once‿at_quick_exit‿pointer, ellipsis‿special‿directive‿_Once‿atexit‿pointer, ellipsis‿special‿directive‿_Once‿init‿user(), and GNU_ATTR_USED.
Referenced by ellipsis‿special‿directive‿_Once‿init().
|
static |
References __FILE__, bind_dir, define_dir, elif_dir, ellipsis‿special‿directive‿find, ellipsis‿special‿directive‿magic‿_Once‿init(), ellipsis‿special‿directive_if‿magic‿_Once‿init(), ellipsis‿special‿directive_include‿magic‿_Once‿init(), ellipsis‿token‿_Once‿init(), embed_dir, embed_resource_dir, endif_dir, environment_dir, expand_dir, gather_dir, GNU_ATTR_USED, if_dir, include_dir, include_directives_dir, include_next_dir, include_source_dir, line_dir, linenumber_dir, move_dir, pragma_dir, and scatter_dir.
Referenced by ellipsis‿special‿directive‿_Once‿init‿callback().
void ellipsis‿special‿directive‿_Once‿init | ( | void | ) |
References ellipsis‿special‿directive‿_Once‿init‿callback().
Referenced by ellipsis‿special‿directive‿lex().
void ellipsis‿special‿directive‿append | ( | size_t | len, |
ellipsis‿special * | p | ||
) |
References __FILE__, ellipsis‿special‿cpy(), ellipsis‿special‿directive‿magic‿_Once‿init(), GNU_ATTR_USED, specials_scale(), specials_sort(), specialsp, and specialsp_len.
ellipsis‿special const * ellipsis‿special‿directive‿find | ( | size_t | len, |
char const | buf[len] | ||
) |
References __FILE__, ellipsis‿special‿directive‿magic‿_Once‿init(), GNU_ATTR_USED, ellipsis‿str8::length, position, specialsp, specialsp_len, and ellipsis‿special::starter8.
void ellipsis‿special‿directive‿lex | ( | ellipsis‿token * | tok, |
ellipsis‿special const ** | spp | ||
) |
start inner defer anchor at level 1
defer needs braces and a semicolon
defer needs braces and a semicolon
If we see a special that is not yet terminated, it should be a comment.
If we see a special that is not yet terminated, it should be a comment.
end inner defer anchor, level 1
References __FILE__, ellipsis‿str8::array, bind_dir, ellipsis‿token::cat, ellipsis‿token::contents, define_dir, directive, elif_dir, ellipsis‿lex‿nonspace(), ellipsis‿lex‿space(), ellipsis‿special‿directive‿_Once‿init(), ellipsis‿special‿directive‿find, ellipsis‿special‿directive_define‿find, ellipsis‿special‿directive_if‿find, ellipsis‿special‿directive_include‿find, ellipsis‿str32‿delete(), ellipsis‿str32‿dup, ellipsis‿token‿list‿append(), ellipsis‿token‿list‿close(), ellipsis‿token‿list‿open(), embed_dir, embed_resource_dir, endif_dir, environment_dir, expand_dir, gather_dir, GNU_ATTR_USED, if_dir, include_dir, include_directives_dir, include_next_dir, include_source_dir, ellipsis‿str8::length, line_dir, linenumber_dir, move_dir, ellipsis‿token::next, ellipsis‿token::payload, pragma_dir, scatter_dir, ellipsis‿token::space, and ellipsis‿special::starter8.
Referenced by ellipsis‿tokenize().
|
static |
Cleanup code for this translation unit.
References ellipsis‿special‿delete(), specialsp, and specialsp_len.
|
static |
References __FILE__, ellipsis‿special‿directive‿magic‿_Once‿at_quick_exit‿pointer, ellipsis‿special‿directive‿magic‿_Once‿atexit‿pointer, ellipsis‿special‿directive‿magic‿_Once‿init‿user(), and GNU_ATTR_USED.
Referenced by ellipsis‿special‿directive‿magic‿_Once‿init().
|
static |
Startup code for this translation unit.
Only run if directive
is used.
References __FILE__, ellipsis‿malloc, ellipsis‿special‿cpy(), ellipsis‿special‿directive‿fixed, ellipsis‿special‿directive‿fixed_len, ellipsis‿token‿_Once‿init(), GNU_ATTR_USED, specials_sort(), specialsp, and specialsp_len.
Referenced by ellipsis‿special‿directive‿magic‿_Once‿init‿callback().
void ellipsis‿special‿directive‿magic‿_Once‿init | ( | void | ) |
References ellipsis‿special‿directive‿magic‿_Once‿init‿callback().
Referenced by ellipsis‿special‿directive‿_Once‿init‿user(), ellipsis‿special‿directive‿append(), and ellipsis‿special‿directive‿find().
|
static |
References ellipsis‿str8‿compare(), and ellipsis‿special::starter8.
Referenced by specials_sort().
|
static |
References ellipsis‿realloc, ELLIPSIS_CONTRACT, specialsp, and specialsp_len.
Referenced by ellipsis‿special‿directive‿append().
|
static |
References ellipsis‿str8::array, ellipsis‿special::closer8, ELLIPSIS_ERROR, position, special_compar(), specialsp, specialsp_len, and ellipsis‿special::starter8.
Referenced by ellipsis‿special‿directive‿append(), and ellipsis‿special‿directive‿magic‿_Once‿init‿user().
|
static |
Referenced by ellipsis‿special‿directive‿_Once‿init‿user(), and ellipsis‿special‿directive‿lex().
|
static |
Referenced by ellipsis‿special‿directive‿_Once‿init‿user(), and ellipsis‿special‿directive‿lex().
|
static |
Referenced by ellipsis‿special‿directive‿_Once‿init‿user(), and ellipsis‿special‿directive‿lex().
|
static |
Referenced by ellipsis‿special‿directive‿_Once‿init‿callback().
|
static |
Referenced by ellipsis‿special‿directive‿_Once‿init‿callback().
ellipsis‿special ellipsis‿special‿directive‿fixed[] |
Referenced by ellipsis‿special‿directive‿magic‿_Once‿init‿user().
size_t const ellipsis‿special‿directive‿fixed_len = sizeof(ellipsis‿special‿directive‿fixed) / sizeof(ellipsis‿special‿directive‿fixed[0]) |
Referenced by ellipsis‿special‿directive‿magic‿_Once‿init‿user().
|
static |
Referenced by ellipsis‿special‿directive‿magic‿_Once‿init‿callback().
|
static |
Referenced by ellipsis‿special‿directive‿magic‿_Once‿init‿callback().
|
static |
Referenced by ellipsis‿special‿directive‿_Once‿init‿user(), and ellipsis‿special‿directive‿lex().
|
static |
Referenced by ellipsis‿special‿directive‿_Once‿init‿user(), and ellipsis‿special‿directive‿lex().
|
static |
Referenced by ellipsis‿special‿directive‿_Once‿init‿user(), and ellipsis‿special‿directive‿lex().
|
static |
Referenced by ellipsis‿special‿directive‿_Once‿init‿user(), and ellipsis‿special‿directive‿lex().
|
static |
Referenced by ellipsis‿special‿directive‿_Once‿init‿user(), and ellipsis‿special‿directive‿lex().
|
static |
Referenced by ellipsis‿special‿directive‿_Once‿init‿user(), and ellipsis‿special‿directive‿lex().
|
static |
Referenced by ellipsis‿special‿directive‿_Once‿init‿user(), and ellipsis‿special‿directive‿lex().
|
static |
Referenced by ellipsis‿special‿directive‿_Once‿init‿user(), and ellipsis‿special‿directive‿lex().
|
static |
Referenced by ellipsis‿special‿directive‿_Once‿init‿user(), and ellipsis‿special‿directive‿lex().
|
static |
Referenced by ellipsis‿special‿directive‿_Once‿init‿user(), and ellipsis‿special‿directive‿lex().
|
static |
Referenced by ellipsis‿special‿directive‿_Once‿init‿user(), and ellipsis‿special‿directive‿lex().
|
static |
Referenced by ellipsis‿special‿directive‿_Once‿init‿user(), and ellipsis‿special‿directive‿lex().
|
static |
Referenced by ellipsis‿special‿directive‿_Once‿init‿user(), and ellipsis‿special‿directive‿lex().
|
static |
Referenced by ellipsis‿special‿directive‿_Once‿init‿user(), and ellipsis‿special‿directive‿lex().
|
static |
Referenced by ellipsis‿special‿directive‿find(), and specials_sort().
|
static |
Referenced by ellipsis‿special‿directive‿_Once‿init‿user(), and ellipsis‿special‿directive‿lex().
|
static |
Referenced by ellipsis‿special‿directive‿_Once‿init‿user(), and ellipsis‿special‿directive‿lex().
|
static |
|
static |