summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabrice Le Fessant <Fabrice.Le_fessant@inria.fr>2014-05-05 13:59:25 +0000
committerFabrice Le Fessant <Fabrice.Le_fessant@inria.fr>2014-05-05 13:59:25 +0000
commitb1943e1ac77e754acde6ef5bb4e0bcdb96af6a31 (patch)
treeba58e1ab9d8bbd558d8bc22c889f682b9ab163e1
parentf8efbbfc0d09d099d6d86f67d72d4d9f88cd8053 (diff)
downloadocaml-b1943e1ac77e754acde6ef5bb4e0bcdb96af6a31.tar.gz
Remove FIRST_UNIMPLEMENTED_OP from interp.c
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14748 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r--byterun/instruct.h3
-rw-r--r--byterun/interp.c1
-rw-r--r--tools/Makefile.shared2
3 files changed, 2 insertions, 4 deletions
diff --git a/byterun/instruct.h b/byterun/instruct.h
index 351a4cff9e..f9cc80ee65 100644
--- a/byterun/instruct.h
+++ b/byterun/instruct.h
@@ -56,8 +56,7 @@ enum instructions {
STOP,
EVENT, BREAK,
RERAISE, RAISE_NOTRACE,
- FIRST_UNIMPLEMENTED_OP
-};
+FIRST_UNIMPLEMENTED_OP};
#endif /* CAML_INSTRUCT_H */
diff --git a/byterun/interp.c b/byterun/interp.c
index 0598627190..9b682ba6ea 100644
--- a/byterun/interp.c
+++ b/byterun/interp.c
@@ -1112,7 +1112,6 @@ value caml_interprete(code_t prog, asize_t prog_size)
/* Debugging and machine control */
- Instruct(FIRST_UNIMPLEMENTED_OP):
Instruct(STOP):
caml_external_raise = initial_external_raise;
caml_extern_sp = sp;
diff --git a/tools/Makefile.shared b/tools/Makefile.shared
index 8fd3c9435e..2b19278486 100644
--- a/tools/Makefile.shared
+++ b/tools/Makefile.shared
@@ -264,7 +264,7 @@ opnames.ml: ../byterun/instruct.h
sed -e '/\/\*/d' \
-e '/^#/d' \
-e 's/enum \(.*\) {/let names_of_\1 = [|/' \
- -e 's/};$$/ |]/' \
+ -e 's/.*};$$/ |]/' \
-e 's/\([A-Z][A-Z_0-9a-z]*\)/"\1"/g' \
-e 's/,/;/g' \
../byterun/instruct.h > opnames.ml