Mercurial > octave
comparison libinterp/corefcn/data.cc @ 29958:32c3a5805893
move DEFUN and DEFMETHOD functions inside octave namespace
* mk-opts.pl: Surround emitted function definitions with
OCTAVE_NAMESPACE_BEGIN and OCTAVE_NAMESPACE_END tags.
* mk-builtins.pl: Surround emitted function declarations with
OCTAVE_NAMESPACE_BEGIN and OCTAVE_NAMESPACE_END tags. Emit deprecated
global inline functions.
* __betainc__.cc, __contourc__.cc, __dsearchn__.cc, __eigs__.cc,
__expint__.cc, __ftp__.cc, __gammainc__.cc, __ichol__.cc, __ilu__.cc,
__lin_interpn__.cc, __magick_read__.cc, __pchip_deriv__.cc, __qp__.cc,
amd.cc, balance.cc, besselj.cc, bitfcns.cc, bsxfun.cc, call-stack.cc,
ccolamd.cc, cellfun.cc, chol.cc, colamd.cc, colloc.cc, conv2.cc,
daspk.cc, dasrt.cc, dassl.cc, data.cc, debug.cc, defaults.cc,
defun.cc, det.cc, dirfns.cc, display.cc, dlmread.cc, dmperm.cc,
dot.cc, eig.cc, ellipj.cc, environment.cc, error.cc, event-manager.cc,
fcn-info.cc, fft.cc, fft2.cc, fftn.cc, file-io.cc, filter.cc, find.cc,
gcd.cc, getgrent.cc, getpwent.cc, getrusage.cc, givens.cc,
graphics.cc, gsvd.cc, hash.cc, help.cc, hess.cc, hex2num.cc, input.cc,
interpreter.cc, inv.cc, jsondecode.cc, jsonencode.cc, kron.cc,
load-path.cc, load-save.cc, lookup.cc, ls-oct-text.cc, lsode.cc,
lu.cc, mappers.cc, matrix_type.cc, max.cc, mgorth.cc, nproc.cc,
oct-hist.cc, ordqz.cc, ordschur.cc, pager.cc, pinv.cc, pr-flt-fmt.cc,
pr-output.cc, psi.cc, qr.cc, quad.cc, quadcc.cc, qz.cc, rand.cc,
rcond.cc, regexp.cc, schur.cc, settings.cc, sighandlers.cc, sparse.cc,
spparms.cc, sqrtm.cc, stream-euler.cc, strfind.cc, strfns.cc,
sub2ind.cc, svd.cc, sylvester.cc, symbfact.cc, symrcm.cc, symtab.cc,
syscalls.cc, sysdep.cc, time.cc, toplev.cc, tril.cc, tsearch.cc,
typecast.cc, urlwrite.cc, utils.cc, variables.cc, __delaunayn__.cc,
__fltk_uigetfile__.cc, __glpk__.cc, __init_gnuplot__.cc, __ode15__.cc,
__voronoi__.cc, audiodevinfo.cc, audioread.cc, convhulln.cc, fftw.cc,
gzip.cc, ov-base.cc, ov-bool-mat.cc, ov-cell.cc, ov-class.cc,
ov-classdef.cc, ov-fcn-handle.cc, ov-java.cc, ov-null-mat.cc,
ov-oncleanup.cc, ov-struct.cc, ov-typeinfo.cc, ov-usr-fcn.cc, ov.cc,
octave.cc, lex.ll, oct-parse.yy, profiler.cc, pt-eval.cc: Surround
DEFUN and DEFMETHOD function defnitions with OCTAVE_NAMESPACE_BEGIN
and OCTAVE_NAMESPACE_END tags.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 13 Aug 2021 21:53:51 -0400 |
parents | 693329e53f25 |
children | 9e35973fb6c0 |
comparison
equal
deleted
inserted
replaced
29957:64e3ef97384e | 29958:32c3a5805893 |
---|---|
63 #include "parse.h" | 63 #include "parse.h" |
64 #include "pt-mat.h" | 64 #include "pt-mat.h" |
65 #include "utils.h" | 65 #include "utils.h" |
66 #include "variables.h" | 66 #include "variables.h" |
67 #include "xnorm.h" | 67 #include "xnorm.h" |
68 | |
69 OCTAVE_NAMESPACE_BEGIN | |
68 | 70 |
69 DEFUN (all, args, , | 71 DEFUN (all, args, , |
70 doc: /* -*- texinfo -*- | 72 doc: /* -*- texinfo -*- |
71 @deftypefn {} {} all (@var{x}) | 73 @deftypefn {} {} all (@var{x}) |
72 @deftypefnx {} {} all (@var{x}, @var{dim}) | 74 @deftypefnx {} {} all (@var{x}, @var{dim}) |
924 %!assert <*54602> (mod (int8 (-125), int8 (-25)), int8 (0)) | 926 %!assert <*54602> (mod (int8 (-125), int8 (-25)), int8 (0)) |
925 %!assert <*54602> (mod (int8 (-125), int8 (0)), int8 (-125)) | 927 %!assert <*54602> (mod (int8 (-125), int8 (0)), int8 (-125)) |
926 %!assert <*54602> (mod (int8 (0), int8 (-25)), int8 (0)) | 928 %!assert <*54602> (mod (int8 (0), int8 (-25)), int8 (0)) |
927 | 929 |
928 */ | 930 */ |
929 | |
930 | 931 |
931 #define DATA_REDUCTION(FCN) \ | 932 #define DATA_REDUCTION(FCN) \ |
932 \ | 933 \ |
933 int nargin = args.length (); \ | 934 int nargin = args.length (); \ |
934 \ | 935 \ |
1705 } | 1706 } |
1706 | 1707 |
1707 return retval; | 1708 return retval; |
1708 } | 1709 } |
1709 | 1710 |
1710 OCTAVE_NAMESPACE_BEGIN | |
1711 | |
1712 octave_value | 1711 octave_value |
1713 do_class_concat (const octave_value_list& ovl, std::string cattype, int dim) | 1712 do_class_concat (const octave_value_list& ovl, std::string cattype, int dim) |
1714 { | 1713 { |
1715 octave_value retval; | 1714 octave_value retval; |
1716 | 1715 |
1774 retval = octave_value (new octave_class (m, cname, parents)); | 1773 retval = octave_value (new octave_class (m, cname, parents)); |
1775 } | 1774 } |
1776 | 1775 |
1777 return retval; | 1776 return retval; |
1778 } | 1777 } |
1779 | |
1780 OCTAVE_NAMESPACE_END | |
1781 | 1778 |
1782 static octave_value | 1779 static octave_value |
1783 do_cat (const octave_value_list& xargs, int dim, std::string fname) | 1780 do_cat (const octave_value_list& xargs, int dim, std::string fname) |
1784 { | 1781 { |
1785 octave_value retval; | 1782 octave_value retval; |
8375 %!error __base64_decode_bytes__ () | 8372 %!error __base64_decode_bytes__ () |
8376 %!error __base64_decode_bytes__ (1,2,3) | 8373 %!error __base64_decode_bytes__ (1,2,3) |
8377 %!error __base64_decode_bytes__ (1, "this is not a valid set of dimensions") | 8374 %!error __base64_decode_bytes__ (1, "this is not a valid set of dimensions") |
8378 %!error <input was not valid base64> __base64_decode_bytes__ (1) | 8375 %!error <input was not valid base64> __base64_decode_bytes__ (1) |
8379 */ | 8376 */ |
8377 | |
8378 OCTAVE_NAMESPACE_END |