annotate src/defun.h @ 5070:1e6f653ef1e3 ss-2-1-61

[project @ 2004-11-06 00:33:38 by jwe]
author jwe
date Sat, 06 Nov 2004 00:33:38 +0000
parents 5e2c68946f30
children b04b30d30c66
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
525
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
1 /*
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
2
2847
8b262e771614 [project @ 1997-03-27 16:18:26 by jwe]
jwe
parents: 2432
diff changeset
3 Copyright (C) 1996, 1997 John W. Eaton
525
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
4
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
5 This file is part of Octave.
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
6
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
7 Octave is free software; you can redistribute it and/or modify it
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
8 under the terms of the GNU General Public License as published by the
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
9 Free Software Foundation; either version 2, or (at your option) any
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
10 later version.
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
11
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
12 Octave is distributed in the hope that it will be useful, but WITHOUT
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
15 for more details.
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
16
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
17 You should have received a copy of the GNU General Public License
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
18 along with Octave; see the file COPYING. If not, write to the Free
1315
611d403c7f3d [project @ 1995-06-25 19:56:32 by jwe]
jwe
parents: 1009
diff changeset
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
525
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
20
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
21 */
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
22
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
23 #if !defined (octave_defun_h)
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
24 #define octave_defun_h 1
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
25
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
26 #if defined (octave_defun_dld_h)
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
27 #error defun.h and defun-dld.h both included in same file!
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
28 #endif
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
29
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
30 #include "defun-int.h"
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
31
550
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
32 // Define a builtin variable.
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
33 //
1957
0e6a0a271998 [project @ 1996-02-15 01:08:15 by jwe]
jwe
parents: 1884
diff changeset
34 // name is the name of the variable, unquoted.
1340
02145fb69a5b [project @ 1995-08-31 22:09:37 by jwe]
jwe
parents: 1315
diff changeset
35 //
02145fb69a5b [project @ 1995-08-31 22:09:37 by jwe]
jwe
parents: 1315
diff changeset
36 // defn is the initial value for the variable.
550
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
37 //
1340
02145fb69a5b [project @ 1995-08-31 22:09:37 by jwe]
jwe
parents: 1315
diff changeset
38 // protect is a flag that says whether it should be possible to give
02145fb69a5b [project @ 1995-08-31 22:09:37 by jwe]
jwe
parents: 1315
diff changeset
39 // the variable a new value.
02145fb69a5b [project @ 1995-08-31 22:09:37 by jwe]
jwe
parents: 1315
diff changeset
40 //
550
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
41 // eternal is a flag that says whether it should be possible to
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
42 // clear the variable. Most builtin variables are eternal, and
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
43 // cannot be cleared.
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
44 //
3005
fd2080b2800e [project @ 1997-05-24 17:37:39 by jwe]
jwe
parents: 2968
diff changeset
45 // chg_fcn is a pointer to a function that should be called whenever
550
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
46 // this variable is given a new value. It can be 0 if there is no
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
47 // function to call. See also the code in user-prefs.cc.
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
48 //
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
49 // doc is the simple help text for this variable.
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
50
3258
4964d5391acc [project @ 1999-07-21 21:51:33 by jwe]
jwe
parents: 3249
diff changeset
51 #define DEFVAR(name, defn, chg_fcn, doc) \
4964d5391acc [project @ 1999-07-21 21:51:33 by jwe]
jwe
parents: 3249
diff changeset
52 DEFVAR_INTERNAL (#name, SBV_ ## name, defn, false, chg_fcn, doc)
1957
0e6a0a271998 [project @ 1996-02-15 01:08:15 by jwe]
jwe
parents: 1884
diff changeset
53
3258
4964d5391acc [project @ 1999-07-21 21:51:33 by jwe]
jwe
parents: 3249
diff changeset
54 // Define a builtin constant `name' (which may be redefined, but will
4964d5391acc [project @ 1999-07-21 21:51:33 by jwe]
jwe
parents: 3249
diff changeset
55 // retain its original value when cleared) and also an alias to it
4964d5391acc [project @ 1999-07-21 21:51:33 by jwe]
jwe
parents: 3249
diff changeset
56 // called `__name__' (which may not be redefined).
1957
0e6a0a271998 [project @ 1996-02-15 01:08:15 by jwe]
jwe
parents: 1884
diff changeset
57
3141
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3005
diff changeset
58 #define DEFCONST(name, defn, doc) \
3321
6923abb04e16 [project @ 1999-10-26 18:15:30 by jwe]
jwe
parents: 3258
diff changeset
59 DEFCONST_INTERNAL (name, defn, doc)
1957
0e6a0a271998 [project @ 1996-02-15 01:08:15 by jwe]
jwe
parents: 1884
diff changeset
60
0e6a0a271998 [project @ 1996-02-15 01:08:15 by jwe]
jwe
parents: 1884
diff changeset
61 // This one can be used when `name' cannot be used directly (if it is
0e6a0a271998 [project @ 1996-02-15 01:08:15 by jwe]
jwe
parents: 1884
diff changeset
62 // already defined as a macro). In that case, name is already a
3743
35daf9714b9a [project @ 2000-11-30 00:19:10 by jwe]
jwe
parents: 3741
diff changeset
63 // quoted string, and the name of the structure must to be passed too.
1957
0e6a0a271998 [project @ 1996-02-15 01:08:15 by jwe]
jwe
parents: 1884
diff changeset
64
3141
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3005
diff changeset
65 #define DEFCONSTX(name, sname, defn, doc) \
3321
6923abb04e16 [project @ 1999-10-26 18:15:30 by jwe]
jwe
parents: 3258
diff changeset
66 DEFCONSTX_INTERNAL (name, sname, defn, doc)
525
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
67
550
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
68 // Define a builtin function.
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
69 //
1957
0e6a0a271998 [project @ 1996-02-15 01:08:15 by jwe]
jwe
parents: 1884
diff changeset
70 // name is the name of the function, unqouted.
550
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
71 //
2086
bfb775fb6fe8 [project @ 1996-04-25 05:55:19 by jwe]
jwe
parents: 1996
diff changeset
72 // args_name is the name of the octave_value_list variable used to pass
1957
0e6a0a271998 [project @ 1996-02-15 01:08:15 by jwe]
jwe
parents: 1884
diff changeset
73 // the argument list to this function.
550
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
74 //
1957
0e6a0a271998 [project @ 1996-02-15 01:08:15 by jwe]
jwe
parents: 1884
diff changeset
75 // nargout_name is the name of the int variable used to pass the
0e6a0a271998 [project @ 1996-02-15 01:08:15 by jwe]
jwe
parents: 1884
diff changeset
76 // number of output arguments this function is expected to produce.
550
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
77 //
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
78 // doc is the simple help text for the function.
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
79
1957
0e6a0a271998 [project @ 1996-02-15 01:08:15 by jwe]
jwe
parents: 1884
diff changeset
80 #define DEFUN(name, args_name, nargout_name, doc) \
2890
42901f9a9266 [project @ 1997-04-28 01:44:22 by jwe]
jwe
parents: 2847
diff changeset
81 DEFUN_INTERNAL (name, args_name, nargout_name, false, doc)
525
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
82
3743
35daf9714b9a [project @ 2000-11-30 00:19:10 by jwe]
jwe
parents: 3741
diff changeset
83 // This one can be used when `name' cannot be used directly (if it is
35daf9714b9a [project @ 2000-11-30 00:19:10 by jwe]
jwe
parents: 3741
diff changeset
84 // already defined as a macro). In that case, name is already a
35daf9714b9a [project @ 2000-11-30 00:19:10 by jwe]
jwe
parents: 3741
diff changeset
85 // quoted string, and the internal name of the function must be passed
35daf9714b9a [project @ 2000-11-30 00:19:10 by jwe]
jwe
parents: 3741
diff changeset
86 // too (the convetion is to use a prefix of "F", so "foo" becomes "Ffoo").
35daf9714b9a [project @ 2000-11-30 00:19:10 by jwe]
jwe
parents: 3741
diff changeset
87
35daf9714b9a [project @ 2000-11-30 00:19:10 by jwe]
jwe
parents: 3741
diff changeset
88 #define DEFUNX(name, fname, args_name, nargout_name, doc) \
35daf9714b9a [project @ 2000-11-30 00:19:10 by jwe]
jwe
parents: 3741
diff changeset
89 DEFUNX_INTERNAL (name, fname, args_name, nargout_name, false, doc)
35daf9714b9a [project @ 2000-11-30 00:19:10 by jwe]
jwe
parents: 3741
diff changeset
90
4208
e96f52432059 [project @ 2002-12-03 19:48:57 by jwe]
jwe
parents: 4100
diff changeset
91 // Define a builtin command-style function.
550
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
92 //
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
93 // This is like DEFUN, except that it defines a function that can be
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
94 // called from the Octave language without using parenthesis to
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
95 // surround the arguments).
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
96
4208
e96f52432059 [project @ 2002-12-03 19:48:57 by jwe]
jwe
parents: 4100
diff changeset
97 #define DEFCMD(name, args_name, nargout_name, doc) \
2890
42901f9a9266 [project @ 1997-04-28 01:44:22 by jwe]
jwe
parents: 2847
diff changeset
98 DEFUN_INTERNAL (name, args_name, nargout_name, true, doc)
525
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
99
4208
e96f52432059 [project @ 2002-12-03 19:48:57 by jwe]
jwe
parents: 4100
diff changeset
100 // For backward compatibility.
e96f52432059 [project @ 2002-12-03 19:48:57 by jwe]
jwe
parents: 4100
diff changeset
101
e96f52432059 [project @ 2002-12-03 19:48:57 by jwe]
jwe
parents: 4100
diff changeset
102 #define DEFUN_TEXT DEFCMD
e96f52432059 [project @ 2002-12-03 19:48:57 by jwe]
jwe
parents: 4100
diff changeset
103
4234
90e44267e8cf [project @ 2002-12-21 17:15:25 by jwe]
jwe
parents: 4208
diff changeset
104 // This is a function with a name that can't be hidden by a variable.
90e44267e8cf [project @ 2002-12-21 17:15:25 by jwe]
jwe
parents: 4208
diff changeset
105 #define DEFCONSTFUN(name, args_name, nargout_name, doc) \
90e44267e8cf [project @ 2002-12-21 17:15:25 by jwe]
jwe
parents: 4208
diff changeset
106 DEFCONSTFUN_INTERNAL (name, args_name, nargout_name, true, doc)
90e44267e8cf [project @ 2002-12-21 17:15:25 by jwe]
jwe
parents: 4208
diff changeset
107
550
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
108 // Define a mapper function.
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
109 //
1957
0e6a0a271998 [project @ 1996-02-15 01:08:15 by jwe]
jwe
parents: 1884
diff changeset
110 // name is the name of the function, unquoqted.
550
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
111 //
2089
4dcc8b77e84a [project @ 1996-04-26 07:55:54 by jwe]
jwe
parents: 2086
diff changeset
112 // ch_map is a pointer to a function that should be called for
3249
60866c521b92 [project @ 1999-07-13 03:44:16 by jwe]
jwe
parents: 3141
diff changeset
113 // integer arguments that are expected to create integer results.
2089
4dcc8b77e84a [project @ 1996-04-26 07:55:54 by jwe]
jwe
parents: 2086
diff changeset
114 // (It's a kluge to handle character mappers like isalpha.)
550
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
115 //
3249
60866c521b92 [project @ 1999-07-13 03:44:16 by jwe]
jwe
parents: 3141
diff changeset
116 // d_b_map is a pointer to a function that should be called for real
60866c521b92 [project @ 1999-07-13 03:44:16 by jwe]
jwe
parents: 3141
diff changeset
117 // arguments that are expected to create bool results.
60866c521b92 [project @ 1999-07-13 03:44:16 by jwe]
jwe
parents: 3141
diff changeset
118 //
60866c521b92 [project @ 1999-07-13 03:44:16 by jwe]
jwe
parents: 3141
diff changeset
119 // c_b_map is a pointer to a function that should be called for
60866c521b92 [project @ 1999-07-13 03:44:16 by jwe]
jwe
parents: 3141
diff changeset
120 // complex arguments that are expected to create bool results.
60866c521b92 [project @ 1999-07-13 03:44:16 by jwe]
jwe
parents: 3141
diff changeset
121 //
550
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
122 // d_d_map is a pointer to a function that should be called for real
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
123 // arguments that are expected to create real results.
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
124 //
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
125 // d_c_map is a pointer to a function that should be called for real
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
126 // arguments that are expected to create complex results.
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
127 //
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
128 // c_c_map is a pointer to a function that should be called for
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
129 // complex arguments that are expected to create complex results.
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
130 //
4668
7849788ca4bd [project @ 2003-11-26 04:28:39 by jwe]
jwe
parents: 4234
diff changeset
131 // lo is the lower bound of the range for which real arguments
7849788ca4bd [project @ 2003-11-26 04:28:39 by jwe]
jwe
parents: 4234
diff changeset
132 // return real results (e.g., lo == 0 for sqrt).
2089
4dcc8b77e84a [project @ 1996-04-26 07:55:54 by jwe]
jwe
parents: 2086
diff changeset
133 //
4668
7849788ca4bd [project @ 2003-11-26 04:28:39 by jwe]
jwe
parents: 4234
diff changeset
134 // hi is the upper bound of the range for which real arguments
7849788ca4bd [project @ 2003-11-26 04:28:39 by jwe]
jwe
parents: 4234
diff changeset
135 // return real results (e.g., hi == Inf for sqrt).
2089
4dcc8b77e84a [project @ 1996-04-26 07:55:54 by jwe]
jwe
parents: 2086
diff changeset
136 //
4100
ed0090ecf80f [project @ 2002-10-11 16:37:45 by jwe]
jwe
parents: 3743
diff changeset
137 // ch_map_flag has the following meanings for the ch_map function:
ed0090ecf80f [project @ 2002-10-11 16:37:45 by jwe]
jwe
parents: 3743
diff changeset
138 //
ed0090ecf80f [project @ 2002-10-11 16:37:45 by jwe]
jwe
parents: 3743
diff changeset
139 // 0 => this function returns a matrix of ones and zeros
ed0090ecf80f [project @ 2002-10-11 16:37:45 by jwe]
jwe
parents: 3743
diff changeset
140 // 1 => this function returns a numeric matrix (any values)
ed0090ecf80f [project @ 2002-10-11 16:37:45 by jwe]
jwe
parents: 3743
diff changeset
141 // 2 => this function returns a std::string array
ed0090ecf80f [project @ 2002-10-11 16:37:45 by jwe]
jwe
parents: 3743
diff changeset
142 //
2089
4dcc8b77e84a [project @ 1996-04-26 07:55:54 by jwe]
jwe
parents: 2086
diff changeset
143 // can_ret_cmplx_for_real is a flag that says whether this function
4dcc8b77e84a [project @ 1996-04-26 07:55:54 by jwe]
jwe
parents: 2086
diff changeset
144 // can create a complex number given a real-valued argument
4dcc8b77e84a [project @ 1996-04-26 07:55:54 by jwe]
jwe
parents: 2086
diff changeset
145 // (e.g., sqrt (-1)).
4dcc8b77e84a [project @ 1996-04-26 07:55:54 by jwe]
jwe
parents: 2086
diff changeset
146 //
550
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
147 // doc is the simple help text for the function.
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
148
4100
ed0090ecf80f [project @ 2002-10-11 16:37:45 by jwe]
jwe
parents: 3743
diff changeset
149 #define DEFUN_MAPPER(name, ch_map, d_b_map, c_b_map, d_d_map, \
ed0090ecf80f [project @ 2002-10-11 16:37:45 by jwe]
jwe
parents: 3743
diff changeset
150 d_c_map, c_c_map, lo, hi, ch_map_flag, \
ed0090ecf80f [project @ 2002-10-11 16:37:45 by jwe]
jwe
parents: 3743
diff changeset
151 can_ret_cmplx_for_real, doc) \
ed0090ecf80f [project @ 2002-10-11 16:37:45 by jwe]
jwe
parents: 3743
diff changeset
152 DEFUN_MAPPER_INTERNAL (name, ch_map, d_b_map, c_b_map, d_d_map, \
ed0090ecf80f [project @ 2002-10-11 16:37:45 by jwe]
jwe
parents: 3743
diff changeset
153 d_c_map, c_c_map, lo, hi, ch_map_flag, \
ed0090ecf80f [project @ 2002-10-11 16:37:45 by jwe]
jwe
parents: 3743
diff changeset
154 can_ret_cmplx_for_real, doc)
525
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
155
550
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
156 // Make alias another name for the existing function name. This macro
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
157 // must be used in the same file where name is defined, after the
95ee5e330179 [project @ 1994-07-22 20:17:58 by jwe]
jwe
parents: 546
diff changeset
158 // definition for name.
525
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
159
4699
5e2c68946f30 [project @ 2004-01-20 23:04:46 by jwe]
jwe
parents: 4668
diff changeset
160 #define DEFALIAS(alias, name) \
5e2c68946f30 [project @ 2004-01-20 23:04:46 by jwe]
jwe
parents: 4668
diff changeset
161 DEFALIAS_INTERNAL (alias, name)
525
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
162
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
163 #endif
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
164
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
165 /*
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
166 ;;; Local Variables: ***
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
167 ;;; mode: C++ ***
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
168 ;;; End: ***
509e9a2d93a6 [project @ 1994-07-20 18:45:27 by jwe]
jwe
parents:
diff changeset
169 */