Mercurial > octave
diff libinterp/octave-value/ov-struct.cc @ 23454:30b6eccd6708
use builtin-defun-decls.h to ensure declarations of interpreter functions
* error.cc, file-io.cc, strfind.cc, ov-cell.cc, ov-struct.cc,
oct-parse.in.yy: Include builtin-defun-decls.h. Eliminate local
declarations of interpreter functions.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 28 Apr 2017 13:52:02 -0400 |
parents | 855122b993da |
children | 21baad6b35c4 |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-struct.cc Fri Apr 28 13:49:27 2017 -0400 +++ b/libinterp/octave-value/ov-struct.cc Fri Apr 28 13:52:02 2017 -0400 @@ -27,6 +27,7 @@ #include <iostream> #include "Cell.h" +#include "builtin-defun-decls.h" #include "defun.h" #include "error.h" #include "errwarn.h" @@ -2038,11 +2039,6 @@ %!assert (cell2struct ({}, {"f"}, 3), struct ("f", {})) */ -// FIXME: we should be including builtin-defun-decls.h but doing that -// currently exposes a problem with dependencies in the the build system. -extern OCTINTERP_API octave_value_list -Fcellstr (const octave_value_list& = octave_value_list (), int = 0); - DEFUN (rmfield, args, , doc: /* -*- texinfo -*- @deftypefn {} {@var{sout} =} rmfield (@var{s}, "@var{f}")