Mercurial > octave
view liboctave/wrappers/canonicalize-file-name-wrapper.c @ 21888:00f1249f2483
create wrappers for some gnulib functions
Begin moving toward a clean separation between Octave and gnulib
sources.
* liboctave/wrappers/canonicalize-file-name-wrapper.c,
liboctave/wrappers/canonicalize-file-name-wrapper.h,
liboctave/wrappers/gen-tempname-wrapper.c,
liboctave/wrappers/gen-tempname-wrapper.h,
liboctave/wrappers/mkostemp-wrapper.c,
liboctave/wrappers/mkostemp-wrapper.h,
liboctave/wrappers/nanosleep-wrapper.c,
liboctave/wrappers/nanosleep-wrapper.h,
liboctave/wrappers/nproc-wrapper.c,
liboctave/wrappers/nproc-wrapper.h,
liboctave/wrappers/putenv-wrapper.c,
liboctave/wrappers/putenv-wrapper.h,
liboctave/wrappers/strftime-wrapper.c,
liboctave/wrappers/strftime-wrapper.h,
liboctave/wrappers/strptime-wrapper.c,
liboctave/wrappers/strptime-wrapper.h,
liboctave/wrappers/unsetenv-wrapper.c,
liboctave/wrappers/unsetenv-wrapper.h,
liboctave/wrappers/vasprintf-wrapper.c,
liboctave/wrappers/vasprintf-wrapper.h,
liboctave/wrappers/module.mk: New files.
* liboctave/module.mk, changed libinterp/module.mk: Update.
* file-io.cc, load-save.cc, sysdep.cc, utils.cc, file-ops.cc,
oct-time.cc, lo-utils.cc: Include wrapper headers and use wrapper
functions instead of calling gnulib functions directly.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 13 Jun 2016 16:01:26 -0400 |
parents | |
children | 4caa7b28d183 |
line wrap: on
line source
/* Copyright (C) 2016 John W. Eaton This file is part of Octave. Octave is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. Octave is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Octave; see the file COPYING. If not, see <http://www.gnu.org/licenses/>. */ // canonicalize_file_name may be provided by gnulib. We don't include // gnulib headers directly in Octave's C++ source files to avoid // problems that may be caused by the way that gnulib overrides standard // library functions. #if defined (HAVE_CONFIG_H) # include "config.h" #endif #include <stdlib.h> #include "canonicalize-file-name-wrapper.h" char * octave_canonicalize_file_name_wrapper (const char *name) { return canonicalize_file_name (name); }