dis_sql/src/esql.cxx
/* The following function copies its input to the output, possibly with
 * a trailing space (to separate tokens); it also examines the input
 * for newlines to keep the current output line number up-to-date.
 * (Newlines can occur in string tokens and in literal output.)
 */
The following function copies its input to the output, possibly with
a trailing space (to separate tokens); it also examines the input
for newlines to keep the current output line number up-to-date.
(Newlines can occur in string tokens and in literal output.)
The following function copies its input to the output possibly with a trailing space ( to separate tokens ) ; it also examines the input for newlines to keep the current output line number up - to - date . ( Newlines can occur in string tokens and in literal output . )
static void output_text(const char* txt, int with_space) {
    size_t len = strlen(txt);
    if (len) {
	do_output(txt);
	if (with_space && txt[len - 1] != '\n' && txt[len - 1] != '\\') {
	    do_output(" ");
	}
    }
}
static void output_text ( const char * txt , int with_space ) { size_t len = strlen ( txt ) ; if ( len ) { do_output ( txt ) ; if ( with_space && txt [ len - 1 ] != ' \n ' && txt [ len - 1 ] != ' \\ ' ) { do_output ( " " ) ; } } }
The following function copies its input to the output, possibly with
 a trailing space (to separate tokens); it also examines the input
 for newlines to keep the current output line number up-to-date.
The following function copies its input to the output possibly with a trailing space ( to separate tokens ) ; it also examines the input for newlines to keep the current output line number up - to - date .