mpir/yasm/tools/re2c/parse.h
wbhart c0e157e3b2 Roughly speaking mpir should now build on an AMD64. At the present moment the config.guess doesn't distinguish a Core 2 from an AMD64 and so the same code is probably built on both.
One must build yasm (included in the yasm directory) before building GMP, if building on an x86_64 machine.

Note: make test and make tune do not currently build.
2008-05-26 22:11:40 +00:00

30 lines
573 B
C

#ifndef re2c_parse_h
#define re2c_parse_h
#include <stdio.h>
#include "tools/re2c/scanner.h"
#include "tools/re2c/re.h"
typedef struct Symbol {
struct Symbol *next;
Str name;
RegExp *re;
} Symbol;
void Symbol_init(Symbol *, const SubStr*);
static Symbol *Symbol_new(const SubStr*);
Symbol *Symbol_find(const SubStr*);
void line_source(FILE *, unsigned int);
void parse(FILE *, FILE *);
static Symbol *
Symbol_new(const SubStr *str)
{
Symbol *r = malloc(sizeof(Symbol));
Symbol_init(r, str);
return r;
}
#endif