Changeset d12a8c7
- Timestamp:
- Jul 16, 2010, 7:43:42 PM (14 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- 50522b5
- Parents:
- c5873be
- git-author:
- Nelson Elhage <nelhage@mit.edu> (07/15/10 23:35:12)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (07/16/10 19:43:42)
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
r7ba9e0de rd12a8c7 1204 1204 return; 1205 1205 1206 file = fopen(owl_global_get_debug_file(&g), "a");1206 file = owl_global_get_debug_file_handle(&g); 1207 1207 if (!file) /* XXX should report this */ 1208 1208 return; … … 1214 1214 vfprintf(file, fmt, ap); 1215 1215 putc('\n', file); 1216 f close(file);1216 fflush(file); 1217 1217 1218 1218 va_end(ap); -
global.c
r04b16f8 rd12a8c7 1075 1075 filters[i].desc)); 1076 1076 } 1077 1078 FILE *owl_global_get_debug_file_handle(owl_global *g) { 1079 static char *open_file = NULL; 1080 const char *filename = owl_global_get_debug_file(g); 1081 if (g->debug_file == NULL || 1082 (open_file && strcmp(filename, open_file) != 0)) { 1083 if (g->debug_file) 1084 fclose(g->debug_file); 1085 g->debug_file = fopen(filename, "a"); 1086 1087 owl_free(open_file); 1088 open_file = owl_strdup(filename); 1089 } 1090 return g->debug_file; 1091 } -
owl.c
r04b16f8 rd12a8c7 476 476 g.load_initial_subs = opts.load_initial_subs; 477 477 478 owl_function_debugmsg("startup: Finished parsing arguments");479 480 478 owl_register_signal_handlers(); 481 479 owl_start_curses(); -
owl.h
r7ba9e0de rd12a8c7 630 630 int load_initial_subs; 631 631 volatile sig_atomic_t interrupted; 632 FILE *debug_file; 632 633 } owl_global; 633 634
Note: See TracChangeset
for help on using the changeset viewer.