annotate liboctave/wrappers/gen-tempname-wrapper.c @ 23219:3ac9f9ecfae5 stable

maint: Update copyright dates.
author John W. Eaton <jwe@octave.org>
date Wed, 22 Feb 2017 12:39:29 -0500
parents e9a0469dedd9
children 092078913d54
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
21888
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 /*
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2
23219
3ac9f9ecfae5 maint: Update copyright dates.
John W. Eaton <jwe@octave.org>
parents: 23083
diff changeset
3 Copyright (C) 2016-2017 John W. Eaton
21888
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 This file is part of Octave.
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7 Octave is free software; you can redistribute it and/or modify it
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8 under the terms of the GNU General Public License as published by the
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9 Free Software Foundation; either version 3 of the License, or (at your
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10 option) any later version.
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12 Octave is distributed in the hope that it will be useful, but WITHOUT
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15 for more details.
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17 You should have received a copy of the GNU General Public License
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18 along with Octave; see the file COPYING. If not, see
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19 <http://www.gnu.org/licenses/>.
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21 */
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23 // gen_tempname is provided by gnulib. We don't include gnulib headers
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24 // directly in Octave's C++ source files to avoid problems that may be
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
25 // caused by the way that gnulib overrides standard library functions.
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
27 #if defined (HAVE_CONFIG_H)
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
28 # include "config.h"
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
29 #endif
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
30
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
31 #include "tempname.h"
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
32
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
33 #include "gen-tempname-wrapper.h"
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
34
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
35 int
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
36 octave_gen_tempname_wrapper (char *tmpl)
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
37 {
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
38 return gen_tempname (tmpl, 0, 0, GT_NOCREATE);
00f1249f2483 create wrappers for some gnulib functions
John W. Eaton <jwe@octave.org>
parents:
diff changeset
39 }