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,
19 Boston, MA 02111-1307, USA. */
23 #include "fopen-bin.h"
29 /* Map these standard functions to versions that can do I/O in a console
32 #define printf hacked_printf
33 #define fprintf hacked_fprintf
34 #define vprintf hacked_vfprintf
35 #define fputs hacked_fputs
36 #define fputc hacked_fputc
38 #define putc hacked_putc
39 #define fflush hacked_fflush
41 #define fgetc hacked_fgetc
45 /* No declaration of strdup in MPW's string.h, oddly enough. */
47 char *strdup (char *s1
);
49 /* '.' indicates drivers on the Mac, so we need a different filename. */
51 #define GDBINIT_FILENAME "_gdbinit"
53 /* Commas are more common to separate dirnames in a path on Macs. */
55 #define DIRNAME_SEPARATOR ','
57 /* This is a real crufty hack. */
61 /* Addons to the basic MPW-supported signal list. */
64 #define SIGQUIT (1<<6)
70 /* If __STDC__ is on, then this definition will be missing. */
73 #define fileno(p) (p)->_file
80 extern int StandAlone
;
This page took 0.030928 seconds and 4 git commands to generate.