30 struct when when_error,
102 char *line =
loc_alloc(strlen(
"\n#line %d \"%s\"\n") +
sizeof(
int) * CHAR_BIT * 10 / 3 + strlen(
input_filename) * 2);
108 dest = line + strlen(line);
111 if (*src ==
'\\' || *src ==
'"')
116 strcat(
dest,
"\"\n");
127 "ECPGst_exec_immediate",
130 "ECPGst_exec_with_exprlist"
136 fprintf(
base_yyout,
"{ ECPGdo(__LINE__, %d, %d, %s, %d, ",
compat,
force_indicator,
connection ?
connection :
"NULL",
questionmarks);
183 if (strcmp(
name,
"all") != 0)
201 if (quoted &&
str[0] ==
'"' &&
str[
len - 1] ==
'"')
215 else if (
str[
i] ==
'\n')
217 else if (
str[
i] ==
'\\')
230 }
while (
str[
j] ==
' ' ||
str[
j] ==
'\t');
232 if ((
str[
j] !=
'\n') && (
str[
j] !=
'\r' ||
str[
j + 1] !=
'\n'))
236 else if (
str[
i] ==
'\r' &&
str[
i + 1] ==
'\n')
245 if (quoted &&
str[0] ==
'"' &&
str[
len] ==
'"')
void output_line_number(void)
void output_simple_statement(const char *stmt, int whenever_mode)
void output_prepare_statement(const char *name, const char *stmt)
struct when when_error when_nf when_warn
void whenever_action(int mode)
static char * ecpg_statement_type_name[]
void output_statement(const char *stmt, int whenever_mode, enum ECPG_statement_type st)
static void print_action(struct when *w)
char * hashline_number(void)
static void output_escaped_str(const char *str, bool quoted)
void output_deallocate_prepare_statement(const char *name)
static PgChecksumMode mode
void dump_variables(struct arguments *list, int mode)
struct arguments * argsresult
struct arguments * argsinsert
void * loc_alloc(size_t size)