| 42 | } |
| 43 | |
| 44 | int CLIB_ROUTINE main(int argc, char* argv[]) |
| 45 | { |
| 46 | /************************************** |
| 47 | * |
| 48 | * m a i n |
| 49 | * |
| 50 | ************************************** |
| 51 | * |
| 52 | * Functional description |
| 53 | * Invoke real gfix main function |
| 54 | * |
| 55 | **************************************/ |
| 56 | #ifdef HAVE_LOCALE_H |
| 57 | // Pick up the system locale to allow SYSTEM<->UTF8 conversions |
| 58 | setlocale(LC_CTYPE, ""); |
| 59 | #endif |
| 60 | atexit(&atexit_fb_shutdown); |
| 61 | |
| 62 | try |
| 63 | { |
| 64 | Firebird::AutoPtr<Firebird::UtilSvc> uSvc(Firebird::UtilSvc::createStandalone(argc, argv)); |
| 65 | return alice(uSvc); |
| 66 | } |
| 67 | catch (const Firebird::Exception& ex) |
| 68 | { |
| 69 | Firebird::StaticStatusVector st; |
| 70 | ex.stuffException(st); |
| 71 | isc_print_status(st.begin()); |
| 72 | } |
| 73 | return 1; |
| 74 | } |
nothing calls this directly
no test coverage detected