* lib/canonicalize.h, lib/dfa.h, lib/dirname.h, lib/exclude.h:
* lib/filenamecat.h, lib/malloca.h, lib/modechange.h:
* lib/mountlist.h, lib/pagealign_alloc.h, lib/quotearg.h:
- * lib/readutmp.h, lib/savedir.h:
+ * lib/readutmp.h, lib/savedir.h, lib/sh-quote.h:
Add malloc-related attributes and include stdlib.h as needed.
* lib/dfa.c: Include verify.h.
(assume_nonnull): New macro.
"$", '*', '?' etc. in a special way. */
#include <stddef.h>
+#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
extern char * shell_quote_copy (char *restrict p, const char *string);
/* Returns the freshly allocated quoted string. */
-extern char * shell_quote (const char *string);
+extern char * shell_quote (const char *string)
+ _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE
+ _GL_ATTRIBUTE_RETURNS_NONNULL;
/* Returns a freshly allocated string containing all argument strings, quoted,
separated through spaces. */
-extern char * shell_quote_argv (const char * const *argv);
+extern char * shell_quote_argv (const char * const *argv)
+ _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE
+ _GL_ATTRIBUTE_RETURNS_NONNULL;
#ifdef __cplusplus
}