X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=src%2Ftoken.c;h=fb35c8bf169b26872f2b8a464909751bc1e1ebbe;hp=dac982fdfcd21f8b71fbcf0e97763835485cce05;hb=f8636262f5c60efbb9d1c608e2276d359bc348a0;hpb=176a22fd90e39acf9b4bdae260d71b8d31be6db0 diff --git a/src/token.c b/src/token.c index dac982f..fb35c8b 100644 --- a/src/token.c +++ b/src/token.c @@ -50,7 +50,7 @@ OPD *opdtok(const char *str) do { /* オペランド数が多すぎる場合はエラー */ if(opd->opdc >= OPDSIZE) { - setcerr(117, NULL); /* operand is too many */ + setcerr(117, ""); /* operand is too many */ break; } /* 先頭が等号(=)の場合 */ @@ -80,11 +80,11 @@ OPD *opdtok(const char *str) sepc = *sepp; *sepp = '\0'; if(*q == '\0') { - setcerr(121, NULL); /* cannot get operand token */ + setcerr(121, ""); /* cannot get operand token */ break; } if(strlen(q) - rcnt > OPDSIZE) { - setcerr(118, NULL); /* operand length is too long */ + setcerr(118, ""); /* operand length is too long */ break; } opd->opdv[(++opd->opdc)-1] = strdup_chk(q, "opd.opdv[]"); @@ -141,7 +141,7 @@ CMDLINE *linetok(const char *line) /* 命令とオペランドの取得 */ if(*p == '\n' || *p == '\0') { /* 命令がない場合は、終了 */ if(cmdl->label != NULL) { /* ラベルが定義されていて命令がない場合はエラー */ - setcerr(105, NULL); /* no command in the line */ + setcerr(105, ""); /* no command in the line */ } FREE(cmdl); } else {