mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 09:51:41 +00:00
remove support for an optional = in struct/union declarations
This commit is contained in:
parent
21b3a87535
commit
8abb9a69aa
10 changed files with 12 additions and 16 deletions
|
@ -912,6 +912,7 @@ rua_obj_msg_sendv (progs_t *pr)
|
|||
int count = args->count;
|
||||
func_t imp = obj_msg_lookup (pr, receiver, op);
|
||||
|
||||
//FIXME bounds checking
|
||||
if (!imp)
|
||||
PR_RunError (pr, "%s does not respond to %s",
|
||||
PR_GetString (pr, object_get_class_name (pr, receiver)),
|
||||
|
|
|
@ -41,7 +41,7 @@ Array movement_bindings;
|
|||
Array misc_bindings;
|
||||
Array weapon_bindings;
|
||||
|
||||
struct binding_s = {
|
||||
struct binding_s {
|
||||
string text;
|
||||
string command;
|
||||
string keys;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include "Object.h"
|
||||
|
||||
struct _qpic_t = {
|
||||
struct _qpic_t {
|
||||
integer width;
|
||||
integer height;
|
||||
};
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include "View.h"
|
||||
|
||||
struct _inputline_t = {}; // opaque type :)
|
||||
struct _inputline_t {}; // opaque type :)
|
||||
typedef struct _inputline_t [] inputline_t;
|
||||
|
||||
@extern inputline_t (integer lines, integer size, integer prompt) InputLine_Create;
|
||||
|
@ -16,7 +16,7 @@ typedef struct _inputline_t [] inputline_t;
|
|||
@extern void (inputline_t il, string str) InputLine_SetText;
|
||||
@extern string (inputline_t il) InputLine_GetText;
|
||||
|
||||
struct il_data_t = {
|
||||
struct il_data_t {
|
||||
integer x, y;
|
||||
integer xbase, ybase;
|
||||
BOOL cursor;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef __ruamoko_hash_h
|
||||
#define __ruamoko_hash_h
|
||||
|
||||
struct _hashtab_t = {};
|
||||
struct _hashtab_t {};
|
||||
typedef struct _hashtab_t [] hashtab_t;
|
||||
|
||||
@extern hashtab_t (integer size, string (void []ele, void []data) gk, void (void []ele, void []data) f, void [] ud) Hash_NewTable;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef __ruamoko_qfile_h
|
||||
#define __ruamoko_qfile_h
|
||||
|
||||
struct _qfile_t = {};
|
||||
struct _qfile_t {};
|
||||
typedef struct _qfile_t [] QFile;
|
||||
|
||||
@extern integer (string old, string new) Qrename;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include "qfile.h"
|
||||
|
||||
struct _qfslist_t = {
|
||||
struct _qfslist_t {
|
||||
integer count;
|
||||
string []list;
|
||||
};
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include "List.h"
|
||||
|
||||
struct list_bucket_s = {
|
||||
struct list_bucket_s {
|
||||
struct list_bucket_s [] next;
|
||||
struct list_bucket_s [][] prev;
|
||||
id obj;
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
@class Continuation;
|
||||
|
||||
struct state_s = {
|
||||
struct state_s {
|
||||
instruction_t [] program;
|
||||
lineinfo_t [] lineinfo;
|
||||
integer pc;
|
||||
|
|
|
@ -231,9 +231,9 @@ def
|
|||
| storage_class '{' simple_defs '}' ';'
|
||||
{ current_storage = st_global; }
|
||||
| STRUCT identifier
|
||||
{ current_struct = new_struct ($2); } opt_eq '{' struct_defs '}' ';' { }
|
||||
{ current_struct = new_struct ($2); } '{' struct_defs '}' ';' { }
|
||||
| UNION identifier
|
||||
{ current_struct = new_union ($2); } opt_eq '{' struct_defs '}' ';' { }
|
||||
{ current_struct = new_union ($2); } '{' struct_defs '}' ';' { }
|
||||
| STRUCT identifier ';' { decl_struct ($2); }
|
||||
| UNION identifier ';' { decl_union ($2); }
|
||||
| ENUM '{' enum_list opt_comma '}' ';'
|
||||
|
@ -247,11 +247,6 @@ def
|
|||
}
|
||||
;
|
||||
|
||||
opt_eq
|
||||
: /* empty */ { }
|
||||
| '=' { }
|
||||
;
|
||||
|
||||
opt_semi
|
||||
: /* empty */
|
||||
| ';'
|
||||
|
|
Loading…
Reference in a new issue