Update re2c to version 0.16
This commit is contained in:
parent
5ee988f607
commit
43c6c9b5ee
191 changed files with 25778 additions and 17259 deletions
31
tools/re2c/src/parse/code.h
Normal file
31
tools/re2c/src/parse/code.h
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#ifndef _RE2C_PARSE_CODE_
|
||||
#define _RE2C_PARSE_CODE_
|
||||
|
||||
#include "src/util/c99_stdint.h"
|
||||
#include <stddef.h>
|
||||
#include <string>
|
||||
|
||||
#include "src/parse/loc.h"
|
||||
#include "src/util/free_list.h"
|
||||
|
||||
namespace re2c
|
||||
{
|
||||
|
||||
struct Code
|
||||
{
|
||||
static free_list<const Code *> freelist;
|
||||
|
||||
const Loc loc;
|
||||
const std::string text;
|
||||
|
||||
inline Code (const char * t, size_t t_len, const std::string & f, uint32_t l)
|
||||
: loc (f, l)
|
||||
, text (t, t_len)
|
||||
{
|
||||
freelist.insert (this);
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace re2c
|
||||
|
||||
#endif // _RE2C_PARSE_CODE_
|
||||
Loading…
Add table
Add a link
Reference in a new issue