2 * gawkmisc.c --- miscellanious gawk routines that are OS specific.
6 * Copyright (C) 1986, 1988, 1989, 1991-2000 the Free Software Foundation, Inc.
8 * This file is part of GAWK, the GNU implementation of the
9 * AWK Programming Language.
11 * GAWK is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * GAWK is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
28 /* some old compilers don't grok #elif. sigh */
30 #if defined(MSDOS) || defined(OS2) || defined(WIN32)
31 #include "gawkmisc.pc"
34 #include "vms/gawkmisc.vms"
37 #include "atari/gawkmisc.atr"
39 #include "posix/gawkmisc.c"
44 /* xmalloc --- provide this so that other GNU library routines work */
47 typedef void *pointer;
49 typedef char *pointer;
52 extern pointer xmalloc P((size_t bytes)); /* get rid of gcc warning */
60 emalloc(p, pointer, bytes, "xmalloc");