CodesIOKernelContext.h 639 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
#ifndef CODESIOKERNELCONTEXT_H
#define CODESIOKERNELCONTEXT_H

typedef struct CodesIOKernelContext
{
    void *scanner_;
    char *text;
    void *lval;
    void *locval;

    int64_t sym[26];
    int64_t var[10];
    int64_t next_var[10];

    int inst_ready;

    /* Ning's additions for the bgp storage model */
    /* XXX Does this belong here? */
    int GroupRank;
    int GroupSize;

} CodesIOKernelContext;

void CodesIOKernelScannerInit(
    CodesIOKernelContext * context);
void CodesIOKernelScannerDestroy(
    CodesIOKernelContext * context);

void CodesIOKernelScannerSetSymTable(
    CodesIOKernelContext * context);

#endif