mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-24 20:51:35 +00:00
Especially binary expressions. That expressions can now be reused is what caused the need to make expression lists non-invasive: the reuse resulted in loops in the lists. This doesn't directly affect code generation at this stage but it will help with optimizing algebraic expressions. The dags are per sequence point (as per my reading of the C spec).
45 lines
1.3 KiB
C
45 lines
1.3 KiB
C
/*
|
|
shared.h
|
|
|
|
Functions and data shared between languages.
|
|
|
|
Copyright (C) 2012 Bill Currie <bill@taniwha.org>
|
|
|
|
Author: Bill Currie <bill@taniwha.org>
|
|
Date: 2012/10/26
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License
|
|
as published by the Free Software Foundation; either version 2
|
|
of the License, or (at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
See the GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to:
|
|
|
|
Free Software Foundation, Inc.
|
|
59 Temple Place - Suite 330
|
|
Boston, MA 02111-1307, USA
|
|
|
|
*/
|
|
|
|
#ifndef __shared_h
|
|
#define __shared_h
|
|
|
|
extern struct function_s *current_func;
|
|
extern struct class_type_s *current_class;
|
|
extern struct expr_s *local_expr;
|
|
extern enum vis_e current_visibility;
|
|
extern enum storage_class_e current_storage;
|
|
extern struct symtab_s *current_symtab;
|
|
extern bool no_flush_dag;
|
|
|
|
struct symbol_s *check_redefined (struct symbol_s *sym);
|
|
extern struct symbol_s *check_undefined (struct symbol_s *sym);
|
|
|
|
#endif//__shared_h
|