#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <assert.h>
#include <grass/sqlp.h>
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) |
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 sqpFreeNode | ( | SQLPNODE * | np | ) |
SQLPNODE* sqpNewColumnNode | ( | char * | name | ) |
SQLPNODE* sqpNewExpressionNode | ( | int | oper, | |
SQLPNODE * | left, | |||
SQLPNODE * | right | |||
) |
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 | |||
) |
int sqpSaveStr | ( | SQLPVALUE * | val, | |
char * | c | |||
) |
Definition at line 31 of file sql.c.
Referenced by sqpAssignment(), sqpColumn(), sqpColumnDef(), and sqpValue().
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().