mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 07:11:41 +00:00
[gamecode] Specify underlying type for opcode enums
And remove the bitfield from dstatement_t. I have wanted this for over twenty years :)
This commit is contained in:
parent
77842bdeb4
commit
5abe467f7d
1 changed files with 3 additions and 3 deletions
|
@ -96,7 +96,7 @@ extern const char * const pr_type_name[ev_type_count];
|
|||
#define RESERVED_OFS 28
|
||||
|
||||
|
||||
typedef enum {
|
||||
typedef enum : pr_ushort_t {
|
||||
OP_DONE_v6p,
|
||||
OP_MUL_F_v6p,
|
||||
OP_MUL_V_v6p,
|
||||
|
@ -432,7 +432,7 @@ typedef enum {
|
|||
} pr_opcode_v6p_e;
|
||||
#define OP_BREAK 0x8000
|
||||
|
||||
typedef enum {
|
||||
typedef enum : pr_ushort_t {
|
||||
#ifndef IN_DOXYGEN
|
||||
#include "QF/progs/pr_opcode.hinc"
|
||||
#endif
|
||||
|
@ -489,7 +489,7 @@ extern const opcode_t pr_opcodes[512];
|
|||
const opcode_t *PR_Opcode (pr_ushort_t opcode) __attribute__((const));
|
||||
|
||||
typedef struct dstatement_s {
|
||||
pr_opcode_e op:16; // will be pr_opcode_v6p_e for older progs
|
||||
pr_opcode_e op; // will be pr_opcode_v6p_e for older progs
|
||||
pr_ushort_t a,b,c;
|
||||
} GCC_STRUCT dstatement_t;
|
||||
|
||||
|
|
Loading…
Reference in a new issue