Mercurial > octave
comparison libinterp/octave.cc @ 15480:c7d7d43f26bb
call Ffoo functions instead of setting Vfoo directly.
* octave.cc (octave_process_command_line): Call
Fbuilt_in_docstrings_file instead of setting
Vbuilt_in_docstrings_file directly. Likewise for Fdoc_cache_file,
Finfo_file, Finfo_program, and Ftexi_macros_file.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 03 Oct 2012 03:10:45 -0400 |
parents | 3f447bcc8488 |
children | dbc6b6b18286 |
comparison
equal
deleted
inserted
replaced
15479:3f447bcc8488 | 15480:c7d7d43f26bb |
---|---|
750 print_version_and_exit (); | 750 print_version_and_exit (); |
751 break; | 751 break; |
752 | 752 |
753 case BUILT_IN_DOCSTRINGS_FILE_OPTION: | 753 case BUILT_IN_DOCSTRINGS_FILE_OPTION: |
754 if (optarg) | 754 if (optarg) |
755 Vbuilt_in_docstrings_file = optarg; | 755 Fbuilt_in_docstrings_file (octave_value (optarg)); |
756 break; | 756 break; |
757 | 757 |
758 case DOC_CACHE_FILE_OPTION: | 758 case DOC_CACHE_FILE_OPTION: |
759 if (optarg) | 759 if (optarg) |
760 Vdoc_cache_file = optarg; | 760 Fdoc_cache_file (octave_value (optarg)); |
761 break; | 761 break; |
762 | 762 |
763 case EVAL_OPTION: | 763 case EVAL_OPTION: |
764 if (optarg) | 764 if (optarg) |
765 { | 765 { |
784 image_path = optarg; | 784 image_path = optarg; |
785 break; | 785 break; |
786 | 786 |
787 case INFO_FILE_OPTION: | 787 case INFO_FILE_OPTION: |
788 if (optarg) | 788 if (optarg) |
789 Vinfo_file = optarg; | 789 Finfo_file (octave_value (optarg)); |
790 break; | 790 break; |
791 | 791 |
792 case INFO_PROG_OPTION: | 792 case INFO_PROG_OPTION: |
793 if (optarg) | 793 if (optarg) |
794 Vinfo_program = optarg; | 794 Finfo_program (octave_value (optarg)); |
795 break; | 795 break; |
796 | 796 |
797 case JIT_DEBUGGING_OPTION: | 797 case JIT_DEBUGGING_OPTION: |
798 Fenable_jit_debugging (octave_value (true)); | 798 Fenable_jit_debugging (octave_value (true)); |
799 break; | 799 break; |
834 persist = true; | 834 persist = true; |
835 break; | 835 break; |
836 | 836 |
837 case TEXI_MACROS_FILE_OPTION: | 837 case TEXI_MACROS_FILE_OPTION: |
838 if (optarg) | 838 if (optarg) |
839 Vtexi_macros_file = optarg; | 839 Ftexi_macros_file (octave_value (optarg)); |
840 break; | 840 break; |
841 | 841 |
842 case TRADITIONAL_OPTION: | 842 case TRADITIONAL_OPTION: |
843 maximum_braindamage (); | 843 maximum_braindamage (); |
844 break; | 844 break; |