sql.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <assert.h>
#include <grass/sqlp.h>

Include dependency graph for sql.c:

Go to the source code of this file.

Defines

#define SQLP_MAIN

Functions

int sqpSaveStr (SQLPVALUE *val, char *c)
void sqpInitValue (SQLPVALUE *val)
void sqpCopyValue (SQLPVALUE *from, SQLPVALUE *to)
int sqpInitParser (SQLPSTMT *st)
void sqpCommand (int command)
void sqpTable (char *tbl)
void sqpColumn (char *col)
void sqpColumnDef (char *col, int type, int width, int decimals)
void sqpValue (char *strval, int intval, double dblval, int type)
void sqpAssignment (char *col, char *strval, int intval, double dblval, SQLPNODE *expval, int type)
void sqpOrderColumn (char *col)
SQLPNODE * sqpNewNode (void)
SQLPNODE * sqpNewExpressionNode (int oper, SQLPNODE *left, SQLPNODE *right)
SQLPNODE * sqpNewColumnNode (char *name)
SQLPNODE * sqpNewValueNode (char *strval, int intval, double dblval, int type)
void sqpFreeNode (SQLPNODE *np)
int sqpOperatorCode (char *oper)
char * sqpOperatorName (int oper)


Define Documentation

#define SQLP_MAIN

Definition at line 21 of file sql.c.


Function Documentation

void sqpAssignment ( char *  col,
char *  strval,
int  intval,
double  dblval,
SQLPNODE *  expval,
int  type 
)

Definition at line 155 of file sql.c.

References sqpAllocCol(), sqpAllocVal(), and sqpSaveStr().

Referenced by yyparse().

void sqpColumn ( char *  col  ) 

Definition at line 94 of file sql.c.

References sqpAllocCol(), and sqpSaveStr().

Referenced by yyparse().

void sqpColumnDef ( char *  col,
int  type,
int  width,
int  decimals 
)

Definition at line 106 of file sql.c.

References sqpAllocCol(), and sqpSaveStr().

Referenced by yyparse().

void sqpCommand ( int  command  ) 

Definition at line 82 of file sql.c.

Referenced by yyparse().

void sqpCopyValue ( SQLPVALUE *  from,
SQLPVALUE *  to 
)

Definition at line 53 of file sql.c.

void sqpFreeNode ( SQLPNODE *  np  ) 

Definition at line 256 of file sql.c.

Referenced by sqpFreeStmt().

int sqpInitParser ( SQLPSTMT *  st  ) 

Definition at line 67 of file sql.c.

Referenced by main().

void sqpInitValue ( SQLPVALUE *  val  ) 

Definition at line 44 of file sql.c.

SQLPNODE* sqpNewColumnNode ( char *  name  ) 

Definition at line 225 of file sql.c.

References sqpNewNode().

Referenced by yyparse().

SQLPNODE* sqpNewExpressionNode ( int  oper,
SQLPNODE *  left,
SQLPNODE *  right 
)

Definition at line 210 of file sql.c.

References sqpNewNode().

Referenced by yyparse().

SQLPNODE* sqpNewNode ( void   ) 

Definition at line 201 of file sql.c.

Referenced by sqpNewColumnNode(), sqpNewExpressionNode(), and sqpNewValueNode().

SQLPNODE* sqpNewValueNode ( char *  strval,
int  intval,
double  dblval,
int  type 
)

Definition at line 238 of file sql.c.

References sqpNewNode().

Referenced by yyparse().

int sqpOperatorCode ( char *  oper  ) 

Definition at line 276 of file sql.c.

Referenced by yyparse().

char* sqpOperatorName ( int  oper  ) 

Definition at line 323 of file sql.c.

void sqpOrderColumn ( char *  col  ) 

Definition at line 193 of file sql.c.

Referenced by yyparse().

int sqpSaveStr ( SQLPVALUE *  val,
char *  c 
)

Definition at line 31 of file sql.c.

Referenced by sqpAssignment(), sqpColumn(), sqpColumnDef(), and sqpValue().

void sqpTable ( char *  tbl  ) 

Definition at line 88 of file sql.c.

Referenced by yyparse().

void sqpValue ( char *  strval,
int  intval,
double  dblval,
int  type 
)

Definition at line 121 of file sql.c.

References sqpAllocCol(), sqpAllocVal(), and sqpSaveStr().

Referenced by yyparse().


Generated on Sun Apr 6 17:31:55 2008 for GRASS by  doxygen 1.5.5