mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-29 23:52:22 +00:00
f14d8060e0
Since gnu bison and flex are required anyway, no harm in using their api prefix options. Now, qfcc can compile both QC/Ruamoko and Pascal files (Pascal is (currently?) NOT supported in progs.src mode), selecting the language based on the extension: .r, .qc and .c select QC/Ruamoko, .pas and .p select Pascal, while anything else is treated as an object file (as before).
44 lines
1.3 KiB
C
44 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;
|
|
|
|
struct symbol_s *check_redefined (struct symbol_s *sym);
|
|
extern struct symbol_s *check_undefined (struct symbol_s *sym);
|
|
|
|
#endif//__shared_h
|