1 /* Macro definitions for running GDB on Apple Macintoshes.
2 Copyright (C) 1994, 1995 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. */
22 #include "fopen-bin.h"
28 /* Map these standard functions to versions that can do I/O in a console
31 #define printf hacked_printf
32 #define fprintf hacked_fprintf
33 #define vprintf hacked_vfprintf
34 #define fputs hacked_fputs
35 #define fputc hacked_fputc
37 #define putc hacked_putc
38 #define fflush hacked_fflush
40 #define fgetc hacked_fgetc
44 /* No declaration of strdup in MPW's string.h, oddly enough. */
46 char *strdup (char *s1
);
48 /* '.' indicates drivers on the Mac, so we need a different filename. */
50 #define GDBINIT_FILENAME "_gdbinit"
52 /* Commas are more common to separate dirnames in a path on Macs. */
54 #define DIRNAME_SEPARATOR ','
56 /* This is a real crufty hack. */
60 /* Addons to the basic MPW-supported signal list. */
63 #define SIGQUIT (1<<6)
69 /* If __STDC__ is on, then this definition will be missing. */
72 #define fileno(p) (p)->_file
79 extern int StandAlone
;
This page took 0.029949 seconds and 4 git commands to generate.