old-cross-binutils/gas/config/ho-mpw.h
Stan Shebs 9e4eebc207 * mpw-config.in: Parse target and use to generate forward includes
to tc-, obj-, and atof- files, use te-generic.h for emulation.
	* mpw-make.in (VERSION): Define.
	(as.c): Compile with GCC.
	(TARG_OBJECTS, CLIBS): Define.
	(as.new): Use LDFLAGS, TARG_OBJECTS, CLIBS and EXTRALIBS in link
	command.
	(config.h, config-stamp): Build.
	config/ho-mpw.h (HOST_SPECIAL_INIT): Define.
1994-06-26 23:51:45 +00:00

83 lines
1.8 KiB
C

/* ho-mpw.h Host-specific header file for MPW.
Copyright (C) 1993 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
GAS 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.
GAS 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 GAS; see the file COPYING. If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef MPW
#define MPW
#endif
#define bzero(a,b) memset(a,0,b)
#define bcopy(a,b,c) memcpy(b,a,c)
#define bcmp(a,b,c) memcmp(a,b,c)
#if 0 /* this doesn't work, sigh */
#ifndef __STDC__
#define __STDC__
#endif
#endif
#define M_ANSI 1
#include <stdlib.h>
#include <string.h>
#ifndef false
#define false ffalse
#endif
#ifndef true
#define true ttrue
#endif
#include <memory.h>
char *strdup();
#ifdef MPW_C
#undef __PTR_TO_INT
#define __PTR_TO_INT(P) ((int)(P))
#undef __INT_TO_PTR
#define __INT_TO_PTR(P) ((char *)(P))
#endif
#define sys_nerr _sys_nerr
#define sys_errlist _sys_errlist
#ifdef __STDIO__
FILE *mpw_fopen();
#endif
#define fopen mpw_fopen
#define fseek mpw_fseek
#define abort mpw_abort
/* <cr> is an end-of-line marker. */
#define CR_EOL
#define ABORT_ON_ERROR
#define LOSING_COMPILER
/* Arrange for the debugger hook to be checked right when the assembler
starts up. */
#define HOST_SPECIAL_INIT(argc,argv) mpw_special_init ((argv)[0]);
/* end of ho-mpw.h */