Mercurial > gnulib
changeset 17743:d64a425dcfe5
vla: new module
vla: new module
GNU RCS can use this, mostly for documentation I expect. See:
http://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00025.html
* MODULES.html.sh: Add vla.
* lib/vla.h, modules/vla: New files.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Thu, 07 Aug 2014 17:40:01 -0700 |
parents | b478eeaef4a3 |
children | 9c8d212db038 |
files | ChangeLog MODULES.html.sh lib/vla.h modules/vla |
diffstat | 4 files changed, 56 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Thu Aug 07 08:46:52 2014 +0900 +++ b/ChangeLog Thu Aug 07 17:40:01 2014 -0700 @@ -1,3 +1,11 @@ +2014-08-08 Paul Eggert <eggert@cs.ucla.edu> + + vla: new module + GNU RCS can use this, mostly for documentation I expect. See: + http://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00025.html + * MODULES.html.sh: Add vla. + * lib/vla.h, modules/vla: New files. + 2014-08-07 Daiki Ueno <ueno@gnu.org> localename: make gl_locale_name_thread really thread-safe on Windows
--- a/MODULES.html.sh Thu Aug 07 08:46:52 2014 +0900 +++ b/MODULES.html.sh Thu Aug 07 17:40:01 2014 -0700 @@ -2043,6 +2043,7 @@ func_module snippet/unused-parameter func_module va-args func_module vararrays + func_module vla func_end_table element="Sizes of integer types <limits.h>"
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/vla.h Thu Aug 07 17:40:01 2014 -0700 @@ -0,0 +1,27 @@ +/* vla.h - variable length arrays + + Copyright 2014 Free Software Foundation, Inc. + + This program 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. + + This program 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 this program. If not, see <http://www.gnu.org/licenses/>. + + Written by Paul Eggert. */ + +/* A function's argument must point to an array with at least N elements. + Example: 'int main (int argc, char *argv[VLA_ELEMS (argc)]);'. */ + +#ifdef __STDC_NO_VLA__ +# define VLA_ELEMS(n) +#else +# define VLA_ELEMS(n) static n +#endif
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/modules/vla Thu Aug 07 17:40:01 2014 -0700 @@ -0,0 +1,20 @@ +Description: +Macros for dealing with variable length arrays. + +Files: +lib/vla.h + +Depends-on: +vararrays + +configure.ac: + +Makefile.am: + +Include: + +License: +GPL + +Maintainer: +all