]> git.zerfleddert.de Git - micropolis/blame - src/tk/tkconfig.h
handle spaces in filenames
[micropolis] / src / tk / tkconfig.h
CommitLineData
6a5fa4e0
MG
1/*
2 * tkConfig.h --
3 *
4 * This file is included by all of the Tk C files. It contains
5 * information that may be configuration-dependent, such as
6 * #includes for system include files and a few other things.
7 *
8 * Copyright 1991 Regents of the University of California
9 * Permission to use, copy, modify, and distribute this
10 * software and its documentation for any purpose and without
11 * fee is hereby granted, provided that this copyright
12 * notice appears in all copies. The University of California
13 * makes no representations about the suitability of this
14 * software for any purpose. It is provided "as is" without
15 * express or implied warranty.
16 *
17 * $Header: /user6/ouster/wish/RCS/tkConfig.h,v 1.13 92/08/24 09:23:53 ouster Exp $ SPRITE (Berkeley)
18 */
19
20#ifndef _TKCONFIG
21#define _TKCONFIG
22
23/*
24 * Macro to use instead of "void" for arguments that must have
25 * type "void *" in ANSI C; maps them to type "char *" in
26 * non-ANSI systems. This macro may be used in some of the include
27 * files below, which is why it is defined here.
28 */
29
30#ifndef VOID
31# ifdef __STDC__
32# define VOID void
33# else
34# define VOID char
35# endif
36#endif
37
38#include <stdio.h>
39#include <ctype.h>
40#include <fcntl.h>
41#include <math.h>
42#include <stdlib.h>
43#include <string.h>
44#include <sys/types.h>
45#include <sys/file.h>
46#include <sys/stat.h>
47#include <sys/time.h>
48#ifndef _TCL
49# include <tcl.h>
50#endif
51#ifndef _TCLHASH
52# include <tclhash.h>
53#endif
54#include <X11/Xlib.h>
55#include <X11/cursorfont.h>
56#include <X11/keysym.h>
57#include <X11/Xatom.h>
58#include <X11/Xproto.h>
59#include <X11/Xresource.h>
60#include <X11/Xutil.h>
61
62/*
63 * Macro to use instead of "void" for arguments that must have
64 * type "void *" in ANSI C; maps them to type "char *" in
65 * non-ANSI systems.
66 */
67
68#ifndef VOID
69# ifdef __STDC__
70# define VOID void
71# else
72# define VOID char
73# endif
74#endif
75
76/*
77 * Not all systems declare the errno variable in errno.h. so this
78 * file does it explicitly.
79 */
80
81extern int errno;
82
83/*
84 * Define OPEN_MAX if it isn't already defined for this system.
85 */
86
87#ifndef OPEN_MAX
88# define OPEN_MAX 256
89#endif
90
91/*
92 * The following macro defines the type of the mask arguments to
93 * select:
94 */
95
96#if defined(IS_LINUX) || (defined(sun) && !defined(sprite))
97# define SELECT_MASK fd_set
98#else
99# if defined(_IBMR2)
100# define SELECT_MASK void
101# else
102# define SELECT_MASK int
103# endif
104#endif
105
106/*
107 * Declarations for various library procedures that aren't declared
108 * in a header file.
109 */
110
111extern int close _ANSI_ARGS_((int fd));
112#if 0
113extern int gettimeofday _ANSI_ARGS_((struct timeval *tp,
114 struct timezone *tzp));
115#endif
116#if !(defined(_CRAY) || defined(sparc) || defined(_IBMR2) || defined(sgi))
117extern int open _ANSI_ARGS_((CONST char *path, int flags, ...));
118#endif
119extern void panic _ANSI_ARGS_(VARARGS);
120#if 0
121extern int read _ANSI_ARGS_((int fd, void *buf, unsigned int numBytes));
122extern int select _ANSI_ARGS_((int nfds, SELECT_MASK *readfds,
123 SELECT_MASK *writefds, SELECT_MASK *exceptfds,
124 struct timeval *timeout));
125#endif
126
127#endif /* _TKCONFIG */
Impressum, Datenschutz