feisty meow concerns codebase  2.140
list_parsing.cpp File Reference
#include "list_parsing.h"
#include "parser_bits.h"
#include <basis/astring.h>
#include <structures/set.h>
#include <structures/string_table.h>
#include <ctype.h>
#include <stdio.h>
Include dependency graph for list_parsing.cpp:

Go to the source code of this file.

Namespaces

 textual
 

Macros

#define LOG(to_print)   printf("%s::%s: %s\n", static_class_name(), func, astring(to_print).s())
 
#define handle_escapes
 
#define ADD_LINE_TO_FIELDS(new_line)
 

Variables

const int textual::ARRAY_PREFILL_AMOUNT = 7
 

Macro Definition Documentation

◆ ADD_LINE_TO_FIELDS

#define ADD_LINE_TO_FIELDS (   new_line)
Value:
{ \
storage_slot++; /* move to next place to store item. */ \
/* make sure we have enough space for the next slot and then some. */ \
/*LOG(a_sprintf("fields curr=%d stowslot=%d", fields.length(), storage_slot));*/ \
if (fields.length() < storage_slot + 2) \
fields.insert(fields.length(), ARRAY_PREFILL_AMOUNT); \
/*LOG(a_sprintf("now fields=%d stowslot=%d", fields.length(), storage_slot));*/ \
fields[storage_slot] = new_line; \
}
const int ARRAY_PREFILL_AMOUNT

Definition at line 184 of file list_parsing.cpp.

◆ handle_escapes

#define handle_escapes
Value:
if (to_parse[i] == '\\') { \
if ( (to_parse[i + 1] == '"') || (to_parse[i + 1] == '\\') ) { \
i++; \
accumulator += to_parse[i]; \
continue; /* skip normal handling in sequel. */ \
} \
}

Definition at line 172 of file list_parsing.cpp.

◆ LOG

#define LOG (   to_print)    printf("%s::%s: %s\n", static_class_name(), func, astring(to_print).s())

Definition at line 32 of file list_parsing.cpp.