Changes in / [ee310eb:625802a]
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
dict.c
raf1920fd r1cf3f8d3 179 179 owl_dict_free_all(&d, NULL); 180 180 181 / * if (numfailed) printf("*** WARNING: failures encountered with owl_dict\n"); */181 // if (numfailed) printf("*** WARNING: failures encountered with owl_dict\n"); 182 182 printf("# END testing owl_dict (%d failures)\n", numfailed); 183 183 return(numfailed); -
editwin.c
raf1920fd rb2c1bd4 36 36 e->echochar='\0'; 37 37 38 /* We get initialized multiple times, but we need to hold on to39 the callbacks, so we can't NULL them here. */40 38 /* 39 // We get initialized multiple times, but we need to hold on to 40 // the callbacks, so we can't NULL them here. 41 41 e->command = NULL; 42 42 e->callback = NULL; … … 116 116 owl_function_error("Internal error: No editwin callback!"); 117 117 } else { 118 / * owl_function_error("text: |%s|", owl_editwin_get_text(e)); */118 // owl_function_error("text: |%s|", owl_editwin_get_text(e)); 119 119 cb(e); 120 120 } -
filter.c
raf1920fd rad15610 341 341 TEST_FILTER("type ^zephyr$ and direction ^in$ and ( class ^owl$ or instance ^owl$ )", 1); 342 342 343 / * Order of operations and precedence */343 // Order of operations and precedence 344 344 TEST_FILTER("not true or false", 0); 345 345 TEST_FILTER("true or true and false", 0); … … 352 352 TEST_FILTER("filter f1", 1); 353 353 354 / * Test recursion prevention */354 // Test recursion prevention 355 355 FAIL_UNLESS("self reference", owl_filter_init_fromstring(&f2, "test", "filter test")); 356 356 357 / * mutual recursion */357 // mutual recursion 358 358 owl_filter_init_fromstring(&f3, "f3", "filter f4"); 359 359 owl_global_add_filter(&g, &f3); -
filterelement.c
raf1920fd r5616acc 124 124 } 125 125 126 / * Print methods */126 // Print methods 127 127 128 128 static void owl_filterelement_print_true(owl_filterelement *fe, char *buf) … … 182 182 } 183 183 184 / * Constructors */184 // Constructors 185 185 186 186 void owl_filterelement_create(owl_filterelement *fe) { -
fmtext.c
raf1920fd rc55ad84 793 793 void owl_fmtext_init_colorpair_mgr(owl_colorpair_mgr *cpmgr) 794 794 { 795 / * This could be a bitarray if we wanted to save memory. */795 // This could be a bitarray if we wanted to save memory. 796 796 short i, j; 797 797 cpmgr->next = 8; 798 798 799 / * The test is <= because we allocate COLORS+1 entries. */799 // The test is <= because we allocate COLORS+1 entries. 800 800 cpmgr->pairs = owl_malloc((COLORS+1) * sizeof(short*)); 801 801 for(i = 0; i <= COLORS; i++) { … … 823 823 cpmgr->next = 8; 824 824 825 / * The test is <= because we allocated COLORS+1 entries. */825 // The test is <= because we allocated COLORS+1 entries. 826 826 for(i = 0; i <= COLORS; i++) { 827 827 for(j = 0; j <= COLORS; j++) { … … 844 844 short pair, default_bg; 845 845 846 /* Sanity (Bounds) Check */847 if (fg > COLORS || fg < OWL_COLOR_DEFAULT) fg = OWL_COLOR_DEFAULT;848 if (bg > COLORS || bg < OWL_COLOR_DEFAULT) bg = OWL_COLOR_DEFAULT;849 850 846 #ifdef HAVE_USE_DEFAULT_COLORS 851 847 if (fg == OWL_COLOR_DEFAULT) fg = -1; … … 857 853 #endif 858 854 859 / * looking for a pair we already set up for this draw. */855 // looking for a pair we already set up for this draw. 860 856 cpmgr = owl_global_get_colorpair_mgr(&g); 861 857 pair = cpmgr->pairs[fg+1][bg+1]; 862 858 if (!(pair != -1 && pair < cpmgr->next)) { 863 /* If we didn't find a pair, search for a free one to assign. */ 859 /* owl_global_set_needrefresh(&g);*/ 860 // If we didn't find a pair, search for a free one to assign. 864 861 pair = (cpmgr->next < COLOR_PAIRS) ? cpmgr->next : -1; 865 862 if (pair != -1) { 866 / * We found a free pair, initialize it. */863 // We found a free pair, initialize it. 867 864 init_pair(pair, fg, bg); 868 865 cpmgr->pairs[fg+1][bg+1] = pair; … … 870 867 } 871 868 else if (bg != OWL_COLOR_DEFAULT) { 872 / * We still don't have a pair, drop the background color. Too bad. */869 // We still don't have a pair, drop the background color. Too bad. 873 870 owl_function_debugmsg("colorpairs: color shortage - dropping background color."); 874 871 pair = owl_fmtext_get_colorpair(fg, OWL_COLOR_DEFAULT); 875 872 } 876 873 else { 877 / * We still don't have a pair, defaults all around. */874 // We still don't have a pair, defaults all around. 878 875 owl_function_debugmsg("colorpairs: color shortage - dropping foreground and background color."); 879 876 pair = 0; -
functions.c
raf1920fd rf9eea4c 1372 1372 redrawwin(owl_global_get_curs_recwin(&g)); 1373 1373 redrawwin(owl_global_get_curs_sepwin(&g)); 1374 / * Work around curses segfualts with windows off the screen */1374 // Work around curses segfualts with windows off the screen 1375 1375 if (g.lines >= owl_global_get_typwin_lines(&g)+2) 1376 1376 redrawwin(owl_global_get_curs_typwin(&g)); -
logging.c
raf1920fd r28ee32b 139 139 /* Figure out what path to log to */ 140 140 if (owl_message_is_type_zephyr(m)) { 141 / * If this has CC's, do all but the "recipient" which we'll do below */141 // If this has CC's, do all but the "recipient" which we'll do below 142 142 to = owl_message_get_cc_without_recipient(m); 143 143 if (to != NULL) { … … 326 326 327 327 if (personal && owl_message_is_type_zephyr(m)) { 328 /* We want to log to all of the CC'd people who were not us, or 329 * the sender, as well. 330 */ 328 // We want to log to all of the CC'd people who were not us, or 329 // the sender, as well. 331 330 char *cc, *temp; 332 331 cc = owl_message_get_cc_without_recipient(m); -
obarray.c
raf1920fd r535d68b 10 10 */ 11 11 12 /* Helper method: Lookup a key in the obarray. If the key exists, 13 * return its index, and the interned value in *val. Otherwise, return 14 * the index it should be inserted at. 15 */ 12 // Helper method: Lookup a key in the obarray. If the key exists, 13 // return its index, and the interned value in *val. Otherwise, return 14 // the index it should be inserted at. 16 15 int owl_obarray_lookup(owl_obarray *oa, char * key, char ** val) /*noproto*/ 17 16 { … … 40 39 } 41 40 42 / * Returns NULL if the string doesn't exist in the obarray */41 // Returns NULL if the string doesn't exist in the obarray 43 42 char * owl_obarray_find(owl_obarray *oa, char * string) 44 43 { … … 48 47 } 49 48 50 / * Inserts the string into the obarray if it doesn't exist */49 // Inserts the string into the obarray if it doesn't exist 51 50 char * owl_obarray_insert(owl_obarray *oa, char * string) 52 51 { -
perl/modules/IRC/lib/BarnOwl/Module/IRC.pm
rcab045b r5ff830a 162 162 ); 163 163 164 if ($conn->conn ->connected) {164 if ($conn->connected) { 165 165 BarnOwl::admin_message("IRC", "Connected to $alias as $nick"); 166 166 $ircnets{$alias} = $conn; -
perl/modules/Jabber/lib/BarnOwl/Module/Jabber.pm
r879e7e94 r81312e4 137 137 } 138 138 139 our $showOffline = 0;140 141 139 sub blist_listBuddy { 142 140 my $roster = shift; … … 154 152 $blistStr .= " [" . ( $rq{show} ? $rq{show} : 'online' ) . "]"; 155 153 $blistStr .= " " . $rq{status} if $rq{status}; 156 $blistStr = BarnOwl::Style::boldify($blistStr) if $showOffline;154 $blistStr = BarnOwl::Style::boldify($blistStr); 157 155 } 158 156 else { 159 return '' unless $showOffline;157 return '' if (BarnOwl::getvar('jabber:show_offline_buddies') eq 'off'); 160 158 if ($jq{ask}) { 161 159 $blistStr .= " [pending]"; … … 200 198 201 199 sub onGetBuddyList { 202 $showOffline = BarnOwl::getvar('jabber:show_offline_buddies') eq 'on';203 200 my $blist = ""; 204 201 foreach my $jid ($conn->getJIDs()) { -
perlconfig.c
raf1920fd r367fbf3 14 14 extern XS(boot_BarnOwl); 15 15 extern XS(boot_DynaLoader); 16 / * extern XS(boot_DBI); */16 // extern XS(boot_DBI); 17 17 18 18 static void owl_perl_xs_init(pTHX) -
util.c
raf1920fd r84027015 888 888 !strcmp("meep foo bar", owl_util_uniq("meep foo", "bar foo meep", "-"))); 889 889 890 / * if (numfailed) printf("*** WARNING: failures encountered with owl_util\n"); */890 // if (numfailed) printf("*** WARNING: failures encountered with owl_util\n"); 891 891 printf("# END testing owl_util (%d failures)\n", numfailed); 892 892 return(numfailed); -
variable.c
raf1920fd rd536e72 1083 1083 owl_variable_dict_free(&vd); 1084 1084 1085 / * if (numfailed) printf("*** WARNING: failures encountered with owl_variable\n"); */1085 // if (numfailed) printf("*** WARNING: failures encountered with owl_variable\n"); 1086 1086 printf("# END testing owl_variable (%d failures)\n", numfailed); 1087 1087 return(numfailed);
Note: See TracChangeset
for help on using the changeset viewer.