diff options
author | Vladislav Vaintroub <wlad@montyprogram.com> | 2012-08-30 11:36:24 +0200 |
---|---|---|
committer | Vladislav Vaintroub <wlad@montyprogram.com> | 2012-08-30 11:36:24 +0200 |
commit | ae325ec6ce3998b3dd38fc2ad7763857cd4c140f (patch) | |
tree | 957911b8185c51f0ad2caf43f2124552bca6db9f /scripts/comp_sql.c | |
parent | d99b8004e6b46e2a1b321bf50825254bf841cddb (diff) | |
download | mariadb-git-ae325ec6ce3998b3dd38fc2ad7763857cd4c140f.tar.gz |
Compile 10.0 on Windows
Diffstat (limited to 'scripts/comp_sql.c')
-rw-r--r-- | scripts/comp_sql.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/scripts/comp_sql.c b/scripts/comp_sql.c index f1b327b24ac..9e157ad14cc 100644 --- a/scripts/comp_sql.c +++ b/scripts/comp_sql.c @@ -27,8 +27,6 @@ #include <stdlib.h> #include <stdio.h> -#include "../sql/sql_bootstrap.h" - /* This is an internal tool used during the build process only, - do not make a library just for this, @@ -80,12 +78,6 @@ static void print_query(FILE *out, const char *query) fprintf(out, "\""); while (*ptr) { - if (column >= 120) - { - /* Wrap to the next line, tabulated. */ - fprintf(out, "\"\n \""); - column= 2; - } switch(*ptr) { case '\n': @@ -103,6 +95,9 @@ static void print_query(FILE *out, const char *query) fprintf(out, "\\\""); column++; break; + case '\\': + fprintf(out, "\\\\"); + break; default: putc(*ptr, out); column++; @@ -135,6 +130,7 @@ int main(int argc, char *argv[]) fprintf(out, " Do not edit this file, it is automatically generated from:\n"); fprintf(out, " <%s>\n", infile_name); fprintf(out, "*/\n"); + fprintf(out, "#include <stdlib.h>\n"); /* NULL */ fprintf(out, "const char* %s[]={\n", struct_name); for ( ; ; ) |