#include <sys/param.h>#include <stdarg.h>#include <stdlib.h>#include <string.h>#include <stdio.h>#include <assert.h>#include "logging.h"#include "csm_all.h"
Go to the source code of this file.
Defines | |
| #define | MAX_CONTEXTS 1000 |
| #define | XTERM_COLOR_RED "\e[1;37;41m" |
| #define | XTERM_COLOR_RESET "\e[0m" |
| #define | XTERM_DEBUG "\e[1;35;40m" |
| #define | XTERM_ERROR XTERM_COLOR_RED |
Functions | |
| void | check_for_xterm_color () |
| void | sm_debug (const char *msg,...) |
| void | sm_debug_write (int flag) |
| void | sm_error (const char *msg,...) |
| void | sm_info (const char *msg,...) |
| void | sm_log_pop () |
| void | sm_log_push (const char *cname) |
| void | sm_set_program_name (const char *name) |
| void | sm_write_context () |
Variables | |
| int | checked_for_xterm_color = 0 |
| int | sm_debug_write_flag = 0 |
| int | sm_log_context = 0 |
| const char * | sm_log_context_name [MAX_CONTEXTS] = {""} |
| const char * | sm_program_name = 0 |
| char | sm_program_name_temp [256] |
| int | xterm_color_available = 0 |
| #define MAX_CONTEXTS 1000 |
| #define XTERM_COLOR_RED "\e[1;37;41m" |
| #define XTERM_COLOR_RESET "\e[0m" |
| #define XTERM_DEBUG "\e[1;35;40m" |
| #define XTERM_ERROR XTERM_COLOR_RED |
| void check_for_xterm_color | ( | ) |
| void sm_debug_write | ( | int | flag | ) |
| void sm_log_pop | ( | ) |
| void sm_log_push | ( | const char * | cname | ) |
| void sm_set_program_name | ( | const char * | name | ) |
| void sm_write_context | ( | ) |
| int checked_for_xterm_color = 0 |
| int sm_debug_write_flag = 0 |
| int sm_log_context = 0 |
| const char* sm_log_context_name[MAX_CONTEXTS] = {""} |
| const char* sm_program_name = 0 |
| char sm_program_name_temp[256] |
| int xterm_color_available = 0 |