Skip to content

Commit

Permalink
Forcing git update
Browse files Browse the repository at this point in the history
  • Loading branch information
ejaquay authored and ed committed Nov 16, 2020
1 parent b416d3e commit e0ac53a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
9 changes: 7 additions & 2 deletions CommandLine.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ static char *NxtTokenPtr;

//-------------------------------------------------------------------
// Parse the VCC command string and set IniFilePath, QuickLoadFile, and
// possibly other things. These Variables are globals defined in config.h
// possibly other things. Variables set by this routine are global and
// are defined in CommandLine.h
//
// vcc.exe [-d[level]] [-i IniFile] [QuickLoadFile]
//
Expand All @@ -67,6 +68,11 @@ int CommandLineSettings(char *CmdString)

static char * ValueRequired = "i";

// Initialize the global variables set by this routine
*QuickLoadFile = '\0';
*IniFilePath = '\0';
ConsoleLogging = 0;

// Get the first token from the command string
token = ParseCmdString(CmdString,ValueRequired);
while (token) {
Expand Down Expand Up @@ -207,4 +213,3 @@ char *GetNextToken ()
// Return address of current token
return token;
}

11 changes: 10 additions & 1 deletion CommandLine.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#ifndef __COMMANDLINE_H__
#define __COMMANDLINE_H__

#ifdef __cplusplus
extern "C" {
#endif

/*
Copyright 2015 by E J Jaquay
This file is part of VCC (Virtual Color Computer).
Expand All @@ -26,9 +30,14 @@ This file is part of VCC (Virtual Color Computer).

char QuickLoadFile[MAX_PATH];
char IniFilePath[MAX_PATH];
int ConsoleLogging = 0;
int ConsoleLogging;

// Get Settings from Command line string (lpCmdLine from WinMain)
int CommandLineSettings(char *);

#ifdef __cplusplus
}
#endif

#endif

0 comments on commit e0ac53a

Please sign in to comment.