1 /* Macro definitions for running GDB on Apple Macintoshes.
2 Copyright (C) 1994 Free Software Foundation, Inc.
4 This file is part of GDB.
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
20 #include "m68k/xm-m68k.h"
22 #include "fopen-bin.h"
30 /* MPW C is basically ANSI, but doesn't actually enable __STDC__,
31 nor does it allow __STDC__ to be #defined. */
41 #define false mpw_false
51 #define __PTR_TO_INT(P) ((int)(P))
53 #define __INT_TO_PTR(P) ((char *)(P))
63 /* Map these standard functions to improved versions in libiberty. */
65 #define fopen mpw_fopen
67 #define fseek mpw_fseek
68 #define abort mpw_abort
70 /* Map these standard functions to versions that can do I/O in a console
73 #define printf hacked_printf
74 #define fprintf hacked_fprintf
75 #define vprintf hacked_vfprintf
76 #define fputs hacked_fputs
77 #define fputc hacked_fputc
79 #define putc hacked_putc
80 #define fflush hacked_fflush
82 #define fgetc hacked_fgetc
84 /* Define as macros so as to mask the previous enum. */
86 #ifndef BFD_TRUE_FALSE
95 #ifndef TRUE_FALSE_ALREADY_DEFINED
96 #define TRUE_FALSE_ALREADY_DEFINED
101 /* No declaration of strdup in MPW's string.h, oddly enough. */
103 char *strdup (char *s1
);
105 /* '.' indicates drivers on the Mac, so we need a different filename. */
107 #define GDBINIT_FILENAME "_gdbinit"
109 /* Commas are more common to separate dirnames in a path on Macs. */
111 #define DIRNAME_SEPARATOR ','
113 /* This is a real crufty hack. */
117 /* Addons to the basic MPW-supported signal list. */
120 #define SIGQUIT (1<<6)
123 #define SIGHUP (1<<7)
126 /* If __STDC__ is on, then this definition will be missing. */
129 #define fileno(p) (p)->_file
136 extern int StandAlone
;
This page took 0.034639 seconds and 4 git commands to generate.