Mercurial > hg > octave-nkf > gnulib-hg
annotate lib/argv-iter.h @ 12559:c2cbabec01dd
update nearly all FSF copyright year lists to include 2010
Use the same procedure as for 2009, outlined in
http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Fri, 01 Jan 2010 10:31:12 +0100 |
parents | f7842310a565 |
children | b75ebfad6bbc |
rev | line source |
---|---|
11708 | 1 /* Iterate over arguments from argv or --files0-from=FILE |
12559
c2cbabec01dd
update nearly all FSF copyright year lists to include 2010
Jim Meyering <meyering@redhat.com>
parents:
12422
diff
changeset
|
2 Copyright (C) 2008-2010 Free Software Foundation, Inc. |
11708 | 3 |
4 This program is free software: you can redistribute it and/or modify | |
5 it under the terms of the GNU General Public License as published by | |
6 the Free Software Foundation, either version 3 of the License, or | |
7 (at your option) any later version. | |
8 | |
9 This program is distributed in the hope that it will be useful, | |
10 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 GNU General Public License for more details. | |
13 | |
14 You should have received a copy of the GNU General Public License | |
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */ | |
16 | |
17 #include <stdio.h> | |
18 #include <stdbool.h> | |
19 | |
12422
f7842310a565
New module 'arg-nonnull'. Declare which arguments expect non-NULL values.
Bruno Haible <bruno@clisp.org>
parents:
11708
diff
changeset
|
20 /* Definition of _GL_ARG_NONNULL. */ |
f7842310a565
New module 'arg-nonnull'. Declare which arguments expect non-NULL values.
Bruno Haible <bruno@clisp.org>
parents:
11708
diff
changeset
|
21 #include "arg-nonnull.h" |
f7842310a565
New module 'arg-nonnull'. Declare which arguments expect non-NULL values.
Bruno Haible <bruno@clisp.org>
parents:
11708
diff
changeset
|
22 |
11708 | 23 struct argv_iterator; |
24 enum argv_iter_err; | |
25 | |
26 enum argv_iter_err | |
27 { | |
28 AI_ERR_OK = 1, | |
29 AI_ERR_EOF, | |
30 AI_ERR_MEM, | |
31 AI_ERR_READ | |
32 }; | |
33 | |
34 struct argv_iterator *argv_iter_init_argv (char **argv) | |
12422
f7842310a565
New module 'arg-nonnull'. Declare which arguments expect non-NULL values.
Bruno Haible <bruno@clisp.org>
parents:
11708
diff
changeset
|
35 _GL_ARG_NONNULL ((1)); |
11708 | 36 struct argv_iterator *argv_iter_init_stream (FILE *fp) |
12422
f7842310a565
New module 'arg-nonnull'. Declare which arguments expect non-NULL values.
Bruno Haible <bruno@clisp.org>
parents:
11708
diff
changeset
|
37 _GL_ARG_NONNULL ((1)); |
11708 | 38 char *argv_iter (struct argv_iterator *, enum argv_iter_err *) |
12422
f7842310a565
New module 'arg-nonnull'. Declare which arguments expect non-NULL values.
Bruno Haible <bruno@clisp.org>
parents:
11708
diff
changeset
|
39 _GL_ARG_NONNULL ((1, 2)); |
11708 | 40 size_t argv_iter_n_args (struct argv_iterator const *) |
12422
f7842310a565
New module 'arg-nonnull'. Declare which arguments expect non-NULL values.
Bruno Haible <bruno@clisp.org>
parents:
11708
diff
changeset
|
41 _GL_ARG_NONNULL ((1)); |
11708 | 42 void argv_iter_free (struct argv_iterator *) |
12422
f7842310a565
New module 'arg-nonnull'. Declare which arguments expect non-NULL values.
Bruno Haible <bruno@clisp.org>
parents:
11708
diff
changeset
|
43 _GL_ARG_NONNULL ((1)); |