| 43 | #define SRQ_BASE ((UCHAR*) EVENT_header) |
| 44 | |
| 45 | int 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 | |
| 78 | static void event_list() |
nothing calls this directly
no test coverage detected