1797
|
1 /* |
|
2 |
2847
|
3 Copyright (C) 1996, 1997 John W. Eaton |
1797
|
4 |
|
5 This file is part of Octave. |
|
6 |
|
7 Octave is free software; you can redistribute it and/or modify it |
|
8 under the terms of the GNU General Public License as published by the |
|
9 Free Software Foundation; either version 2, or (at your option) any |
|
10 later version. |
|
11 |
|
12 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
15 for more details. |
|
16 |
|
17 You should have received a copy of the GNU General Public License |
|
18 along with Octave; see the file COPYING. If not, write to the Free |
|
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
20 |
|
21 */ |
|
22 |
|
23 #ifdef HAVE_CONFIG_H |
|
24 #include <config.h> |
|
25 #endif |
|
26 |
|
27 #include <cstring> |
|
28 |
3504
|
29 #include <iostream> |
2926
|
30 #include <string> |
|
31 |
|
32 #include "cmd-edit.h" |
|
33 #include "cmd-hist.h" |
|
34 #include "lo-error.h" |
|
35 #include "str-vec.h" |
|
36 |
|
37 command_history *command_history::instance = 0; |
|
38 |
|
39 #if defined (USE_READLINE) |
|
40 |
|
41 #include <cstdlib> |
|
42 |
2444
|
43 #ifdef HAVE_FCNTL_H |
1797
|
44 #include <fcntl.h> |
2444
|
45 #endif |
1797
|
46 |
|
47 #ifdef HAVE_UNISTD_H |
2443
|
48 #ifdef HAVE_SYS_TYPES_H |
1797
|
49 #include <sys/types.h> |
2443
|
50 #endif |
1797
|
51 #include <unistd.h> |
|
52 #endif |
|
53 |
3519
|
54 #include "oct-rl-hist.h" |
1797
|
55 |
2926
|
56 #include "file-stat.h" |
1797
|
57 |
2926
|
58 class |
|
59 gnu_history : public command_history |
1797
|
60 { |
2926
|
61 public: |
|
62 |
|
63 gnu_history (void) |
|
64 : command_history (), mark (0) { } |
|
65 |
|
66 ~gnu_history (void) { } |
|
67 |
3504
|
68 void do_add (const std::string&); |
2926
|
69 |
|
70 void do_remove (int); |
1797
|
71 |
2926
|
72 int do_where (void); |
|
73 |
|
74 int do_length (void); |
|
75 |
|
76 int do_max_input_history (void); |
|
77 |
|
78 int do_base (void); |
|
79 |
|
80 int do_current_number (void); |
|
81 |
|
82 void do_stifle (int); |
1797
|
83 |
2926
|
84 int do_unstifle (void); |
|
85 |
|
86 int do_is_stifled (void); |
|
87 |
|
88 void do_set_mark (int); |
1797
|
89 |
2926
|
90 void do_goto_mark (void); |
|
91 |
3504
|
92 void do_read (const std::string&, bool); |
1797
|
93 |
3504
|
94 void do_read_range (const std::string&, int, int, bool); |
1797
|
95 |
3504
|
96 void do_write (const std::string&); |
1797
|
97 |
3504
|
98 void do_append (const std::string&); |
2926
|
99 |
3504
|
100 void do_truncate_file (const std::string&, int); |
2926
|
101 |
|
102 string_vector do_list (int, bool); |
|
103 |
3504
|
104 std::string do_get_entry (int); |
1797
|
105 |
3504
|
106 void do_replace_entry (int, const std::string&); |
2926
|
107 |
3504
|
108 void do_clean_up_and_save (const std::string&, int); |
1797
|
109 |
2926
|
110 private: |
|
111 |
|
112 int mark; |
|
113 }; |
1797
|
114 |
|
115 void |
3504
|
116 gnu_history::do_add (const std::string& s) |
1797
|
117 { |
2926
|
118 if (! do_ignoring_entries ()) |
1797
|
119 { |
2512
|
120 if (s.empty () |
|
121 || (s.length () == 1 && (s[0] == '\r' || s[0] == '\n'))) |
|
122 return; |
|
123 |
3519
|
124 ::octave_add_history (s.c_str ()); |
2926
|
125 |
1797
|
126 lines_this_session++; |
|
127 } |
|
128 } |
|
129 |
|
130 void |
2926
|
131 gnu_history::do_remove (int n) |
1797
|
132 { |
3519
|
133 ::octave_remove_history (n); |
1797
|
134 } |
|
135 |
|
136 int |
2926
|
137 gnu_history::do_where (void) |
1797
|
138 { |
3519
|
139 return ::octave_where_history (); |
1797
|
140 } |
|
141 |
|
142 int |
2926
|
143 gnu_history::do_length (void) |
|
144 { |
3519
|
145 return ::octave_history_length (); |
2926
|
146 } |
|
147 |
|
148 int |
|
149 gnu_history::do_max_input_history (void) |
|
150 { |
3519
|
151 return ::octave_max_input_history (); |
2926
|
152 } |
|
153 |
|
154 int |
|
155 gnu_history::do_base (void) |
1797
|
156 { |
3519
|
157 return ::octave_history_base (); |
1797
|
158 } |
|
159 |
|
160 int |
2926
|
161 gnu_history::do_current_number (void) |
1797
|
162 { |
2926
|
163 return (xsize > 0) ? do_base () + do_where () : -1; |
1797
|
164 } |
|
165 |
|
166 void |
2926
|
167 gnu_history::do_stifle (int n) |
1797
|
168 { |
3519
|
169 ::octave_stifle_history (n); |
1797
|
170 } |
|
171 |
|
172 int |
2926
|
173 gnu_history::do_unstifle (void) |
1797
|
174 { |
3519
|
175 return ::octave_unstifle_history (); |
1797
|
176 } |
|
177 |
|
178 int |
2926
|
179 gnu_history::do_is_stifled (void) |
1797
|
180 { |
3519
|
181 return ::octave_history_is_stifled (); |
1797
|
182 } |
|
183 |
|
184 void |
2926
|
185 gnu_history::do_set_mark (int n) |
2658
|
186 { |
2926
|
187 mark = n; |
2658
|
188 } |
|
189 |
|
190 void |
2926
|
191 gnu_history::do_goto_mark (void) |
|
192 { |
|
193 if (mark) |
|
194 { |
3519
|
195 char *line = ::octave_history_goto_mark (mark); |
2926
|
196 |
3519
|
197 if (line) |
|
198 { |
|
199 command_editor::insert_text (line); |
2926
|
200 |
3519
|
201 command_editor::clear_undo_list (); |
2926
|
202 } |
|
203 } |
|
204 |
|
205 mark = 0; |
|
206 |
|
207 // XXX FIXME XXX -- for operate_and_get_next. |
|
208 command_editor::restore_startup_hook (); |
|
209 } |
|
210 |
|
211 void |
3504
|
212 gnu_history::do_read (const std::string& f, bool must_exist) |
1797
|
213 { |
|
214 if (! f.empty ()) |
|
215 { |
3519
|
216 int status = ::octave_read_history (f.c_str ()); |
1797
|
217 |
2658
|
218 if (status != 0 && must_exist) |
1797
|
219 error (status); |
|
220 else |
2658
|
221 { |
2926
|
222 lines_in_file = do_where (); |
2658
|
223 |
3519
|
224 ::octave_using_history (); |
2658
|
225 } |
1797
|
226 } |
|
227 else |
2926
|
228 error ("gnu_history::read: missing file name"); |
1797
|
229 } |
|
230 |
2659
|
231 void |
3504
|
232 gnu_history::do_read_range (const std::string& f, int from, int to, |
2926
|
233 bool must_exist) |
1797
|
234 { |
|
235 if (from < 0) |
|
236 from = lines_in_file; |
|
237 |
|
238 if (! f.empty ()) |
|
239 { |
3519
|
240 int status = ::octave_read_history_range (f.c_str (), from, to); |
1797
|
241 |
2658
|
242 if (status != 0 && must_exist) |
1797
|
243 error (status); |
|
244 else |
|
245 { |
2926
|
246 lines_in_file = do_where (); |
2658
|
247 |
3519
|
248 ::octave_using_history (); |
1797
|
249 } |
|
250 } |
|
251 else |
2926
|
252 error ("gnu_history::read_range: missing file name"); |
1797
|
253 } |
|
254 |
|
255 void |
3504
|
256 gnu_history::do_write (const std::string& f_arg) |
1797
|
257 { |
3504
|
258 std::string f = f_arg; |
1797
|
259 |
|
260 if (f.empty ()) |
|
261 f = xfile; |
|
262 |
|
263 if (! f.empty ()) |
|
264 { |
3519
|
265 int status = ::octave_write_history (f.c_str ()); |
1797
|
266 |
|
267 if (status != 0) |
|
268 error (status); |
|
269 } |
|
270 else |
2926
|
271 error ("gnu_history::write: missing file name"); |
1797
|
272 } |
|
273 |
|
274 void |
3504
|
275 gnu_history::do_append (const std::string& f_arg) |
1797
|
276 { |
|
277 if (lines_this_session) |
|
278 { |
2926
|
279 if (lines_this_session < do_where ()) |
1797
|
280 { |
|
281 // Create file if it doesn't already exist. |
|
282 |
3504
|
283 std::string f = f_arg; |
1797
|
284 |
|
285 if (f.empty ()) |
|
286 f = xfile; |
|
287 |
|
288 if (! f.empty ()) |
|
289 { |
|
290 file_stat fs (f); |
|
291 |
|
292 if (! fs) |
|
293 { |
|
294 int tem; |
|
295 |
|
296 tem = open (f.c_str (), O_CREAT, 0666); |
|
297 close (tem); |
|
298 } |
|
299 |
3519
|
300 int status |
|
301 = ::octave_append_history (lines_this_session, f.c_str ()); |
1797
|
302 |
|
303 if (status != 0) |
|
304 error (status); |
|
305 else |
|
306 lines_in_file += lines_this_session; |
|
307 |
|
308 lines_this_session = 0; |
|
309 } |
|
310 else |
2926
|
311 error ("gnu_history::append: missing file name"); |
1797
|
312 } |
|
313 } |
|
314 } |
|
315 |
|
316 void |
3504
|
317 gnu_history::do_truncate_file (const std::string& f_arg, int n) |
1797
|
318 { |
3504
|
319 std::string f = f_arg; |
1797
|
320 |
|
321 if (f.empty ()) |
|
322 f = xfile; |
|
323 |
|
324 if (! f.empty ()) |
3519
|
325 ::octave_history_truncate_file (f.c_str (), n); |
1797
|
326 else |
2926
|
327 error ("gnu_history::truncate_file: missing file name"); |
1797
|
328 } |
|
329 |
|
330 string_vector |
2926
|
331 gnu_history::do_list (int limit, bool number_lines) |
1797
|
332 { |
|
333 string_vector retval; |
|
334 |
|
335 if (limit) |
3519
|
336 retval = ::octave_history_list (limit, number_lines); |
1797
|
337 |
|
338 return retval; |
|
339 } |
|
340 |
3504
|
341 std::string |
2926
|
342 gnu_history::do_get_entry (int n) |
1797
|
343 { |
3504
|
344 std::string retval; |
1797
|
345 |
3519
|
346 char *line = ::octave_history_get (do_base () + n); |
1797
|
347 |
3519
|
348 if (line) |
|
349 retval = line; |
1797
|
350 |
|
351 return retval; |
|
352 } |
|
353 |
|
354 void |
3504
|
355 gnu_history::do_replace_entry (int which, const std::string& line) |
1797
|
356 { |
3519
|
357 ::octave_replace_history_entry (which, line.c_str ()); |
1797
|
358 } |
|
359 |
|
360 void |
3504
|
361 gnu_history::do_clean_up_and_save (const std::string& f_arg, int n) |
1797
|
362 { |
3504
|
363 std::string f = f_arg; |
1797
|
364 |
|
365 if (f.empty ()) |
|
366 f = xfile; |
|
367 |
|
368 if (! f.empty ()) |
|
369 { |
|
370 if (n < 0) |
|
371 n = xsize; |
|
372 |
|
373 stifle (n); |
|
374 |
2926
|
375 do_write (f.c_str ()); |
1797
|
376 } |
|
377 else |
2926
|
378 error ("gnu_history::clean_up_and_save: missing file name"); |
|
379 } |
|
380 |
|
381 #endif |
|
382 |
|
383 bool |
|
384 command_history::instance_ok (void) |
|
385 { |
|
386 bool retval = true; |
|
387 |
|
388 if (! instance) |
|
389 make_command_history (); |
|
390 |
|
391 if (! instance) |
|
392 { |
|
393 (*current_liboctave_error_handler) |
|
394 ("unable to create command history object!"); |
|
395 |
|
396 retval = false; |
|
397 } |
|
398 |
|
399 return retval; |
|
400 } |
|
401 |
|
402 void |
|
403 command_history::make_command_history (void) |
|
404 { |
|
405 #if defined (USE_READLINE) |
|
406 instance = new gnu_history (); |
|
407 #else |
|
408 instance = new command_history (); |
|
409 #endif |
|
410 } |
|
411 |
|
412 void |
3504
|
413 command_history::set_file (const std::string& f) |
2926
|
414 { |
|
415 if (instance_ok ()) |
|
416 instance->do_set_file (f); |
|
417 } |
|
418 |
3504
|
419 std::string |
2926
|
420 command_history::file (void) |
|
421 { |
|
422 return (instance_ok ()) |
3504
|
423 ? instance->do_file () : std::string (); |
2926
|
424 } |
|
425 |
|
426 void |
|
427 command_history::set_size (int n) |
|
428 { |
|
429 if (instance_ok ()) |
|
430 instance->do_set_size (n); |
|
431 } |
|
432 |
|
433 int |
|
434 command_history::size (void) |
|
435 { |
|
436 return (instance_ok ()) |
|
437 ? instance->do_size () : 0; |
|
438 } |
|
439 |
|
440 void |
|
441 command_history::ignore_entries (bool flag) |
|
442 { |
|
443 if (instance_ok ()) |
|
444 instance->do_ignore_entries (flag); |
|
445 } |
|
446 |
|
447 bool |
|
448 command_history::ignoring_entries (void) |
|
449 { |
|
450 return (instance_ok ()) |
|
451 ? instance->do_ignoring_entries () : false; |
|
452 } |
|
453 |
|
454 void |
3504
|
455 command_history::add (const std::string& s) |
2926
|
456 { |
|
457 if (instance_ok ()) |
|
458 instance->do_add (s); |
|
459 } |
|
460 |
|
461 void |
|
462 command_history::remove (int n) |
|
463 { |
|
464 if (instance_ok ()) |
|
465 instance->do_remove (n); |
|
466 } |
|
467 |
|
468 int |
|
469 command_history::where (void) |
|
470 { |
|
471 return (instance_ok ()) |
|
472 ? instance->do_where () : 0; |
|
473 } |
|
474 |
|
475 int |
|
476 command_history::length (void) |
|
477 { |
|
478 return (instance_ok ()) |
|
479 ? instance->do_length () : 0; |
|
480 } |
|
481 |
|
482 int |
|
483 command_history::max_input_history (void) |
|
484 { |
|
485 return (instance_ok ()) |
|
486 ? instance->do_max_input_history () : 0; |
|
487 } |
|
488 |
|
489 int |
|
490 command_history::base (void) |
|
491 { |
|
492 return (instance_ok ()) |
|
493 ? instance->do_base () : 0; |
|
494 } |
|
495 |
|
496 int |
|
497 command_history::current_number (void) |
|
498 { |
|
499 return (instance_ok ()) |
|
500 ? instance->do_current_number () : 0; |
|
501 } |
|
502 |
|
503 void |
|
504 command_history::stifle (int n) |
|
505 { |
|
506 if (instance_ok ()) |
|
507 instance->do_stifle (n); |
|
508 } |
|
509 |
|
510 int |
|
511 command_history::unstifle (void) |
|
512 { |
|
513 return (instance_ok ()) |
|
514 ? instance->do_unstifle () : 0; |
|
515 } |
|
516 |
|
517 int |
|
518 command_history::is_stifled (void) |
|
519 { |
|
520 return (instance_ok ()) |
|
521 ? instance->do_is_stifled () : 0; |
|
522 } |
|
523 |
|
524 void |
|
525 command_history::set_mark (int n) |
|
526 { |
|
527 if (instance_ok ()) |
|
528 instance->do_set_mark (n); |
|
529 } |
|
530 |
3519
|
531 void |
|
532 command_history::goto_mark (void) |
2926
|
533 { |
|
534 if (instance_ok ()) |
|
535 instance->do_goto_mark (); |
|
536 } |
|
537 |
|
538 void |
|
539 command_history::read (bool must_exist) |
|
540 { |
3522
|
541 read (file (), must_exist); |
2926
|
542 } |
|
543 |
|
544 void |
3504
|
545 command_history::read (const std::string& f, bool must_exist) |
2926
|
546 { |
|
547 if (instance_ok ()) |
|
548 instance->do_read (f, must_exist); |
|
549 } |
|
550 |
|
551 void |
|
552 command_history::read_range (int from, int to, bool must_exist) |
|
553 { |
3522
|
554 read_range (file (), from, to, must_exist); |
2926
|
555 } |
|
556 |
|
557 void |
3504
|
558 command_history::read_range (const std::string& f, int from, int to, |
2926
|
559 bool must_exist) |
|
560 { |
|
561 if (instance_ok ()) |
|
562 instance->do_read_range (f, from, to, must_exist); |
|
563 } |
|
564 |
|
565 void |
3504
|
566 command_history::write (const std::string& f) |
2926
|
567 { |
|
568 if (instance_ok ()) |
|
569 instance->do_write (f); |
|
570 } |
|
571 |
|
572 void |
3504
|
573 command_history::append (const std::string& f) |
2926
|
574 { |
|
575 if (instance_ok ()) |
|
576 instance->do_append (f); |
|
577 } |
|
578 |
|
579 void |
3504
|
580 command_history::truncate_file (const std::string& f, int n) |
2926
|
581 { |
|
582 if (instance_ok ()) |
|
583 instance->do_truncate_file (f, n); |
|
584 } |
|
585 |
|
586 string_vector |
|
587 command_history::list (int limit, bool number_lines) |
|
588 { |
|
589 return (instance_ok ()) |
|
590 ? instance->do_list (limit, number_lines) : string_vector (); |
|
591 } |
|
592 |
3504
|
593 std::string |
2926
|
594 command_history::get_entry (int n) |
|
595 { |
|
596 return (instance_ok ()) |
3504
|
597 ? instance->do_get_entry (n) : std::string (); |
2926
|
598 } |
|
599 |
|
600 void |
3504
|
601 command_history::replace_entry (int which, const std::string& line) |
2926
|
602 { |
|
603 if (instance_ok ()) |
|
604 instance->do_replace_entry (which, line); |
|
605 } |
|
606 |
|
607 void |
3504
|
608 command_history::clean_up_and_save (const std::string& f, int n) |
2926
|
609 { |
|
610 if (instance_ok ()) |
|
611 instance->do_clean_up_and_save (f, n); |
|
612 } |
|
613 |
|
614 void |
3504
|
615 command_history::do_set_file (const std::string& f) |
2926
|
616 { |
|
617 xfile = f; |
|
618 } |
|
619 |
3504
|
620 std::string |
2926
|
621 command_history::do_file (void) |
|
622 { |
|
623 return xfile; |
|
624 } |
|
625 |
|
626 void |
|
627 command_history::do_set_size (int n) |
|
628 { |
|
629 xsize = n; |
|
630 } |
|
631 |
|
632 int |
|
633 command_history::do_size (void) |
|
634 { |
|
635 return xsize; |
|
636 } |
|
637 |
|
638 void |
|
639 command_history::do_ignore_entries (bool flag) |
|
640 { |
|
641 ignoring_additions = flag; |
|
642 } |
|
643 |
|
644 bool |
|
645 command_history::do_ignoring_entries (void) |
|
646 { |
|
647 return ignoring_additions; |
|
648 } |
|
649 |
|
650 void |
3504
|
651 command_history::do_add (const std::string&) |
2926
|
652 { |
|
653 } |
|
654 |
|
655 void |
|
656 command_history::do_remove (int) |
|
657 { |
|
658 } |
|
659 |
|
660 int |
|
661 command_history::do_where (void) |
|
662 { |
|
663 return 0; |
|
664 } |
|
665 |
|
666 int |
|
667 command_history::do_length (void) |
|
668 { |
|
669 return 0; |
|
670 } |
|
671 |
|
672 int |
|
673 command_history::do_max_input_history (void) |
|
674 { |
|
675 return 0; |
|
676 } |
|
677 |
|
678 int |
|
679 command_history::do_base (void) |
|
680 { |
|
681 return 0; |
|
682 } |
|
683 |
|
684 int |
|
685 command_history::do_current_number (void) |
|
686 { |
|
687 return (xsize > 0) ? do_base () + do_where () : -1; |
|
688 } |
|
689 |
|
690 void |
|
691 command_history::do_stifle (int) |
|
692 { |
|
693 } |
|
694 |
|
695 int |
|
696 command_history::do_unstifle (void) |
|
697 { |
|
698 return -1; |
|
699 } |
|
700 |
|
701 int |
|
702 command_history::do_is_stifled (void) |
|
703 { |
|
704 return 0; |
|
705 } |
|
706 |
|
707 void |
|
708 command_history::do_set_mark (int) |
|
709 { |
|
710 } |
|
711 |
|
712 void |
|
713 command_history::do_goto_mark (void) |
|
714 { |
|
715 } |
|
716 |
|
717 void |
3504
|
718 command_history::do_read (const std::string& f, bool) |
2926
|
719 { |
|
720 if (f.empty ()) |
|
721 error ("command_history::read: missing file name"); |
|
722 } |
|
723 |
|
724 void |
3504
|
725 command_history::do_read_range (const std::string& f, int, int, bool) |
2926
|
726 { |
|
727 if (f.empty ()) |
|
728 error ("command_history::read_range: missing file name"); |
|
729 } |
|
730 |
|
731 void |
3504
|
732 command_history::do_write (const std::string& f_arg) |
2926
|
733 { |
3504
|
734 std::string f = f_arg; |
2926
|
735 |
|
736 if (f.empty ()) |
|
737 f = xfile; |
|
738 |
|
739 if (f.empty ()) |
|
740 error ("command_history::write: missing file name"); |
|
741 } |
|
742 |
|
743 void |
3504
|
744 command_history::do_append (const std::string& f_arg) |
2926
|
745 { |
|
746 if (lines_this_session) |
|
747 { |
|
748 if (lines_this_session < do_where ()) |
|
749 { |
|
750 // Create file if it doesn't already exist. |
|
751 |
3504
|
752 std::string f = f_arg; |
2926
|
753 |
|
754 if (f.empty ()) |
|
755 f = xfile; |
|
756 |
|
757 if (f.empty ()) |
|
758 error ("command_history::append: missing file name"); |
|
759 } |
|
760 } |
|
761 } |
|
762 |
|
763 void |
3504
|
764 command_history::do_truncate_file (const std::string& f_arg, int) |
2926
|
765 { |
3504
|
766 std::string f = f_arg; |
2926
|
767 |
|
768 if (f.empty ()) |
|
769 f = xfile; |
|
770 |
|
771 if (f.empty ()) |
|
772 error ("command_history::truncate_file: missing file name"); |
|
773 } |
|
774 |
|
775 string_vector |
|
776 command_history::do_list (int, bool) |
|
777 { |
|
778 return string_vector (); |
|
779 } |
|
780 |
3504
|
781 std::string |
2926
|
782 command_history::do_get_entry (int) |
|
783 { |
3504
|
784 return std::string (); |
2926
|
785 } |
|
786 |
|
787 void |
3504
|
788 command_history::do_replace_entry (int, const std::string&) |
2926
|
789 { |
|
790 } |
|
791 |
|
792 void |
3504
|
793 command_history::do_clean_up_and_save (const std::string& f_arg, int) |
2926
|
794 { |
3504
|
795 std::string f = f_arg; |
2926
|
796 |
|
797 if (f.empty ()) |
|
798 f = xfile; |
|
799 |
|
800 if (f.empty ()) |
1797
|
801 error ("command_history::clean_up_and_save: missing file name"); |
|
802 } |
|
803 |
|
804 void |
2470
|
805 command_history::error (int err_num) |
1797
|
806 { |
2470
|
807 (*current_liboctave_error_handler) ("%s", strerror (err_num)); |
1797
|
808 } |
|
809 |
|
810 void |
3504
|
811 command_history::error (const std::string& s) |
1797
|
812 { |
|
813 (*current_liboctave_error_handler) ("%s", s.c_str ()); |
|
814 } |
|
815 |
|
816 /* |
|
817 ;;; Local Variables: *** |
|
818 ;;; mode: C++ *** |
|
819 ;;; End: *** |
|
820 */ |