~ubuntu-branches/ubuntu/gutsy/tk8.4/gutsy-updates

« back to all changes in this revision

Viewing changes to macosx/tkMacOSXPort.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-01-05 15:56:45 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070105155645-8srmlwqo7m1q86qi
Tags: 8.4.14-0ubuntu1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 * See the file "license.terms" for information on usage and redistribution
12
12
 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
13
13
 *
14
 
 * RCS: @(#) $Id: tkMacOSXPort.h,v 1.3.2.3 2005/11/27 02:36:46 das Exp $
 
14
 * RCS: @(#) $Id: tkMacOSXPort.h,v 1.3.2.6 2006/09/10 17:07:36 das Exp $
15
15
 */
16
16
 
17
17
#ifndef _TKMACPORT
35
35
#include <stdio.h>
36
36
#include <ctype.h>
37
37
#include <fcntl.h>
38
 
#ifdef HAVE_LIMITS_H
39
 
#   include <limits.h>
40
 
#else
41
 
#   include "../compat/limits.h"
42
 
#endif
 
38
#include <limits.h>
43
39
#include <math.h>
44
40
#include <pwd.h>
45
 
#ifdef NO_STDLIB_H
46
 
#   include "../compat/stdlib.h"
47
 
#else
48
 
#   include <stdlib.h>
49
 
#endif
 
41
#include <stdlib.h>
50
42
#include <string.h>
51
43
#include <sys/types.h>
52
44
#include <sys/file.h>
67
59
#       include <time.h>
68
60
#   endif
69
61
#endif
70
 
#ifdef HAVE_UNISTD_H
71
 
#   include <unistd.h>
72
 
#else
73
 
#   include "../compat/unistd.h"
74
 
#endif
 
62
#include <unistd.h>
75
63
#include <X11/Xlib.h>
76
64
#include <X11/cursorfont.h>
77
65
#include <X11/keysym.h>
118
106
#define MASK_SIZE howmany(FD_SETSIZE, NFDBITS)
119
107
 
120
108
/*
121
 
 * Not all systems declare the errno variable in errno.h. so this
122
 
 * file does it explicitly.
123
 
 */
124
 
 
125
 
extern int errno;
126
 
 
127
 
/*
128
109
 * Define "NBBY" (number of bits per byte) if it's not already defined.
129
110
 */
130
111
 
145
126
extern int              strncasecmp _ANSI_ARGS_((CONST char *s1,
146
127
                            CONST char *s2, size_t n));
147
128
#endif
 
129
 
 
130
/*
 
131
 * The following define causes Tk to use its internal keysym hash table
 
132
 */
 
133
 
 
134
#define REDO_KEYSYM_LOOKUP
 
135
 
148
136
/*
149
137
 * Defines for X functions that are used by Tk but are treated as
150
138
 * no-op functions on the Macintosh.
201
189
 */
202
190
 
203
191
#define HIGHLIGHT_PIXEL                 31
 
192
#define HIGHLIGHT_SECONDARY_PIXEL       32
204
193
#define HIGHLIGHT_TEXT_PIXEL            33
 
194
#define HIGHLIGHT_ALTERNATE_PIXEL       34
205
195
#define CONTROL_TEXT_PIXEL              35
206
196
#define CONTROL_BODY_PIXEL              37
207
197
#define CONTROL_FRAME_PIXEL             39