Change versions.

Save argv[0] in global argv0.
This commit is contained in:
Guido van Rossum 1992-01-19 16:27:42 +00:00
parent 8ec25b410c
commit 450ed49a89

View File

@ -26,12 +26,12 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "patchlevel.h"
#define VERSION "0.9.%d alpha (%s)"
#define VERSION "0.9.%d (%s)"
#ifdef __DATE__
#define DATE __DATE__
#else
#define DATE ">= Dec 27 1991"
#define DATE ">= 1 Jan 1992"
#endif
#include <stdio.h>
@ -42,6 +42,8 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
char version[80];
char *argv0;
/*ARGSUSED*/
void
initargs(p_argc, p_argv)
@ -50,6 +52,8 @@ initargs(p_argc, p_argv)
{
sprintf(version, VERSION, PATCHLEVEL, DATE);
argv0 = **p_argv;
#ifdef USE_STDWIN
wargs(p_argc, p_argv);
#endif