/[ascend]/trunk/base/generic/compiler/logrelation.c
ViewVC logotype

Diff of /trunk/base/generic/compiler/logrelation.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1346 by johnpye, Thu Jan 25 00:27:14 2007 UTC revision 1347 by jpye, Tue Mar 13 06:40:06 2007 UTC
# Line 387  static struct logrel_term *CreateSatisfi Line 387  static struct logrel_term *CreateSatisfi
387    
388    
389  /*  /*
390   * This function create and *must* create the memory      This function creates (and *must* create) the memory for the structure
391   * for the structure and for the union that the stucuture      and for the union that the stucuture points to. Too much code depends on
392   * points to. Too much code depends on the pre-existent      the pre-existence of a properly initialized union.
393   * of a properly initialized union.  */
  */  
394  struct logrelation *CreateLogRelStructure(enum Expr_enum t)  struct logrelation *CreateLogRelStructure(enum Expr_enum t)
395  {  {
396    struct logrelation *result;    struct logrelation *result;
397    result = ASC_NEW(struct logrelation);    result = ASC_NEW(struct logrelation);
398    assert(result!=NULL);    asc_assert(result!=NULL);
399    memset((char *)&(result->token),0,sizeof(struct TokenLogRel));    memset((char *)&(result->token),0,sizeof(struct TokenLogRel));
400    result->logresidual = 0;    result->logresidual = 0;
401    result->logiscond = 0;    result->logiscond = 0;

Legend:
Removed from v.1346  
changed lines
  Added in v.1347

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22