summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f7cfa92)
Pull in the Gnulib snprintf and flexmember modules to get better
portability improvements related to these C features.
Update dxcommon to get some recent bug fixes.
-Subproject commit 1688bad1e5dc89cacf33bc426c92a4abf2bc0647
+Subproject commit e218d4445fa5a2015163cf50d847980ff3240b36
/00gnulib.m4
/absolute-header.m4
/00gnulib.m4
/absolute-header.m4
/extensions.m4
/extern-inline.m4
/extensions.m4
/extern-inline.m4
+/flexmember.m4
+/float_h.m4
/getdelim.m4
/getline.m4
/getopt.m4
/getdelim.m4
/getline.m4
/getopt.m4
/inline.m4
/intl-thread-locale.m4
/intlmacosx.m4
/inline.m4
/intl-thread-locale.m4
/intlmacosx.m4
/lib-ld.m4
/lib-link.m4
/lib-prefix.m4
/lib-ld.m4
/lib-link.m4
/lib-prefix.m4
/ltsugar.m4
/ltversion.m4
/lt~obsolete.m4
/ltsugar.m4
/ltversion.m4
/lt~obsolete.m4
/mbrtowc.m4
/mbsinit.m4
/mbstate_t.m4
/mbswidth.m4
/mbrtowc.m4
/mbsinit.m4
/mbstate_t.m4
/mbswidth.m4
+/memchr.m4
+/mmap-anon.m4
/multiarch.m4
/nls.m4
/nocrash.m4
/off_t.m4
/pid_t.m4
/po.m4
/multiarch.m4
/nls.m4
/nocrash.m4
/off_t.m4
/pid_t.m4
/po.m4
/progtest.m4
/pthread_rwlock_rdlock.m4
/readline.m4
/setlocale_null.m4
/progtest.m4
/pthread_rwlock_rdlock.m4
/readline.m4
/setlocale_null.m4
+/size_max.m4
+/snprintf.m4
/ssize_t.m4
/std-gnu11.m4
/stdbool.m4
/stddef_h.m4
/stdint.m4
/ssize_t.m4
/std-gnu11.m4
/stdbool.m4
/stddef_h.m4
/stdint.m4
/sys_types_h.m4
/threadlib.m4
/tls.m4
/unistd_h.m4
/sys_types_h.m4
/threadlib.m4
/tls.m4
/unistd_h.m4
/visibility.m4
/warn-on-use.m4
/wchar_h.m4
/visibility.m4
/warn-on-use.m4
/wchar_h.m4
/wctype_h.m4
/wcwidth.m4
/wint_t.m4
/wctype_h.m4
/wcwidth.m4
/wint_t.m4
# --libtool \
# --macro-prefix=gl \
# --no-vc-files \
# --libtool \
# --macro-prefix=gl \
# --no-vc-files \
# getopt-gnu \
# gettext-h \
# gitlog-to-changelog \
# getopt-gnu \
# gettext-h \
# gitlog-to-changelog \
# lock \
# mbswidth \
# readline \
# lock \
# mbswidth \
# readline \
# striconv \
# tls
# Specification in the form of a few gnulib-tool.m4 macro invocations:
gl_LOCAL_DIR([])
gl_MODULES([
# striconv \
# tls
# Specification in the form of a few gnulib-tool.m4 macro invocations:
gl_LOCAL_DIR([])
gl_MODULES([
getopt-gnu
gettext-h
gitlog-to-changelog
getopt-gnu
gettext-h
gitlog-to-changelog
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <glthread/lock.h>
#include <glthread/tls.h>
#include <glthread/lock.h>
#include <glthread/tls.h>
struct err_state {
struct cdecl_error err;
size_t nstr;
struct err_state {
struct cdecl_error err;
size_t nstr;
+ char str[FLEXIBLE_ARRAY_MEMBER];
};
/* This error is reserved for extremely dire out-of-memory conditions. */
};
/* This error is reserved for extremely dire out-of-memory conditions. */
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stdbool.h>
#include <assert.h>
#include <stdbool.h>
#include <assert.h>
rc = snprintf(buf, n, "%s", a->vla);
ret += cdecl__advance(&buf, &n, rc);
} else if (a->length) {
rc = snprintf(buf, n, "%s", a->vla);
ret += cdecl__advance(&buf, &n, rc);
} else if (a->length) {
- rc = snprintf(buf, n, "%ju", a->length);
+ rc = snprintf(buf, n, "%" PRIuMAX, a->length);
ret += cdecl__advance(&buf, &n, rc);
}
ret += cdecl__advance(&buf, &n, rc);
}