Changes in / [625802a:ee310eb]


Ignore:
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • dict.c

    r1cf3f8d3 raf1920fd  
    179179  owl_dict_free_all(&d, NULL);
    180180
    181   //  if (numfailed) printf("*** WARNING: failures encountered with owl_dict\n");
     181  /*  if (numfailed) printf("*** WARNING: failures encountered with owl_dict\n"); */
    182182  printf("# END testing owl_dict (%d failures)\n", numfailed);
    183183  return(numfailed);
  • editwin.c

    rb2c1bd4 raf1920fd  
    3636  e->echochar='\0';
    3737
     38  /* We get initialized multiple times, but we need to hold on to
     39     the callbacks, so we can't NULL them here. */
    3840  /*
    39     // We get initialized multiple times, but we need to hold on to
    40     // the callbacks, so we can't NULL them here.
    4141    e->command = NULL;
    4242    e->callback = NULL;
     
    116116    owl_function_error("Internal error: No editwin callback!");
    117117  } else {
    118     // owl_function_error("text: |%s|", owl_editwin_get_text(e));
     118    /* owl_function_error("text: |%s|", owl_editwin_get_text(e)); */
    119119    cb(e);
    120120  }
  • filter.c

    rad15610 raf1920fd  
    341341  TEST_FILTER("type ^zephyr$ and direction ^in$ and ( class ^owl$ or instance ^owl$ )", 1);
    342342
    343   // Order of operations and precedence
     343  /* Order of operations and precedence */
    344344  TEST_FILTER("not true or false", 0);
    345345  TEST_FILTER("true or true and false", 0);
     
    352352  TEST_FILTER("filter f1", 1);
    353353
    354   // Test recursion prevention
     354  /* Test recursion prevention */
    355355  FAIL_UNLESS("self reference", owl_filter_init_fromstring(&f2, "test", "filter test"));
    356356
    357   // mutual recursion
     357  /* mutual recursion */
    358358  owl_filter_init_fromstring(&f3, "f3", "filter f4");
    359359  owl_global_add_filter(&g, &f3);
  • filterelement.c

    r5616acc raf1920fd  
    124124}
    125125
    126 // Print methods
     126/* Print methods */
    127127
    128128static void owl_filterelement_print_true(owl_filterelement *fe, char *buf)
     
    182182}
    183183
    184 // Constructors
     184/* Constructors */
    185185
    186186void owl_filterelement_create(owl_filterelement *fe) {
  • fmtext.c

    rc55ad84 raf1920fd  
    793793void owl_fmtext_init_colorpair_mgr(owl_colorpair_mgr *cpmgr)
    794794{
    795   // This could be a bitarray if we wanted to save memory.
     795  /* This could be a bitarray if we wanted to save memory. */
    796796  short i, j;
    797797  cpmgr->next = 8;
    798798 
    799   // The test is <= because we allocate COLORS+1 entries.
     799  /* The test is <= because we allocate COLORS+1 entries. */
    800800  cpmgr->pairs = owl_malloc((COLORS+1) * sizeof(short*));
    801801  for(i = 0; i <= COLORS; i++) {
     
    823823    cpmgr->next = 8;
    824824   
    825     // The test is <= because we allocated COLORS+1 entries.
     825    /* The test is <= because we allocated COLORS+1 entries. */
    826826    for(i = 0; i <= COLORS; i++) {
    827827      for(j = 0; j <= COLORS; j++) {
     
    844844  short pair, default_bg;
    845845
     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           
    846850#ifdef HAVE_USE_DEFAULT_COLORS
    847851  if (fg == OWL_COLOR_DEFAULT) fg = -1;
     
    853857#endif
    854858
    855   // looking for a pair we already set up for this draw.
     859  /* looking for a pair we already set up for this draw. */
    856860  cpmgr = owl_global_get_colorpair_mgr(&g);
    857861  pair = cpmgr->pairs[fg+1][bg+1];
    858862  if (!(pair != -1 && pair < cpmgr->next)) {
    859 /*    owl_global_set_needrefresh(&g);*/
    860     // If we didn't find a pair, search for a free one to assign.
     863    /* If we didn't find a pair, search for a free one to assign. */
    861864    pair = (cpmgr->next < COLOR_PAIRS) ? cpmgr->next : -1;
    862865    if (pair != -1) {
    863       // We found a free pair, initialize it.
     866      /* We found a free pair, initialize it. */
    864867      init_pair(pair, fg, bg);
    865868      cpmgr->pairs[fg+1][bg+1] = pair;
     
    867870    }
    868871    else if (bg != OWL_COLOR_DEFAULT) {
    869       // We still don't have a pair, drop the background color. Too bad.
     872      /* We still don't have a pair, drop the background color. Too bad. */
    870873      owl_function_debugmsg("colorpairs: color shortage - dropping background color.");
    871874      pair = owl_fmtext_get_colorpair(fg, OWL_COLOR_DEFAULT);
    872875    }
    873876    else {
    874       // We still don't have a pair, defaults all around.
     877      /* We still don't have a pair, defaults all around. */
    875878      owl_function_debugmsg("colorpairs: color shortage - dropping foreground and background color.");
    876879      pair = 0;
  • functions.c

    rf9eea4c raf1920fd  
    13721372  redrawwin(owl_global_get_curs_recwin(&g));
    13731373  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 */
    13751375  if (g.lines >= owl_global_get_typwin_lines(&g)+2)
    13761376      redrawwin(owl_global_get_curs_typwin(&g));
  • logging.c

    r28ee32b raf1920fd  
    139139  /* Figure out what path to log to */
    140140  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 */
    142142    to = owl_message_get_cc_without_recipient(m);
    143143    if (to != NULL) {
     
    326326
    327327  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.
     328    /* We want to log to all of the CC'd people who were not us, or
     329     * the sender, as well.
     330     */
    330331    char *cc, *temp;
    331332    cc = owl_message_get_cc_without_recipient(m);
  • obarray.c

    r535d68b raf1920fd  
    1010 */
    1111
    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.
     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 */
    1516int owl_obarray_lookup(owl_obarray *oa, char * key, char ** val) /*noproto*/
    1617{
     
    3940}
    4041
    41 // Returns NULL if the string doesn't exist in the obarray
     42/* Returns NULL if the string doesn't exist in the obarray */
    4243char * owl_obarray_find(owl_obarray *oa, char * string)
    4344{
     
    4748}
    4849
    49 // Inserts the string into the obarray if it doesn't exist
     50/* Inserts the string into the obarray if it doesn't exist */
    5051char * owl_obarray_insert(owl_obarray *oa, char * string)
    5152{
  • perl/modules/IRC/lib/BarnOwl/Module/IRC.pm

    r5ff830a rcab045b  
    162162       );
    163163
    164     if ($conn->connected) {
     164    if ($conn->conn->connected) {
    165165        BarnOwl::admin_message("IRC", "Connected to $alias as $nick");
    166166        $ircnets{$alias} = $conn;
  • perl/modules/Jabber/lib/BarnOwl/Module/Jabber.pm

    r81312e4 r879e7e94  
    137137}
    138138
     139our $showOffline = 0;
     140
    139141sub blist_listBuddy {
    140142    my $roster = shift;
     
    152154        $blistStr .= " [" . ( $rq{show} ? $rq{show} : 'online' ) . "]";
    153155        $blistStr .= " " . $rq{status} if $rq{status};
    154         $blistStr = BarnOwl::Style::boldify($blistStr);
     156        $blistStr = BarnOwl::Style::boldify($blistStr) if $showOffline;
    155157    }
    156158    else {
    157         return '' if (BarnOwl::getvar('jabber:show_offline_buddies') eq 'off');
     159        return '' unless $showOffline;
    158160        if ($jq{ask}) {
    159161            $blistStr .= " [pending]";
     
    198200
    199201sub onGetBuddyList {
     202    $showOffline = BarnOwl::getvar('jabber:show_offline_buddies') eq 'on';
    200203    my $blist = "";
    201204    foreach my $jid ($conn->getJIDs()) {
  • perlconfig.c

    r367fbf3 raf1920fd  
    1414extern XS(boot_BarnOwl);
    1515extern XS(boot_DynaLoader);
    16 // extern XS(boot_DBI);
     16/* extern XS(boot_DBI); */
    1717
    1818static void owl_perl_xs_init(pTHX)
  • util.c

    r84027015 raf1920fd  
    888888              !strcmp("meep foo bar", owl_util_uniq("meep foo", "bar foo meep", "-")));
    889889
    890   // if (numfailed) printf("*** WARNING: failures encountered with owl_util\n");
     890  /* if (numfailed) printf("*** WARNING: failures encountered with owl_util\n"); */
    891891  printf("# END testing owl_util (%d failures)\n", numfailed);
    892892  return(numfailed);
  • variable.c

    rd536e72 raf1920fd  
    10831083  owl_variable_dict_free(&vd);
    10841084
    1085   // if (numfailed) printf("*** WARNING: failures encountered with owl_variable\n");
     1085  /* if (numfailed) printf("*** WARNING: failures encountered with owl_variable\n"); */
    10861086  printf("# END testing owl_variable (%d failures)\n", numfailed);
    10871087  return(numfailed);
Note: See TracChangeset for help on using the changeset viewer.