projects
/
YACASL2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
560a27c
)
ファイル読み込みなどでの失敗時の動作を設定
v0.2p6
author
j8takagi
<j8takagi@nifty.com>
Thu, 22 Nov 2012 03:06:37 +0000
(12:06 +0900)
committer
j8takagi
<j8takagi@nifty.com>
Thu, 22 Nov 2012 03:06:37 +0000
(12:06 +0900)
src/assemble.c
patch
|
blob
|
history
diff --git
a/src/assemble.c
b/src/assemble.c
index
9227114
..
8f09287
100644
(file)
--- a/
src/assemble.c
+++ b/
src/assemble.c
@@
-3,6
+3,7
@@
#include <string.h>
#include <ctype.h>
#include <assert.h>
+#include <errno.h>
#include "assemble.h"
#include "cerr.h"
@@
-635,6
+636,7
@@
bool assemblefile(const char *file, PASS pass)
FILE *fp;
if((fp = fopen(file, "r")) == NULL) {
+ cerr->num = errno;
perror(file);
return false;
}