MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / CLIB_ROUTINE main

Function CLIB_ROUTINE main

src/alice/main/aliceMain.cpp:44–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44int 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}

Callers

nothing calls this directly

Calls 3

aliceFunction · 0.85
stuffExceptionMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected