OLD | NEW |
1 /* | 1 /* |
2 ** 2001 September 15 | 2 ** 2001 September 15 |
3 ** | 3 ** |
4 ** The author disclaims copyright to this source code. In place of | 4 ** The author disclaims copyright to this source code. In place of |
5 ** a legal notice, here is a blessing: | 5 ** a legal notice, here is a blessing: |
6 ** | 6 ** |
7 ** May you do good and not evil. | 7 ** May you do good and not evil. |
8 ** May you find forgiveness for yourself and forgive others. | 8 ** May you find forgiveness for yourself and forgive others. |
9 ** May you share freely, never taking more than you give. | 9 ** May you share freely, never taking more than you give. |
10 ** | 10 ** |
(...skipping 2645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2656 } | 2656 } |
2657 | 2657 |
2658 int main(int argc, char **argv){ | 2658 int main(int argc, char **argv){ |
2659 char *zErrMsg = 0; | 2659 char *zErrMsg = 0; |
2660 struct callback_data data; | 2660 struct callback_data data; |
2661 const char *zInitFile = 0; | 2661 const char *zInitFile = 0; |
2662 char *zFirstCmd = 0; | 2662 char *zFirstCmd = 0; |
2663 int i; | 2663 int i; |
2664 int rc = 0; | 2664 int rc = 0; |
2665 | 2665 |
2666 /* Begin evanm patch. */ | |
2667 extern int sqlite_shell_init_icu(); | |
2668 if( !sqlite_shell_init_icu() ){ | |
2669 fprintf(stderr, "%s: warning: couldn't find icudt38.dll; " | |
2670 "queries against ICU FTS tables will fail.\n", argv[0]); | |
2671 } | |
2672 /* End evanm patch. */ | |
2673 | |
2674 Argv0 = argv[0]; | 2666 Argv0 = argv[0]; |
2675 main_init(&data); | 2667 main_init(&data); |
2676 stdin_is_interactive = isatty(0); | 2668 stdin_is_interactive = isatty(0); |
2677 | 2669 |
2678 /* Make sure we have a valid signal handler early, before anything | 2670 /* Make sure we have a valid signal handler early, before anything |
2679 ** else is done. | 2671 ** else is done. |
2680 */ | 2672 */ |
2681 #ifdef SIGINT | 2673 #ifdef SIGINT |
2682 signal(SIGINT, interrupt_handler); | 2674 signal(SIGINT, interrupt_handler); |
2683 #endif | 2675 #endif |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2908 }else{ | 2900 }else{ |
2909 rc = process_input(&data, stdin); | 2901 rc = process_input(&data, stdin); |
2910 } | 2902 } |
2911 } | 2903 } |
2912 set_table_name(&data, 0); | 2904 set_table_name(&data, 0); |
2913 if( data.db ){ | 2905 if( data.db ){ |
2914 sqlite3_close(data.db); | 2906 sqlite3_close(data.db); |
2915 } | 2907 } |
2916 return rc; | 2908 return rc; |
2917 } | 2909 } |
OLD | NEW |