Mercurial > hg > octave-nkf
diff src/defun-int.h @ 3258:4964d5391acc
[project @ 1999-07-21 21:51:33 by jwe]
author | jwe |
---|---|
date | Wed, 21 Jul 1999 21:52:04 +0000 |
parents | 60866c521b92 |
children | 35a6d027772c |
line wrap: on
line diff
--- a/src/defun-int.h +++ b/src/defun-int.h @@ -45,11 +45,15 @@ extern void install_builtin_variable (const string& n, const octave_value& v, - bool iaf, bool p, bool e, + bool p, bool e, symbol_record::change_function chg_fcn, const string& h); extern void +install_builtin_constant (const string& n, const octave_value& v, + bool p, const string& h); + +extern void alias_builtin (const string& alias, const string& name); // MAKE_BUILTINS is defined to extract function names and related @@ -112,10 +116,14 @@ // How builtin variables are actually installed. -#define DEFVAR_INTERNAL(name, sname, defn, inst_as_fcn, protect, \ - chg_fcn, doc) \ - install_builtin_variable (name, octave_value (defn), inst_as_fcn, \ - protect, (chg_fcn != 0), chg_fcn, doc) +#define DEFVAR_INTERNAL(name, sname, defn, protect, chg_fcn, doc) \ + install_builtin_variable (name, octave_value (defn), protect, \ + (chg_fcn != 0), chg_fcn, doc) + +// How builtin variables are actually installed. + +#define DEFCONST_INTERNAL(name, sname, defn, protect, doc) \ + install_builtin_constant (name, octave_value (defn), protect, doc) // How mapper functions are actually installed.