Mercurial > hg > octave-nkf
comparison src/input.cc @ 4802:b3f20980be32
[project @ 2004-02-25 05:14:19 by jwe]
author | jwe |
---|---|
date | Wed, 25 Feb 2004 05:14:19 +0000 |
parents | cba347c642e2 |
children | 80842ad3f85c |
comparison
equal
deleted
inserted
replaced
4801:b022780ac0b4 | 4802:b3f20980be32 |
---|---|
947 } | 947 } |
948 | 948 |
949 static std::string hook_fcn; | 949 static std::string hook_fcn; |
950 static octave_value user_data; | 950 static octave_value user_data; |
951 | 951 |
952 static void | 952 static int |
953 input_event_hook (void) | 953 input_event_hook (void) |
954 { | 954 { |
955 if (is_valid_function (hook_fcn)) | 955 if (is_valid_function (hook_fcn)) |
956 { | 956 { |
957 if (user_data.is_defined ()) | 957 if (user_data.is_defined ()) |
963 { | 963 { |
964 hook_fcn = std::string (); | 964 hook_fcn = std::string (); |
965 user_data = octave_value (); | 965 user_data = octave_value (); |
966 | 966 |
967 command_editor::set_event_hook (0); | 967 command_editor::set_event_hook (0); |
968 } | 968 } |
969 | |
970 return 0; | |
969 } | 971 } |
970 | 972 |
971 DEFUN (input_event_hook, args, , | 973 DEFUN (input_event_hook, args, , |
972 "-*- texinfo -*-\n\ | 974 "-*- texinfo -*-\n\ |
973 @deftypefn {Built-in Function} {[@var{ofcn}, @var{odata}] =} input_event_hook (@var{fcn}, @var{data})\n\ | 975 @deftypefn {Built-in Function} {[@var{ofcn}, @var{odata}] =} input_event_hook (@var{fcn}, @var{data})\n\ |