Create a struct for representing specifiers.

The specifiers are yet to come (next few commits), but this will be
necessary when they do.
This commit is contained in:
Bill Currie 2011-02-01 21:15:51 +09:00
parent 917c5f08b0
commit c53001800a
3 changed files with 16 additions and 2 deletions

View file

@ -34,6 +34,8 @@
#include "QF/pr_comp.h"
#include "def.h"
typedef struct ty_func_s {
struct type_s *type;
int num_params;
@ -74,6 +76,18 @@ typedef struct type_s {
struct type_s *next;
} type_t;
typedef struct {
type_t *type;
storage_class_t storage;
unsigned multi_type:1;
unsigned multi_store:1;
unsigned is_signed:1;
unsigned is_unsigned:1;
unsigned is_short:1;
unsigned is_long:1;
unsigned is_typedef:1;
} specifier_t;
extern type_t type_invalid;
extern type_t type_void;
extern type_t type_string;

View file

@ -48,10 +48,10 @@ static __attribute__ ((used)) const char rcsid[] =
#include "diagnostic.h"
#include "expr.h"
#include "options.h"
#include "qc-parse.h"
#include "qfcc.h"
#include "strpool.h"
#include "type.h"
#include "qc-parse.h"
static expr_t *
cf_cast_expr (type_t *type, expr_t *e)

View file

@ -45,13 +45,13 @@
#include "expr.h"
#include "function.h"
#include "options.h"
#include "qc-parse.h"
#include "qfcc.h"
#include "reloc.h"
#include "statements.h"
#include "strpool.h"
#include "symtab.h"
#include "type.h"
#include "qc-parse.h"
static __attribute__ ((used)) const char rcsid[] = "$Id$";