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

Function main

src/utilities/print_event.cpp:45–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43#define SRQ_BASE ((UCHAR*) EVENT_header)
44
45int main(int argc, char *argv[])
46{
47/**************************************
48 *
49 * m a i n
50 *
51 **************************************
52 *
53 * Functional description
54 * This is a simple utility program to print out the current
55 * contents of the Firebird event table file.
56 *
57 **************************************/
58 ISC_STATUS_ARRAY status_vector;
59
60 if (!(EVENT_header = EVENT_init(status_vector)))
61 {
62 fprintf(stderr, "Can't access global event region\n");
63 isc_print_status(status_vector);
64 return 1;
65 }
66
67 if ((argc == 2) && fb_utils::strnicmp(argv[1], "-dump", MAX(strlen(argv[1]), 2)) == 0)
68 event_table_dump();
69 else if (argc == 1)
70 event_list();
71 else
72 fprintf(stderr, "usage: fb_event_print [-dump]\n");
73
74 return 0;
75}
76
77
78static void event_list()

Callers

nothing calls this directly

Calls 3

strnicmpFunction · 0.85
event_table_dumpFunction · 0.85
event_listFunction · 0.85

Tested by

no test coverage detected