version 1.3, 1999/11/02 21:15:02 |
version 1.4, 1999/11/07 12:12:55 |
|
|
/* -*- mode: C; coding: euc-japan -*- */ |
/* -*- mode: C; coding: euc-japan -*- */ |
/* $OpenXM: OpenXM/src/ox_math/bconv.c,v 1.2 1999/11/02 06:11:57 ohara Exp $ */ |
/* $OpenXM: OpenXM/src/ox_math/bconv.c,v 1.3 1999/11/02 21:15:02 ohara Exp $ */ |
/* $Id$ */ |
|
/* |
/* |
OX expression -> バイト列 |
OX expression -> バイト列 |
CMO expression -> バイト列 |
CMO expression -> バイト列 |
Line 22 static int display(ox *m) |
|
Line 22 static int display(ox *m) |
|
case OX_DATA: |
case OX_DATA: |
len = sizeof(int) + sizeof(int) + cmolen_cmo(((ox_data *)m)->cmo); |
len = sizeof(int) + sizeof(int) + cmolen_cmo(((ox_data *)m)->cmo); |
d_buff = malloc(len); |
d_buff = malloc(len); |
init_dump_buffer(d_buff); |
init_dump_buffer(d_buff); |
dump_ox_data((ox_data *)m); |
dump_ox_data((ox_data *)m); |
break; |
break; |
case OX_COMMAND: |
case OX_COMMAND: |
len = sizeof(int) + sizeof(int) + sizeof(int); |
len = sizeof(int) + sizeof(int) + sizeof(int); |
d_buff = malloc(len); |
d_buff = malloc(len); |
init_dump_buffer(d_buff); |
init_dump_buffer(d_buff); |
dump_ox_command((ox_command *)m); |
dump_ox_command((ox_command *)m); |
break; |
break; |
default: |
default: |
len = cmolen_cmo((cmo *)m); |
len = cmolen_cmo((cmo *)m); |
d_buff = malloc(len); |
d_buff = malloc(len); |
init_dump_buffer(d_buff); |
init_dump_buffer(d_buff); |
dump_cmo((cmo *)m); |
dump_cmo((cmo *)m); |
} |
} |
|
|
Line 44 static int display(ox *m) |
|
Line 44 static int display(ox *m) |
|
fprintf(stdout, "\n"); |
fprintf(stdout, "\n"); |
} |
} |
} |
} |
if(i%20 != 19) { |
if(i%20 != 19) { |
fprintf(stdout, "\n"); |
fprintf(stdout, "\n"); |
} |
} |
free(d_buff); |
free(d_buff); |
} |
} |
|
|
#define SIZE_CMDLINE 8192 |
#define SIZE_CMDLINE 8192 |
|
|
setbuf(stderr, NULL); |
setbuf(stderr, NULL); |
setbuf(stdout, NULL); |
setbuf(stdout, NULL); |
|
|
setflag_parse(PFLAG_ADDREV); |
setflag_parse(PFLAG_ADDREV); |
setgetc(mygetc); |
setgetc(mygetc); |
|
|
for(prompt(); (m = parse()) != NULL; prompt()) { |
for(prompt(); (m = parse()) != NULL; prompt()) { |