regprog_c.c
/*
 *
 * RegionsProgAppend_C -- append the filter program body
 *
 */
- append the filter program body
- append the filter program body
static int RegionsProgAppend_C(Regions reg){
  char *contents=NULL;
  if( !reg ){
    return 0;
  }
  if( reg->debug >= 2 ){
    return 1;
  }
  contents = IMFILTER_C;
  if( (contents != NULL) && (*contents != '\0') ){
    fprintf(reg->fp, "%s\n", contents);
    return 1;
  } else {
    xerror(stderr, "could not write body of filter program\n");
    return 0;
  }
}
static int RegionsProgAppend_C ( Regions reg ) { char * contents = NULL ; if ( ! reg ) { return 0 ; } if ( reg -> debug >= 2 ) { return 1 ; } contents = IMFILTER_C ; if ( ( contents != NULL ) && ( * contents != ' \0 ' ) ) { fprintf ( reg -> fp , " \n " , contents ) ; return 1 ; } else { xerror ( stderr , " \n " ) ; return 0 ; } }
RegionsProgAppend_C -- append the filter program body
RegionsProgAppend_C -- append the filter program body
/* make sure we have something to work with */ /* make sure we are not in debug mode */ /* get body of filter program */ /* use fprintf so that we handle \n correctly in TEMPLATE */