Mercurial > hg > octave-nkf
changeset 5685:40b08b29dd53
[project @ 2006-03-16 19:47:14 by jwe]
author | jwe |
---|---|
date | Thu, 16 Mar 2006 19:47:14 +0000 |
parents | f39adfd0913d |
children | e7790bb14cfc |
files | src/ChangeLog src/__gnuplot_raw__.l src/variables.cc src/variables.h |
diffstat | 4 files changed, 28 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,15 @@ +2006-03-16 John W. Eaton <jwe@octave.org> + + * __gnuplot_raw__.l (F__gnuplot_show__): Temporarily use DEFCMD + instead of DEFUN. + (symbols_of___gnuplot_raw__): Temporarily ark __gnuplot_plot__, + __gnuplot_set__, __gnuplot_splot__, and __gnuplot_replot__ as raw + commands. + + * variables.cc (is_marked_as_rawcommand, unmark_rawcommand, + mark_as_rawcommand): Temporarily not static. + * variables.h: Temporarily Provide decls. + 2006-03-16 David Bateman <dbateman@free.fr> * sparse-xdiv.cc (result_ok): delete.
--- a/src/__gnuplot_raw__.l +++ b/src/__gnuplot_raw__.l @@ -1585,6 +1585,12 @@ gnuplot_initialized = true; + // This is temporary. + mark_as_rawcommand ("__gnuplot_plot__"); + mark_as_rawcommand ("__gnuplot_set__"); + mark_as_rawcommand ("__gnuplot_splot__"); + mark_as_rawcommand ("__gnuplot_replot__"); + if (is_builtin_variable ("automatic_replot")) automatic_replot (); else @@ -1771,7 +1777,7 @@ return octave_value_list (); } -DEFUN (__gnuplot_show__, args, , +DEFCMD (__gnuplot_show__, args, , "-*- texinfo -*-\n\ @deffn {Command} __gnuplot_show__ options\n\ Show plotting options.\n\
--- a/src/variables.cc +++ b/src/variables.cc @@ -276,20 +276,20 @@ static std::set <std::string> rawcommand_set; -static inline bool +bool is_marked_as_rawcommand (const std::string& s) { return rawcommand_set.find (s) != rawcommand_set.end (); } -static inline void +void mark_as_rawcommand (const std::string& s) { command_set.insert (s); rawcommand_set.insert (s); } -static inline void +void unmark_rawcommand (const std::string& s) { rawcommand_set.erase (s);
--- a/src/variables.h +++ b/src/variables.h @@ -48,6 +48,12 @@ extern bool is_builtin_variable (const std::string&); extern bool is_command_name (const std::string&); + +// The next three are here temporarily... +extern bool is_marked_as_rawcommand (const std::string& s); +extern void mark_as_rawcommand (const std::string& s); +extern void unmark_rawcommand (const std::string& s); + extern bool is_rawcommand_name (const std::string&); extern bool is_mapper_function_name (const std::string&); extern bool is_builtin_function_name (const std::string&);