comparison src/trace.c @ 71:eb9be32c701c

fix leval
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 05 Aug 2018 22:17:44 +0900
parents 1ff0a1fdd5d7
children 02120537b90d
comparison
equal deleted inserted replaced
70:a200fa7d5b70 71:eb9be32c701c
85 85
86 int getarg(char *buf, char** next) { 86 int getarg(char *buf, char** next) {
87 int value = 0; 87 int value = 0;
88 char *b = buf; 88 char *b = buf;
89 if (next==0) next = &b; 89 if (next==0) next = &b;
90 *next = buf;
90 value=getterm(*next,next); 91 value=getterm(*next,next);
91 for(;**next;) { 92 for(;**next;) {
92 if ( **next == '+' ) { 93 if ( **next == '+' ) {
93 value += getterm(*next+1,next); 94 value += getterm(*next+1,next);
94 } else if ( **next == '*' ) { 95 } else if ( **next == '*' ) {