summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorXavier ASUS <xavi92psx@gmail.com>2019-10-18 00:31:54 +0200
committerXavier ASUS <xavi92psx@gmail.com>2019-10-18 00:31:54 +0200
commit268a53de823a6750d6256ee1fb1e7707b4b45740 (patch)
tree42c1799a9a82b2f7d9790ee9fe181d72a7274751 /src/common.h
downloadsdcc-gas-268a53de823a6750d6256ee1fb1e7707b4b45740.tar.gz
sdcc-3.9.0 fork implementing GNU assembler syntax
This fork aims to provide better support for stm8-binutils
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h76
1 files changed, 76 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
new file mode 100644
index 0000000..d4d9201
--- /dev/null
+++ b/src/common.h
@@ -0,0 +1,76 @@
+/*-------------------------------------------------------------------------
+ common.h - include common header files
+
+ Copyright (C) 2000, KEvin Vigor
+
+ 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, 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 the Free Software
+ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+-------------------------------------------------------------------------*/
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <ctype.h>
+#include <string.h>
+
+#ifndef COMMON_H
+#define COMMON_H
+
+#if defined(__APPLE__) && (__MACH__)
+#ifdef _G
+#undef _G
+#endif
+#endif
+
+/* C++ incompatible header files */
+#ifdef __cplusplus
+/* TODO: the extern "C" should be moved to each header file */
+extern "C" {
+#endif
+
+#include "SDCCglobl.h"
+#include "SDCCmem.h"
+#include "SDCCast.h"
+#include "SDCCy.h"
+#include "SDCChasht.h"
+#include "SDCCbitv.h"
+#include "SDCCset.h"
+#include "SDCCicode.h"
+#include "SDCClabel.h"
+#include "SDCCBBlock.h"
+#include "SDCCloop.h"
+#include "SDCCcse.h"
+#include "SDCCcflow.h"
+#include "SDCCdflow.h"
+#include "SDCClrange.h"
+#include "SDCCptropt.h"
+#include "SDCCopt.h"
+#include "SDCCglue.h"
+#include "SDCCpeeph.h"
+#include "SDCCdebug.h"
+#include "SDCCutil.h"
+#include "SDCCasm.h"
+#include "SDCCsystem.h"
+
+#include "port.h"
+
+#include "newalloc.h"
+
+#ifdef __cplusplus
+}
+#endif
+
+/* C++ compatible header files */
+#include "SDCCgen.h"
+
+#endif