exip  Alpha 0.5.4
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
genexi.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <math.h>
#include "EXIParser.h"
#include "EXISerializer.h"
#include "stringManipulate.h"
#include "grammarGenerator.h"

Go to the source code of this file.

Macros

#define BUFFER_SIZE   30000000
 
#define EXIP_STRING(str)   {(char*)str, sizeof(str)-1}
 
#define error(msg)   _error(__LINE__, msg)
 
#define error2(msg, code)   _error2(__LINE__, msg, code)
 

Functions

size_t writeFileOutputStream (void *buf, size_t readSize, void *stream)
 
void _error (int lineno, const char *msg)
 
void _error2 (int lineno, const char *msg, int code)
 
int main (int argc, char *argv[])
 

Variables

const String STR_EMPTY = {NULL, 0}
 
const String STR_DOCUMENT = EXIP_STRING("document")
 
const String STR_QUERY = EXIP_STRING("query")
 
const String STR_RESULT = EXIP_STRING("result")
 
const String STR_VALUE = EXIP_STRING("value")
 
const String STR_ID = EXIP_STRING("id")
 
const String STR_OP = EXIP_STRING("op")
 
const String STR_ADD = EXIP_STRING("add")
 

Macro Definition Documentation

#define BUFFER_SIZE   30000000

Definition at line 15 of file genexi.c.

#define error (   msg)    _error(__LINE__, msg)

Definition at line 43 of file genexi.c.

#define error2 (   msg,
  code 
)    _error2(__LINE__, msg, code)

Definition at line 44 of file genexi.c.

#define EXIP_STRING (   str)    {(char*)str, sizeof(str)-1}

Definition at line 21 of file genexi.c.

Function Documentation

void _error ( int  lineno,
const char *  msg 
)

Definition at line 33 of file genexi.c.

void _error2 ( int  lineno,
const char *  msg,
int  code 
)

Definition at line 38 of file genexi.c.

int main ( int  argc,
char *  argv[] 
)

Definition at line 47 of file genexi.c.

static END_TEST size_t writeFileOutputStream ( void *  buf,
size_t  readSize,
void *  stream 
)

Definition at line 170 of file genexi.c.

Variable Documentation

const String STR_ADD = EXIP_STRING("add")

Definition at line 30 of file genexi.c.

const String STR_DOCUMENT = EXIP_STRING("document")

Definition at line 24 of file genexi.c.

const String STR_EMPTY = {NULL, 0}

Definition at line 23 of file genexi.c.

const String STR_ID = EXIP_STRING("id")

Definition at line 28 of file genexi.c.

const String STR_OP = EXIP_STRING("op")

Definition at line 29 of file genexi.c.

const String STR_QUERY = EXIP_STRING("query")

Definition at line 25 of file genexi.c.

const String STR_RESULT = EXIP_STRING("result")

Definition at line 26 of file genexi.c.

const String STR_VALUE = EXIP_STRING("value")

Definition at line 27 of file genexi.c.