* 指定された名前のファイルをアセンブル
* 2回実行される
*/
-bool assemble(const char *file, PASS pass)
+void assemble(const char *file, PASS pass)
{
int lineno = 0;
bool status = true;
if((fp = fopen(file, "r")) == NULL) {
perror(file);
- return false;
+ setcerr(127, NULL);
+ return;
}
while(fgets(line, LINESIZE, fp)) {
lineno++;
}
FREE(line);
fclose(fp);
- return status;
}
/**