pcc cought a bad programming idiom I accidentally used
(without realising that it’s a macro expansion, that is)
This commit is contained in:
14
sh.h
14
sh.h
@ -122,7 +122,7 @@
|
|||||||
#define __SCCSID(x) __IDSTRING(sccsid,x)
|
#define __SCCSID(x) __IDSTRING(sccsid,x)
|
||||||
|
|
||||||
#ifdef EXTERN
|
#ifdef EXTERN
|
||||||
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.298 2009/05/16 18:40:09 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.299 2009/05/16 19:34:07 tg Exp $");
|
||||||
#endif
|
#endif
|
||||||
#define MKSH_VERSION "R38 2009/05/16"
|
#define MKSH_VERSION "R38 2009/05/16"
|
||||||
|
|
||||||
@ -333,6 +333,12 @@ typedef uint32_t mksh_uari_t;
|
|||||||
#define PATH_MAX 1024 /* pathname size */
|
#define PATH_MAX 1024 /* pathname size */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef MKSH_MIDNIGHTBSD01ASH_COMPAT
|
||||||
|
#define initvsn__add_1 " MidnightBSD-0.1-ash-compat"
|
||||||
|
#else
|
||||||
|
#define initvsn__add_1 ""
|
||||||
|
#endif
|
||||||
|
|
||||||
EXTERN const char *kshname; /* $0 */
|
EXTERN const char *kshname; /* $0 */
|
||||||
EXTERN pid_t kshpid; /* $$, shell pid */
|
EXTERN pid_t kshpid; /* $$, shell pid */
|
||||||
EXTERN pid_t procpid; /* pid of executing process */
|
EXTERN pid_t procpid; /* pid of executing process */
|
||||||
@ -342,11 +348,7 @@ EXTERN int exstat; /* exit status */
|
|||||||
EXTERN int subst_exstat; /* exit status of last $(..)/`..` */
|
EXTERN int subst_exstat; /* exit status of last $(..)/`..` */
|
||||||
EXTERN const char *safe_prompt; /* safe prompt if PS1 substitution fails */
|
EXTERN const char *safe_prompt; /* safe prompt if PS1 substitution fails */
|
||||||
EXTERN const char initvsn[] I__("KSH_VERSION=@(#)MIRBSD KSH "
|
EXTERN const char initvsn[] I__("KSH_VERSION=@(#)MIRBSD KSH "
|
||||||
MKSH_VERSION
|
MKSH_VERSION initvsn__add_1);
|
||||||
#ifdef MKSH_MIDNIGHTBSD01ASH_COMPAT
|
|
||||||
"MidnightBSD-0.1-ash-compat"
|
|
||||||
#endif
|
|
||||||
);
|
|
||||||
#define KSH_VERSION (initvsn + /* "KSH_VERSION=@(#)" */ 16)
|
#define KSH_VERSION (initvsn + /* "KSH_VERSION=@(#)" */ 16)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user