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

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

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

revision 707 by johnpye, Wed Jun 21 07:00:45 2006 UTC revision 708 by johnpye, Tue Jun 27 07:34:31 2006 UTC
# Line 174  int BinTokenCheckCapacity() Line 174  int BinTokenCheckCapacity()
174    if (g_bt_data.tables == NULL) {    if (g_bt_data.tables == NULL) {
175      assert(g_bt_data.captables == 0);      assert(g_bt_data.captables == 0);
176      g_bt_data.tables =      g_bt_data.tables =
177        (struct bt_table *)ascmalloc(20*sizeof(struct bt_table));        ASC_NEW_ARRAY(struct bt_table,20);
178      assert(g_bt_data.tables != NULL);      assert(g_bt_data.tables != NULL);
179      g_bt_data.captables = 20;      g_bt_data.captables = 20;
180      return 0;      return 0;
# Line 1014  int main() { /* built only if TESTBT def Line 1014  int main() { /* built only if TESTBT def
1014    gl_append_ptr(g_test_list,(void *)30);    gl_append_ptr(g_test_list,(void *)30);
1015    gl_append_ptr(g_test_list,(void *)40);    gl_append_ptr(g_test_list,(void *)40);
1016    gl_append_ptr(g_test_list,(void *)50);    gl_append_ptr(g_test_list,(void *)50);
1017    b[0]=(char *)ascmalloc(50);    b[0]=ASC_NEW_ARRAY(char,50);
1018    b[1]=(char *)ascmalloc(50);    b[1]=ASC_NEW_ARRAY(char,50);
1019    b[2]=(char *)ascmalloc(50);    b[2]=ASC_NEW_ARRAY(char,50);
1020    b[4]=(char *)ascmalloc(50);    b[4]=ASC_NEW_ARRAY(char,50);
1021    b[5]=(char *)ascmalloc(50);    b[5]=ASC_NEW_ARRAY(char,50);
1022    sprintf(b[0],"/tmp/btsrc.c");    sprintf(b[0],"/tmp/btsrc.c");
1023    sprintf(b[1],"/tmp/btsrc.o");    sprintf(b[1],"/tmp/btsrc.o");
1024    sprintf(b[2],"/tmp/btsrc.so");    sprintf(b[2],"/tmp/btsrc.so");

Legend:
Removed from v.707  
changed lines
  Added in v.708

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