Changeset af1920fd for fmtext.c


Ignore:
Timestamp:
Feb 3, 2008, 1:01:07 AM (16 years ago)
Author:
Alejandro R. Sedeño <asedeno@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
247cbc9, 61abb18
Parents:
1b737a1
Message:
Portability - removing C++ style comments.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fmtext.c

    r1b737a1 raf1920fd  
    689689void owl_fmtext_init_colorpair_mgr(owl_colorpair_mgr *cpmgr)
    690690{
    691   // This could be a bitarray if we wanted to save memory.
     691  /* This could be a bitarray if we wanted to save memory. */
    692692  short i, j;
    693693  cpmgr->next = 8;
    694694 
    695   // The test is <= because we allocate COLORS+1 entries.
     695  /* The test is <= because we allocate COLORS+1 entries. */
    696696  cpmgr->pairs = owl_malloc((COLORS+1) * sizeof(short*));
    697697  for(i = 0; i <= COLORS; i++) {
     
    719719    cpmgr->next = 8;
    720720   
    721     // The test is <= because we allocated COLORS+1 entries.
     721    /* The test is <= because we allocated COLORS+1 entries. */
    722722    for(i = 0; i <= COLORS; i++) {
    723723      for(j = 0; j <= COLORS; j++) {
     
    753753#endif
    754754
    755   // looking for a pair we already set up for this draw.
     755  /* looking for a pair we already set up for this draw. */
    756756  cpmgr = owl_global_get_colorpair_mgr(&g);
    757757  pair = cpmgr->pairs[fg+1][bg+1];
    758758  if (!(pair != -1 && pair < cpmgr->next)) {
    759 /*    owl_global_set_needrefresh(&g);*/
    760     // If we didn't find a pair, search for a free one to assign.
     759    /* If we didn't find a pair, search for a free one to assign. */
    761760    pair = (cpmgr->next < COLOR_PAIRS) ? cpmgr->next : -1;
    762761    if (pair != -1) {
    763       // We found a free pair, initialize it.
     762      /* We found a free pair, initialize it. */
    764763      init_pair(pair, fg, bg);
    765764      cpmgr->pairs[fg+1][bg+1] = pair;
     
    767766    }
    768767    else if (bg != OWL_COLOR_DEFAULT) {
    769       // We still don't have a pair, drop the background color. Too bad.
     768      /* We still don't have a pair, drop the background color. Too bad. */
    770769      owl_function_debugmsg("colorpairs: color shortage - dropping background color.");
    771770      pair = owl_fmtext_get_colorpair(fg, OWL_COLOR_DEFAULT);
    772771    }
    773772    else {
    774       // We still don't have a pair, defaults all around.
     773      /* We still don't have a pair, defaults all around. */
    775774      owl_function_debugmsg("colorpairs: color shortage - dropping foreground and background color.");
    776775      pair = 0;
Note: See TracChangeset for help on using the changeset viewer.