Branch: Tag:

1998-04-24

1998-04-24 13:51:03 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

i don't wan't unneccesary braces in if-statements!

Rev: src/modules/Image/blit.c:1.29
Rev: src/modules/Image/colortable.c:1.45
Rev: src/modules/Image/font.c:1.35
Rev: src/modules/Image/matrix.c:1.17
Rev: src/modules/Image/polyfill.c:1.26
Rev: src/modules/Image/testsuite.in:1.11
Rev: src/modules/Image/togif.c:1.32
Rev: src/modules/Image/x.c:1.19

1: - /* $Id: font.c,v 1.34 1998/04/20 18:53:29 grubba Exp $ */ + /* $Id: font.c,v 1.35 1998/04/24 13:50:21 mirar Exp $ */   #include "global.h"   #include <config.h>   
7:   /*   **! module Image   **! note - **! $Id: font.c,v 1.34 1998/04/20 18:53:29 grubba Exp $ + **! $Id: font.c,v 1.35 1998/04/24 13:50:21 mirar Exp $   **! class font   **!   **! note
284:    struct stat tmp;    int res;    if((!fd_fstat(fd, &tmp)) && -  (tmp.st_mode & S_IFREG)) { +  (tmp.st_mode & S_IFREG))    return res = tmp.st_size; -  } +     return -1;   }   
306:    for (x=(INT32)ci->width; x>0; x--)    {    int r,c; -  if((c=255-*p)) { +  if((c=255-*p))    if ((r=pos->r+c)>255)    pos->r=pos->g=pos->b=255;    else    pos->r=pos->g=pos->b=r; -  } +     pos++;    p++;    }
372: Inside #if defined(FONT_DEBUG)
  #ifdef FONT_DEBUG    fprintf(stderr,"FONT Malloced %p (%d)\n",new_font->mem,size);   #endif -  if ((new_font->mem) && (!my_read(fd,new_font->mem,size))) { +  if ((new_font->mem) && (!my_read(fd,new_font->mem,size))) +  {    free(new_font->mem);    new_font->mem = NULL;    }