Mercurial > hg > octave-nkf
comparison scripts/help/type.m @ 15466:d174210ce1ec stable
use ' instead of ` in error messages, warnings and most comments
* intro.txi, io.txi, munge-texi.cc, octave.texi, cmd-edit.cc,
data-conv.cc, file-ops.cc, glob-match.h, kpse.cc, oct-env.cc,
oct-locbuf.h, oct-md5.cc, oct-rand.cc, general/interp2.m, doc.m,
get_first_help_sentence.m, help.m, print_usage.m,
__additional_help_message__.m, type.m, unimplemented.m, which.m,
cast.m, dir.m, license.m, mkoctfile.m, recycle.m, tempdir.m,
optimset.m, pkg/pkg.m, closereq.m, colstyle.m, __fltk_print__.m,
__gnuplot_print__.m, __go_draw_figure__.m, __pie__.m, __pltopt__.m,
__print_parse_opts__.m, uigetdir.m, uigetfile.m, uiputfile.m, stft.m,
mean.m, anova.m, cor_test.m, t_test_regression.m, __magick_read__.cc,
dlmread.cc, schur.cc, data.cc, debug.cc, defun-dld.h, defun.cc,
defun.h, dynamic-ld.cc, error.cc, error.h, gl-render.cc, graphics.cc,
gripes.cc, input.cc, lex.ll, load-path.cc, load-save.cc, ls-hdf5.cc,
ls-mat-ascii.cc, ls-mat4.cc, ls-mat5.cc, ls-oct-ascii.cc,
ls-oct-binary.cc, oct-hist.cc, oct-parse.yy, oct-stream.cc,
oct-stream.h, octave.cc, ov-base-diag.cc, ov-base.cc, ov-class.cc,
ov-colon.h, ov-struct.cc, ov-typeinfo.cc, ov.cc, pager.cc,
pr-output.cc, pt-binop.cc, pt-eval.cc, pt-id.cc, pt-idx.cc,
pt-misc.cc, pt-unop.cc, symtab.cc, symtab.h, toplev.cc, txt-eng-ft.cc,
utils.cc, variables.cc, test_eval-catch.m, test_try.m:
Use ' instead of ` in error messages, warnings, and most comments.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 01 Oct 2012 17:18:49 -0400 |
parents | 72c96de7a403 |
children | 049e8bbff782 |
comparison
equal
deleted
inserted
replaced
15437:c9954a15bc03 | 15466:d174210ce1ec |
---|---|
71 ## m-file or ordinary file | 71 ## m-file or ordinary file |
72 file = which (name); | 72 file = which (name); |
73 if (isempty (file)) | 73 if (isempty (file)) |
74 ## 'name' is an ordinary file, and not a function name. | 74 ## 'name' is an ordinary file, and not a function name. |
75 ## FIXME: Should we just print it anyway? | 75 ## FIXME: Should we just print it anyway? |
76 error ("type: `%s' undefined\n", name); | 76 error ("type: '%s' undefined\n", name); |
77 endif | 77 endif |
78 | 78 |
79 ## Read the file | 79 ## Read the file |
80 fid = fopen (file, "r"); | 80 fid = fopen (file, "r"); |
81 if (fid < 0) | 81 if (fid < 0) |
82 error ("type: couldn't open `%s' for reading", file); | 82 error ("type: couldn't open '%s' for reading", file); |
83 endif | 83 endif |
84 contents = char (fread (fid).'); | 84 contents = char (fread (fid).'); |
85 fclose (fid); | 85 fclose (fid); |
86 | 86 |
87 if (quiet) | 87 if (quiet) |
97 elseif (any (strcmp (__operators__ (), name))) | 97 elseif (any (strcmp (__operators__ (), name))) |
98 text = sprintf ("%s is an operator", name); | 98 text = sprintf ("%s is an operator", name); |
99 elseif (any (strcmp (__keywords__ (), name))) | 99 elseif (any (strcmp (__keywords__ (), name))) |
100 text = sprintf ("%s is a keyword", name); | 100 text = sprintf ("%s is a keyword", name); |
101 else | 101 else |
102 error ("type: `%s' undefined\n", name); | 102 error ("type: '%s' undefined\n", name); |
103 endif | 103 endif |
104 | 104 |
105 ## Should we return the text or print if | 105 ## Should we return the text or print if |
106 if (nargout == 0) | 106 if (nargout == 0) |
107 disp (text); | 107 disp (text); |