Last change fixed the wrong parameter
git-svn-id: svn://svn.cc65.org/cc65/trunk@1035 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -170,14 +170,14 @@ static void ExpandFile (CmdLine* L, const char* Name)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
void InitCmdLine (unsigned* aArgCount, char** aArgVec[], const char* aProgName)
|
void InitCmdLine (int* aArgCount, char** aArgVec[], const char* aProgName)
|
||||||
/* Initialize command line parsing. aArgVec is the argument array terminated by
|
/* Initialize command line parsing. aArgVec is the argument array terminated by
|
||||||
* a NULL pointer (as usual), ArgCount is the number of valid arguments in the
|
* a NULL pointer (as usual), ArgCount is the number of valid arguments in the
|
||||||
* array. Both arguments are remembered in static storage.
|
* array. Both arguments are remembered in static storage.
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
CmdLine L;
|
CmdLine L;
|
||||||
unsigned I;
|
int I;
|
||||||
|
|
||||||
/* Get the program name from argv[0] but strip a path */
|
/* Get the program name from argv[0] but strip a path */
|
||||||
if (*(aArgVec)[0] == 0) {
|
if (*(aArgVec)[0] == 0) {
|
||||||
@@ -284,7 +284,7 @@ const char* GetArg (int* ArgNum, unsigned Len)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
void LongOption (int* ArgNum, const LongOpt* OptTab, unsigned OptCount)
|
void LongOption (unsigned* ArgNum, const LongOpt* OptTab, unsigned OptCount)
|
||||||
/* Handle a long command line option */
|
/* Handle a long command line option */
|
||||||
{
|
{
|
||||||
/* Get the option and the argument (which may be zero) */
|
/* Get the option and the argument (which may be zero) */
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ struct LongOpt {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
void InitCmdLine (unsigned* aArgCount, char** aArgVec[], const char* aProgName);
|
void InitCmdLine (int* aArgCount, char** aArgVec[], const char* aProgName);
|
||||||
/* Initialize command line parsing. aArgVec is the argument array terminated by
|
/* Initialize command line parsing. aArgVec is the argument array terminated by
|
||||||
* a NULL pointer (as usual), ArgCount is the number of valid arguments in the
|
* a NULL pointer (as usual), ArgCount is the number of valid arguments in the
|
||||||
* array. Both arguments are remembered in static storage.
|
* array. Both arguments are remembered in static storage.
|
||||||
@@ -91,7 +91,7 @@ const char* GetArg (int* ArgNum, unsigned Len);
|
|||||||
* option itself or may be separate. Len is the length of the option string.
|
* option itself or may be separate. Len is the length of the option string.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void LongOption (int* ArgNum, const LongOpt* OptTab, unsigned OptCount);
|
void LongOption (unsigned* ArgNum, const LongOpt* OptTab, unsigned OptCount);
|
||||||
/* Handle a long command line option */
|
/* Handle a long command line option */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user