Print this page
remove support for non-ANSI compilation
*** 18,27 ****
--- 18,29 ----
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
+ * Copyright 2014 Garrett D'Amore <garrett@damore.org>
+ *
* Copyright 2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
*** 29,40 ****
*/
#ifndef _WORDEXP_H
#define _WORDEXP_H
- #pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/feature_tests.h>
#include <sys/types.h>
#ifdef __cplusplus
extern "C" {
--- 31,40 ----
*** 68,84 ****
#define WRDE_CMDSUB (5) /* prohibited $() */
#define WRDE_NOSPACE (6) /* no memory */
#define WRDE_SYNTAX (7) /* bad syntax */
#define WRDE_NOSYS (8) /* function not supported (XPG4) */
- #ifdef __STDC__
extern int wordexp(const char *_RESTRICT_KYWD, wordexp_t *_RESTRICT_KYWD, int);
extern void wordfree(wordexp_t *);
- #else
- extern int wordexp();
- extern void wordfree();
- #endif
#ifdef __cplusplus
}
#endif
--- 68,79 ----