create_cmdtype_code(); /* 命令の名前とタイプがキーのハッシュ表を作成 */
asptr = malloc_chk(sizeof(ASPTR), "asptr"); /* アセンブル時のプロパティ用の領域確保 */
- asptr->prog = malloc_chk(sizeof(LABELSIZE + 1), "asptr.prog");
+ asptr->prog = malloc_chk(LABELSIZE + 1, "asptr.prog");
asptr->ptr = 0;
/* アセンブル。ラベル表作成のため、2回行う */
for(pass = FIRST; pass <= SECOND; pass++) {
}
/* ソースファイルが指定されていない場合は終了 */
if(argv[optind] == NULL) {
- setcerr(126, NULL); /* no source file */
+ setcerr(126, ""); /* no source file */
fprintf(stderr, "CASL2 error - %d: %s\n", cerr->num, cerr->msg);
exit(1);
}