/[antiright]/antiright/yaclib/parse.c
ViewVC logotype

Diff of /antiright/yaclib/parse.c

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

revision 1.2 by jefbed, Sat Jul 23 17:10:09 2005 UTC revision 1.3 by jefbed, Mon Nov 14 01:56:46 2005 UTC
# Line 276  yaclib_system_callback(yacl_list *app_da Line 276  yaclib_system_callback(yacl_list *app_da
276  void  void
277  yaclib_string_to_grammar(char *string, yacl_list *grammar)  yaclib_string_to_grammar(char *string, yacl_list *grammar)
278  {  {
279    unsigned int token_size=255;          const unsigned int token_size=255;
280    char token[token_size];          char *token=(char*)malloc(sizeof(char)*(token_size+1));
281    unsigned int token_counter;    unsigned int token_counter;
282    struct yaclib_parse_rule *rule;    struct yaclib_parse_rule *rule;
283    rule=(struct yaclib_parse_rule *)malloc(sizeof(struct yaclib_parse_rule));    rule=(struct yaclib_parse_rule *)malloc(sizeof(struct yaclib_parse_rule));
# Line 310  yaclib_string_to_grammar(char *string, y Line 310  yaclib_string_to_grammar(char *string, y
310        yaclib_add_rule(grammar, rule);        yaclib_add_rule(grammar, rule);
311      }      }
312    free(rule);    free(rule);
313      free(token);
314  }  }
315    
316  void  void

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26