32 struct when when_error,
104 char *line =
mm_alloc(strlen(
"\n#line %d \"%s\"\n") +
sizeof(
int) * CHAR_BIT * 10 / 3 + strlen(
input_filename) * 2);
110 dest = line + strlen(line);
113 if (*src ==
'\\' || *src ==
'"')
118 strcat(
dest,
"\"\n");
129 "ECPGst_exec_immediate",
132 "ECPGst_exec_with_exprlist"
138 fprintf(
base_yyout,
"{ ECPGdo(__LINE__, %d, %d, %s, %d, ",
compat,
force_indicator,
connection ?
connection :
"NULL",
questionmarks);
186 if (strcmp(
name,
"all") != 0)
205 if (quoted &&
str[0] ==
'"' &&
str[
len - 1] ==
'"')
219 else if (
str[
i] ==
'\n')
221 else if (
str[
i] ==
'\\')
234 }
while (
str[
j] ==
' ' ||
str[
j] ==
'\t');
236 if ((
str[
j] !=
'\n') && (
str[
j] !=
'\r' ||
str[
j + 1] !=
'\n'))
240 else if (
str[
i] ==
'\r' &&
str[
i + 1] ==
'\n')
249 if (quoted &&
str[0] ==
'"' &&
str[
len] ==
'"')
void output_line_number(void)
struct when when_error when_nf when_warn
void whenever_action(int mode)
void output_prepare_statement(char *name, char *stmt)
void output_simple_statement(char *stmt, int whenever_mode)
static char * ecpg_statement_type_name[]
static void output_escaped_str(char *str, bool quoted)
void output_statement(char *stmt, int whenever_mode, enum ECPG_statement_type st)
static void print_action(struct when *w)
void output_deallocate_prepare_statement(char *name)
char * hashline_number(void)
static PgChecksumMode mode
void dump_variables(struct arguments *list, int mode)
void reset_variables(void)
struct arguments * argsresult
struct arguments * argsinsert
void * mm_alloc(size_t size)