Changed mh_opcode_t type.
Showing
1 changed file
with
5 additions
and
4 deletions
... | @@ -62,10 +62,10 @@ enum mh_opcode | ... | @@ -62,10 +62,10 @@ enum mh_opcode |
62 | Format: mhop_branch offset */ | 62 | Format: mhop_branch offset */ |
63 | mhop_branch, | 63 | mhop_branch, |
64 | /* 2. Assign to numeric register | 64 | /* 2. Assign to numeric register |
65 | Format: mhop_num_asgn number */ | 65 | Format: mhop_num_asgn */ |
66 | mhop_num_asgn, | 66 | mhop_num_asgn, |
67 | /* 3. Assign to string register | 67 | /* 3. Assign to string register |
68 | Format: mhop_str_asgn length string */ | 68 | Format: mhop_str_asgn */ |
69 | mhop_str_asgn, | 69 | mhop_str_asgn, |
70 | /* 4. Numeric arg follows. | 70 | /* 4. Numeric arg follows. |
71 | Format: mhop_num_arg number */ | 71 | Format: mhop_num_arg number */ |
... | @@ -111,7 +111,8 @@ enum mh_opcode | ... | @@ -111,7 +111,8 @@ enum mh_opcode |
111 | 111 | ||
112 | /* 17. Set format specification. | 112 | /* 17. Set format specification. |
113 | Format: mhop_fmtspec number */ | 113 | Format: mhop_fmtspec number */ |
114 | mhop_fmtspec | 114 | mhop_fmtspec, |
115 | |||
115 | }; | 116 | }; |
116 | 117 | ||
117 | enum mh_type | 118 | enum mh_type |
... | @@ -121,7 +122,7 @@ enum mh_type | ... | @@ -121,7 +122,7 @@ enum mh_type |
121 | mhtype_str | 122 | mhtype_str |
122 | }; | 123 | }; |
123 | 124 | ||
124 | typedef int mh_opcode_t; | 125 | typedef enum mh_opcode mh_opcode_t; |
125 | 126 | ||
126 | struct mh_machine; | 127 | struct mh_machine; |
127 | typedef void (*mh_builtin_fp) __P((struct mh_machine *)); | 128 | typedef void (*mh_builtin_fp) __P((struct mh_machine *)); | ... | ... |
-
Please register or sign in to post a comment