Mercurial > octave
comparison src/DLD-FUNCTIONS/quad.cc @ 3523:b80bbb43a1a9
[project @ 2000-02-02 10:25:52 by jwe]
author | jwe |
---|---|
date | Wed, 02 Feb 2000 10:26:25 +0000 |
parents | e71b3d1dd327 |
children | 71bd2d124119 |
comparison
equal
deleted
inserted
replaced
3522:bd422cf62f0c | 3523:b80bbb43a1a9 |
---|---|
24 #include <config.h> | 24 #include <config.h> |
25 #endif | 25 #endif |
26 | 26 |
27 #include <string> | 27 #include <string> |
28 | 28 |
29 #include <iostream.h> | 29 #include <iostream> |
30 | 30 |
31 #include "Quad.h" | 31 #include "Quad.h" |
32 #include "lo-mappers.h" | 32 #include "lo-mappers.h" |
33 | 33 |
34 #include "defun-dld.h" | 34 #include "defun-dld.h" |
318 { 0, 0, 0, }, 0, | 318 { 0, 0, 0, }, 0, |
319 0, 0, }, | 319 0, 0, }, |
320 }; | 320 }; |
321 | 321 |
322 static void | 322 static void |
323 print_quad_option_list (ostream& os) | 323 print_quad_option_list (std::ostream& os) |
324 { | 324 { |
325 print_usage ("quad_options", 1); | 325 print_usage ("quad_options", 1); |
326 | 326 |
327 os << "\n" | 327 os << "\n" |
328 << "Options for quad include:\n\n" | 328 << "Options for quad include:\n\n" |
348 | 348 |
349 os << "\n"; | 349 os << "\n"; |
350 } | 350 } |
351 | 351 |
352 static void | 352 static void |
353 set_quad_option (const string& keyword, double val) | 353 set_quad_option (const std::string& keyword, double val) |
354 { | 354 { |
355 QUAD_OPTIONS *list = quad_option_table; | 355 QUAD_OPTIONS *list = quad_option_table; |
356 | 356 |
357 while (list->keyword != 0) | 357 while (list->keyword != 0) |
358 { | 358 { |
368 | 368 |
369 warning ("quad_options: no match for `%s'", keyword.c_str ()); | 369 warning ("quad_options: no match for `%s'", keyword.c_str ()); |
370 } | 370 } |
371 | 371 |
372 static octave_value_list | 372 static octave_value_list |
373 show_quad_option (const string& keyword) | 373 show_quad_option (const std::string& keyword) |
374 { | 374 { |
375 octave_value retval; | 375 octave_value retval; |
376 | 376 |
377 QUAD_OPTIONS *list = quad_option_table; | 377 QUAD_OPTIONS *list = quad_option_table; |
378 | 378 |
410 print_quad_option_list (octave_stdout); | 410 print_quad_option_list (octave_stdout); |
411 return retval; | 411 return retval; |
412 } | 412 } |
413 else if (nargin == 1 || nargin == 2) | 413 else if (nargin == 1 || nargin == 2) |
414 { | 414 { |
415 string keyword = args(0).string_value (); | 415 std::string keyword = args(0).string_value (); |
416 | 416 |
417 if (! error_state) | 417 if (! error_state) |
418 { | 418 { |
419 if (nargin == 1) | 419 if (nargin == 1) |
420 return show_quad_option (keyword); | 420 return show_quad_option (keyword); |