Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 450ed49

Browse files
committed
Change versions.
Save argv[0] in global argv0.
1 parent 8ec25b4 commit 450ed49

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Modules/config.c.in

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2626

2727
#include "patchlevel.h"
2828

29-
#define VERSION "0.9.%d alpha (%s)"
29+
#define VERSION "0.9.%d (%s)"
3030

3131
#ifdef __DATE__
3232
#define DATE __DATE__
3333
#else
34-
#define DATE ">= Dec 27 1991"
34+
#define DATE ">= 1 Jan 1992"
3535
#endif
3636

3737
#include <stdio.h>
@@ -42,6 +42,8 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
4242

4343
char version[80];
4444

45+
char *argv0;
46+
4547
/*ARGSUSED*/
4648
void
4749
initargs(p_argc, p_argv)
@@ -50,6 +52,8 @@ initargs(p_argc, p_argv)
5052
{
5153
sprintf(version, VERSION, PATCHLEVEL, DATE);
5254

55+
argv0 = **p_argv;
56+
5357
#ifdef USE_STDWIN
5458
wargs(p_argc, p_argv);
5559
#endif

0 commit comments

Comments
 (0)