move version definition into extra file
This commit is contained in:
parent
3a9ac3916a
commit
711496f6fb
4
main.c
4
main.c
|
@ -6,9 +6,7 @@
|
||||||
#define EXTERN /* define EXTERNs in sh.h */
|
#define EXTERN /* define EXTERNs in sh.h */
|
||||||
#include "sh.h"
|
#include "sh.h"
|
||||||
|
|
||||||
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.42 2006/07/23 14:35:44 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.43 2006/08/01 12:22:26 tg Exp $");
|
||||||
|
|
||||||
#define MKSH_VERSION "@(#)MIRBSD KSH R27 2006/07/23"
|
|
||||||
|
|
||||||
extern char **environ;
|
extern char **environ;
|
||||||
|
|
||||||
|
|
4
sh.h
4
sh.h
|
@ -8,7 +8,7 @@
|
||||||
/* $OpenBSD: c_test.h,v 1.4 2004/12/20 11:34:26 otto Exp $ */
|
/* $OpenBSD: c_test.h,v 1.4 2004/12/20 11:34:26 otto Exp $ */
|
||||||
/* $OpenBSD: tty.h,v 1.5 2004/12/20 11:34:26 otto Exp $ */
|
/* $OpenBSD: tty.h,v 1.5 2004/12/20 11:34:26 otto Exp $ */
|
||||||
|
|
||||||
#define MKSH_SH_H_ID "$MirOS: src/bin/mksh/sh.h,v 1.27 2006/06/21 19:35:38 tg Exp $"
|
#define MKSH_SH_H_ID "$MirOS: src/bin/mksh/sh.h,v 1.28 2006/08/01 12:22:26 tg Exp $"
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
|
|
||||||
|
@ -1269,6 +1269,8 @@ EXTERN struct termios tty_state; /* saved tty state */
|
||||||
extern void tty_init(int);
|
extern void tty_init(int);
|
||||||
extern void tty_close(void);
|
extern void tty_close(void);
|
||||||
|
|
||||||
|
#include "version.h"
|
||||||
|
|
||||||
/* be sure not to interfere with anyone else's idea about EXTERN */
|
/* be sure not to interfere with anyone else's idea about EXTERN */
|
||||||
#ifdef EXTERN_DEFINED
|
#ifdef EXTERN_DEFINED
|
||||||
# undef EXTERN_DEFINED
|
# undef EXTERN_DEFINED
|
||||||
|
|
Loading…
Reference in New Issue