Skip to content

Commit 3320c62

Browse files
committed
Added previously missing gnulib files.
Conflicts: ocl.c
1 parent 8313606 commit 3320c62

34 files changed

+4221
-478
lines changed

.gitignore

-4
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ config.sub
2424

2525
mingw32-config.cache
2626

27-
/arg-nonnull.h
28-
/c++defs.h
29-
/warn-on-use.h
30-
3127
*~
3228

3329
ext_deps

arg-nonnull.h

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/* A C macro for declaring that specific arguments must not be NULL.
2+
Copyright (C) 2009-2011 Free Software Foundation, Inc.
3+
4+
This program is free software: you can redistribute it and/or modify it
5+
under the terms of the GNU General Public License as published
6+
by 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 GNU
12+
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+
/* _GL_ARG_NONNULL((n,...,m)) tells the compiler and static analyzer tools
18+
that the values passed as arguments n, ..., m must be non-NULL pointers.
19+
n = 1 stands for the first argument, n = 2 for the second argument etc. */
20+
#ifndef _GL_ARG_NONNULL
21+
# if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || __GNUC__ > 3
22+
# define _GL_ARG_NONNULL(params) __attribute__ ((__nonnull__ params))
23+
# else
24+
# define _GL_ARG_NONNULL(params)
25+
# endif
26+
#endif

lib/c++defs.h c++defs.h

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/* C++ compatible function declaration macros.
2+
Copyright (C) 2010-2011 Free Software Foundation, Inc.
3+
4+
This program is free software: you can redistribute it and/or modify it
5+
under the terms of the GNU General Public License as published
6+
by 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 GNU
12+
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+
117
#ifndef _GL_CXXDEFS_H
218
#define _GL_CXXDEFS_H
319

lib/.gitignore

-9
Original file line numberDiff line numberDiff line change
@@ -1,9 +0,0 @@
1-
/Makefile.am
2-
/dummy.c
3-
/memchr.c
4-
/memchr.valgrind
5-
/memmem.c
6-
/stddef.in.h
7-
/stdint.in.h
8-
/str-two-way.h
9-
/string.in.h

lib/Makefile.am

+313
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,313 @@
1+
## DO NOT EDIT! GENERATED AUTOMATICALLY!
2+
## Process this file with automake to produce Makefile.in.
3+
# Copyright (C) 2002-2011 Free Software Foundation, Inc.
4+
#
5+
# This file is free software, distributed under the terms of the GNU
6+
# General Public License. As a special exception to the GNU General
7+
# Public License, this file may be distributed as part of a program
8+
# that contains a configuration script generated by Autoconf, under
9+
# the same distribution terms as the rest of that program.
10+
#
11+
# Generated by gnulib-tool.
12+
# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=. --no-conditional-dependencies --no-libtool --macro-prefix=gl memmem
13+
14+
AUTOMAKE_OPTIONS = 1.5 gnits
15+
16+
SUBDIRS =
17+
noinst_HEADERS =
18+
noinst_LIBRARIES =
19+
noinst_LTLIBRARIES =
20+
EXTRA_DIST =
21+
BUILT_SOURCES =
22+
SUFFIXES =
23+
MOSTLYCLEANFILES = core *.stackdump
24+
MOSTLYCLEANDIRS =
25+
CLEANFILES =
26+
DISTCLEANFILES =
27+
MAINTAINERCLEANFILES =
28+
29+
AM_CPPFLAGS =
30+
AM_CFLAGS =
31+
32+
noinst_LIBRARIES += libgnu.a
33+
34+
libgnu_a_SOURCES =
35+
libgnu_a_LIBADD = $(gl_LIBOBJS)
36+
libgnu_a_DEPENDENCIES = $(gl_LIBOBJS)
37+
EXTRA_libgnu_a_SOURCES =
38+
39+
## begin gnulib module arg-nonnull
40+
41+
# The BUILT_SOURCES created by this Makefile snippet are not used via #include
42+
# statements but through direct file reference. Therefore this snippet must be
43+
# present in all Makefile.am that need it. This is ensured by the applicability
44+
# 'all' defined above.
45+
46+
BUILT_SOURCES += arg-nonnull.h
47+
# The arg-nonnull.h that gets inserted into generated .h files is the same as
48+
# build-aux/arg-nonnull.h, except that it has the copyright header cut off.
49+
arg-nonnull.h: $(top_srcdir)/./arg-nonnull.h
50+
$(AM_V_GEN)rm -f $@-t $@ && \
51+
sed -n -e '/GL_ARG_NONNULL/,$$p' \
52+
< $(top_srcdir)/./arg-nonnull.h \
53+
> $@-t && \
54+
mv $@-t $@
55+
MOSTLYCLEANFILES += arg-nonnull.h arg-nonnull.h-t
56+
57+
ARG_NONNULL_H=arg-nonnull.h
58+
59+
EXTRA_DIST += $(top_srcdir)/./arg-nonnull.h
60+
61+
## end gnulib module arg-nonnull
62+
63+
## begin gnulib module c++defs
64+
65+
# The BUILT_SOURCES created by this Makefile snippet are not used via #include
66+
# statements but through direct file reference. Therefore this snippet must be
67+
# present in all Makefile.am that need it. This is ensured by the applicability
68+
# 'all' defined above.
69+
70+
BUILT_SOURCES += c++defs.h
71+
# The c++defs.h that gets inserted into generated .h files is the same as
72+
# build-aux/c++defs.h, except that it has the copyright header cut off.
73+
c++defs.h: $(top_srcdir)/./c++defs.h
74+
$(AM_V_GEN)rm -f $@-t $@ && \
75+
sed -n -e '/_GL_CXXDEFS/,$$p' \
76+
< $(top_srcdir)/./c++defs.h \
77+
> $@-t && \
78+
mv $@-t $@
79+
MOSTLYCLEANFILES += c++defs.h c++defs.h-t
80+
81+
CXXDEFS_H=c++defs.h
82+
83+
EXTRA_DIST += $(top_srcdir)/./c++defs.h
84+
85+
## end gnulib module c++defs
86+
87+
## begin gnulib module memchr
88+
89+
90+
EXTRA_DIST += memchr.c memchr.valgrind
91+
92+
EXTRA_libgnu_a_SOURCES += memchr.c
93+
94+
## end gnulib module memchr
95+
96+
## begin gnulib module memmem-simple
97+
98+
99+
EXTRA_DIST += memmem.c str-two-way.h
100+
101+
EXTRA_libgnu_a_SOURCES += memmem.c
102+
103+
## end gnulib module memmem-simple
104+
105+
## begin gnulib module stddef
106+
107+
BUILT_SOURCES += $(STDDEF_H)
108+
109+
# We need the following in order to create <stddef.h> when the system
110+
# doesn't have one that works with the given compiler.
111+
if GL_GENERATE_STDDEF_H
112+
stddef.h: stddef.in.h $(top_builddir)/config.status
113+
$(AM_V_GEN)rm -f $@-t $@ && \
114+
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
115+
sed -e 's|@''GUARD_PREFIX''@|GL|g' \
116+
-e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
117+
-e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
118+
-e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
119+
-e 's|@''NEXT_STDDEF_H''@|$(NEXT_STDDEF_H)|g' \
120+
-e 's|@''HAVE_WCHAR_T''@|$(HAVE_WCHAR_T)|g' \
121+
-e 's|@''REPLACE_NULL''@|$(REPLACE_NULL)|g' \
122+
< $(srcdir)/stddef.in.h; \
123+
} > $@-t && \
124+
mv $@-t $@
125+
else
126+
stddef.h: $(top_builddir)/config.status
127+
rm -f $@
128+
endif
129+
MOSTLYCLEANFILES += stddef.h stddef.h-t
130+
131+
EXTRA_DIST += stddef.in.h
132+
133+
## end gnulib module stddef
134+
135+
## begin gnulib module stdint
136+
137+
BUILT_SOURCES += $(STDINT_H)
138+
139+
# We need the following in order to create <stdint.h> when the system
140+
# doesn't have one that works with the given compiler.
141+
if GL_GENERATE_STDINT_H
142+
stdint.h: stdint.in.h $(top_builddir)/config.status
143+
$(AM_V_GEN)rm -f $@-t $@ && \
144+
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
145+
sed -e 's|@''GUARD_PREFIX''@|GL|g' \
146+
-e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \
147+
-e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
148+
-e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
149+
-e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
150+
-e 's|@''NEXT_STDINT_H''@|$(NEXT_STDINT_H)|g' \
151+
-e 's/@''HAVE_SYS_TYPES_H''@/$(HAVE_SYS_TYPES_H)/g' \
152+
-e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \
153+
-e 's/@''HAVE_SYS_INTTYPES_H''@/$(HAVE_SYS_INTTYPES_H)/g' \
154+
-e 's/@''HAVE_SYS_BITYPES_H''@/$(HAVE_SYS_BITYPES_H)/g' \
155+
-e 's/@''HAVE_WCHAR_H''@/$(HAVE_WCHAR_H)/g' \
156+
-e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \
157+
-e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/$(HAVE_UNSIGNED_LONG_LONG_INT)/g' \
158+
-e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \
159+
-e 's/@''BITSIZEOF_PTRDIFF_T''@/$(BITSIZEOF_PTRDIFF_T)/g' \
160+
-e 's/@''PTRDIFF_T_SUFFIX''@/$(PTRDIFF_T_SUFFIX)/g' \
161+
-e 's/@''BITSIZEOF_SIG_ATOMIC_T''@/$(BITSIZEOF_SIG_ATOMIC_T)/g' \
162+
-e 's/@''HAVE_SIGNED_SIG_ATOMIC_T''@/$(HAVE_SIGNED_SIG_ATOMIC_T)/g' \
163+
-e 's/@''SIG_ATOMIC_T_SUFFIX''@/$(SIG_ATOMIC_T_SUFFIX)/g' \
164+
-e 's/@''BITSIZEOF_SIZE_T''@/$(BITSIZEOF_SIZE_T)/g' \
165+
-e 's/@''SIZE_T_SUFFIX''@/$(SIZE_T_SUFFIX)/g' \
166+
-e 's/@''BITSIZEOF_WCHAR_T''@/$(BITSIZEOF_WCHAR_T)/g' \
167+
-e 's/@''HAVE_SIGNED_WCHAR_T''@/$(HAVE_SIGNED_WCHAR_T)/g' \
168+
-e 's/@''WCHAR_T_SUFFIX''@/$(WCHAR_T_SUFFIX)/g' \
169+
-e 's/@''BITSIZEOF_WINT_T''@/$(BITSIZEOF_WINT_T)/g' \
170+
-e 's/@''HAVE_SIGNED_WINT_T''@/$(HAVE_SIGNED_WINT_T)/g' \
171+
-e 's/@''WINT_T_SUFFIX''@/$(WINT_T_SUFFIX)/g' \
172+
< $(srcdir)/stdint.in.h; \
173+
} > $@-t && \
174+
mv $@-t $@
175+
else
176+
stdint.h: $(top_builddir)/config.status
177+
rm -f $@
178+
endif
179+
MOSTLYCLEANFILES += stdint.h stdint.h-t
180+
181+
EXTRA_DIST += stdint.in.h
182+
183+
## end gnulib module stdint
184+
185+
## begin gnulib module string
186+
187+
BUILT_SOURCES += string.h
188+
189+
# We need the following in order to create <string.h> when the system
190+
# doesn't have one that works with the given compiler.
191+
string.h: string.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
192+
$(AM_V_GEN)rm -f $@-t $@ && \
193+
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
194+
sed -e 's|@''GUARD_PREFIX''@|GL|g' \
195+
-e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
196+
-e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
197+
-e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
198+
-e 's|@''NEXT_STRING_H''@|$(NEXT_STRING_H)|g' \
199+
-e 's/@''GNULIB_MBSLEN''@/$(GNULIB_MBSLEN)/g' \
200+
-e 's/@''GNULIB_MBSNLEN''@/$(GNULIB_MBSNLEN)/g' \
201+
-e 's/@''GNULIB_MBSCHR''@/$(GNULIB_MBSCHR)/g' \
202+
-e 's/@''GNULIB_MBSRCHR''@/$(GNULIB_MBSRCHR)/g' \
203+
-e 's/@''GNULIB_MBSSTR''@/$(GNULIB_MBSSTR)/g' \
204+
-e 's/@''GNULIB_MBSCASECMP''@/$(GNULIB_MBSCASECMP)/g' \
205+
-e 's/@''GNULIB_MBSNCASECMP''@/$(GNULIB_MBSNCASECMP)/g' \
206+
-e 's/@''GNULIB_MBSPCASECMP''@/$(GNULIB_MBSPCASECMP)/g' \
207+
-e 's/@''GNULIB_MBSCASESTR''@/$(GNULIB_MBSCASESTR)/g' \
208+
-e 's/@''GNULIB_MBSCSPN''@/$(GNULIB_MBSCSPN)/g' \
209+
-e 's/@''GNULIB_MBSPBRK''@/$(GNULIB_MBSPBRK)/g' \
210+
-e 's/@''GNULIB_MBSSPN''@/$(GNULIB_MBSSPN)/g' \
211+
-e 's/@''GNULIB_MBSSEP''@/$(GNULIB_MBSSEP)/g' \
212+
-e 's/@''GNULIB_MBSTOK_R''@/$(GNULIB_MBSTOK_R)/g' \
213+
-e 's/@''GNULIB_MEMCHR''@/$(GNULIB_MEMCHR)/g' \
214+
-e 's/@''GNULIB_MEMMEM''@/$(GNULIB_MEMMEM)/g' \
215+
-e 's/@''GNULIB_MEMPCPY''@/$(GNULIB_MEMPCPY)/g' \
216+
-e 's/@''GNULIB_MEMRCHR''@/$(GNULIB_MEMRCHR)/g' \
217+
-e 's/@''GNULIB_RAWMEMCHR''@/$(GNULIB_RAWMEMCHR)/g' \
218+
-e 's/@''GNULIB_STPCPY''@/$(GNULIB_STPCPY)/g' \
219+
-e 's/@''GNULIB_STPNCPY''@/$(GNULIB_STPNCPY)/g' \
220+
-e 's/@''GNULIB_STRCHRNUL''@/$(GNULIB_STRCHRNUL)/g' \
221+
-e 's/@''GNULIB_STRDUP''@/$(GNULIB_STRDUP)/g' \
222+
-e 's/@''GNULIB_STRNCAT''@/$(GNULIB_STRNCAT)/g' \
223+
-e 's/@''GNULIB_STRNDUP''@/$(GNULIB_STRNDUP)/g' \
224+
-e 's/@''GNULIB_STRNLEN''@/$(GNULIB_STRNLEN)/g' \
225+
-e 's/@''GNULIB_STRPBRK''@/$(GNULIB_STRPBRK)/g' \
226+
-e 's/@''GNULIB_STRSEP''@/$(GNULIB_STRSEP)/g' \
227+
-e 's/@''GNULIB_STRSTR''@/$(GNULIB_STRSTR)/g' \
228+
-e 's/@''GNULIB_STRCASESTR''@/$(GNULIB_STRCASESTR)/g' \
229+
-e 's/@''GNULIB_STRTOK_R''@/$(GNULIB_STRTOK_R)/g' \
230+
-e 's/@''GNULIB_STRERROR''@/$(GNULIB_STRERROR)/g' \
231+
-e 's/@''GNULIB_STRERROR_R''@/$(GNULIB_STRERROR_R)/g' \
232+
-e 's/@''GNULIB_STRSIGNAL''@/$(GNULIB_STRSIGNAL)/g' \
233+
-e 's/@''GNULIB_STRVERSCMP''@/$(GNULIB_STRVERSCMP)/g' \
234+
< $(srcdir)/string.in.h | \
235+
sed -e 's|@''HAVE_MBSLEN''@|$(HAVE_MBSLEN)|g' \
236+
-e 's|@''HAVE_MEMCHR''@|$(HAVE_MEMCHR)|g' \
237+
-e 's|@''HAVE_DECL_MEMMEM''@|$(HAVE_DECL_MEMMEM)|g' \
238+
-e 's|@''HAVE_MEMPCPY''@|$(HAVE_MEMPCPY)|g' \
239+
-e 's|@''HAVE_DECL_MEMRCHR''@|$(HAVE_DECL_MEMRCHR)|g' \
240+
-e 's|@''HAVE_RAWMEMCHR''@|$(HAVE_RAWMEMCHR)|g' \
241+
-e 's|@''HAVE_STPCPY''@|$(HAVE_STPCPY)|g' \
242+
-e 's|@''HAVE_STPNCPY''@|$(HAVE_STPNCPY)|g' \
243+
-e 's|@''HAVE_STRCHRNUL''@|$(HAVE_STRCHRNUL)|g' \
244+
-e 's|@''HAVE_DECL_STRDUP''@|$(HAVE_DECL_STRDUP)|g' \
245+
-e 's|@''HAVE_DECL_STRNDUP''@|$(HAVE_DECL_STRNDUP)|g' \
246+
-e 's|@''HAVE_DECL_STRNLEN''@|$(HAVE_DECL_STRNLEN)|g' \
247+
-e 's|@''HAVE_STRPBRK''@|$(HAVE_STRPBRK)|g' \
248+
-e 's|@''HAVE_STRSEP''@|$(HAVE_STRSEP)|g' \
249+
-e 's|@''HAVE_STRCASESTR''@|$(HAVE_STRCASESTR)|g' \
250+
-e 's|@''HAVE_DECL_STRTOK_R''@|$(HAVE_DECL_STRTOK_R)|g' \
251+
-e 's|@''HAVE_DECL_STRERROR_R''@|$(HAVE_DECL_STRERROR_R)|g' \
252+
-e 's|@''HAVE_DECL_STRSIGNAL''@|$(HAVE_DECL_STRSIGNAL)|g' \
253+
-e 's|@''HAVE_STRVERSCMP''@|$(HAVE_STRVERSCMP)|g' \
254+
-e 's|@''REPLACE_STPNCPY''@|$(REPLACE_STPNCPY)|g' \
255+
-e 's|@''REPLACE_MEMCHR''@|$(REPLACE_MEMCHR)|g' \
256+
-e 's|@''REPLACE_MEMMEM''@|$(REPLACE_MEMMEM)|g' \
257+
-e 's|@''REPLACE_STRCASESTR''@|$(REPLACE_STRCASESTR)|g' \
258+
-e 's|@''REPLACE_STRCHRNUL''@|$(REPLACE_STRCHRNUL)|g' \
259+
-e 's|@''REPLACE_STRDUP''@|$(REPLACE_STRDUP)|g' \
260+
-e 's|@''REPLACE_STRSTR''@|$(REPLACE_STRSTR)|g' \
261+
-e 's|@''REPLACE_STRERROR''@|$(REPLACE_STRERROR)|g' \
262+
-e 's|@''REPLACE_STRERROR_R''@|$(REPLACE_STRERROR_R)|g' \
263+
-e 's|@''REPLACE_STRNCAT''@|$(REPLACE_STRNCAT)|g' \
264+
-e 's|@''REPLACE_STRNDUP''@|$(REPLACE_STRNDUP)|g' \
265+
-e 's|@''REPLACE_STRNLEN''@|$(REPLACE_STRNLEN)|g' \
266+
-e 's|@''REPLACE_STRSIGNAL''@|$(REPLACE_STRSIGNAL)|g' \
267+
-e 's|@''REPLACE_STRTOK_R''@|$(REPLACE_STRTOK_R)|g' \
268+
-e 's|@''UNDEFINE_STRTOK_R''@|$(UNDEFINE_STRTOK_R)|g' \
269+
-e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
270+
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
271+
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
272+
< $(srcdir)/string.in.h; \
273+
} > $@-t && \
274+
mv $@-t $@
275+
MOSTLYCLEANFILES += string.h string.h-t
276+
277+
EXTRA_DIST += string.in.h
278+
279+
## end gnulib module string
280+
281+
## begin gnulib module warn-on-use
282+
283+
BUILT_SOURCES += warn-on-use.h
284+
# The warn-on-use.h that gets inserted into generated .h files is the same as
285+
# build-aux/warn-on-use.h, except that it has the copyright header cut off.
286+
warn-on-use.h: $(top_srcdir)/./warn-on-use.h
287+
$(AM_V_GEN)rm -f $@-t $@ && \
288+
sed -n -e '/^.ifndef/,$$p' \
289+
< $(top_srcdir)/./warn-on-use.h \
290+
> $@-t && \
291+
mv $@-t $@
292+
MOSTLYCLEANFILES += warn-on-use.h warn-on-use.h-t
293+
294+
WARN_ON_USE_H=warn-on-use.h
295+
296+
EXTRA_DIST += $(top_srcdir)/./warn-on-use.h
297+
298+
## end gnulib module warn-on-use
299+
300+
## begin gnulib module dummy
301+
302+
libgnu_a_SOURCES += dummy.c
303+
304+
## end gnulib module dummy
305+
306+
307+
mostlyclean-local: mostlyclean-generic
308+
@for dir in '' $(MOSTLYCLEANDIRS); do \
309+
if test -n "$$dir" && test -d $$dir; then \
310+
echo "rmdir $$dir"; rmdir $$dir; \
311+
fi; \
312+
done; \
313+
:

lib/arg-nonnull.h

-10
This file was deleted.

0 commit comments

Comments
 (0)