annotate src/inline.c @ 261:405dd6d1825b r20-5b29

Import from CVS: tag r20-5b29
author cvs
date Mon, 13 Aug 2007 10:23:51 +0200
parents 11cf20601dec
children c5d627a313b1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
1 /* Repository for inline functions
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
2 Copyright (C) 1995 Sun Microsystems, Inc.
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
3
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
4 This file is part of XEmacs.
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
5
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
6 XEmacs is free software; you can redistribute it and/or modify it
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
7 under the terms of the GNU General Public License as published by the
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
8 Free Software Foundation; either version 2, or (at your option) any
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
9 later version.
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
10
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
11 XEmacs is distributed in the hope that it will be useful, but WITHOUT
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
14 for more details.
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
15
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
17 along with XEmacs; see the file COPYING. If not, write to
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
19 Boston, MA 02111-1307, USA. */
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
20
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
21 /* Synched up with: Not in FSF. */
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
22
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
23 /* The purpose of this file is so that there is at least one actual
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
24 definition of each inline function. This is needed under GCC. The
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
25 reason is that under GCC we declare our inline functions `extern
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
26 inline', which causes the inlined version to get used only for
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
27 inlining, and in other cases to generate an external reference to
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 149
diff changeset
28 the function. This is more efficient than declaring our inline
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
29 functions `static inline', which (in many cases) would cause a separate
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
30 version of the function to get inserted into every source file that
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
31 included the corresponding header file.
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
32
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
33 Some compilers that recognize `inline' may not do the same
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
34 `extern inline' business, so on those we just do `static inline'.
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
35 */
185
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 155
diff changeset
36
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
37 #define DONT_EXTERN_INLINE_FUNCTIONS
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
38
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
39 #include <config.h>
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
40 #include "lisp.h"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
41 #include "buffer.h"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
42 #include "bytecode.h"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
43 #include "console.h"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
44 #include "device.h"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
45 #include "events.h"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
46 #include "elhash.h"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
47 #include "extents.h"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
48 #include "faces.h"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
49 #include "frame.h"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
50 #include "glyphs.h"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
51 #include "keymap.h"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
52 #include "lstream.h"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
53 #include "objects.h"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
54 #include "opaque.h"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
55 #include "process.h"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
56 #include "specifier.h"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
57 #include "syntax.h"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
58 #include "toolbar.h"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
59 #include "window.h"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
60
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
61 #ifdef HAVE_DATABASE
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
62 #include "database.h"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
63 #endif
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
64
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
65 #ifdef HAVE_X_WINDOWS
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
66 #include "console-x.h"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
67 #include "glyphs-x.h"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
68 #include "gui-x.h"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
69 #endif
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 185
diff changeset
70 #ifdef FILE_CODING
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 185
diff changeset
71 #include "file-coding.h"
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
72 #endif
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
73
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
74 #ifdef TOOLTALK
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 118
diff changeset
75 #include TT_C_H_PATH
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
76 #include "tooltalk.h"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents:
diff changeset
77 #endif
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 185
diff changeset
78
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 185
diff changeset
79 #ifdef HAVE_LDAP
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 185
diff changeset
80 #include "eldap.h"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 185
diff changeset
81 #endif