Fixed an error
git-svn-id: svn://svn.cc65.org/cc65/trunk@65 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -57,14 +57,14 @@ static unsigned ArgCount = 0;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
void InitCmdLine (char* aArgVec[], unsigned aArgCount)
|
void InitCmdLine (unsigned aArgCount, char* aArgVec[])
|
||||||
/* 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.
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
ArgVec = aArgVec;
|
|
||||||
ArgCount = aArgCount;
|
ArgCount = aArgCount;
|
||||||
|
ArgVec = aArgVec;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -134,6 +134,8 @@ void LongOption (int* ArgNum, const LongOpt* OptTab, unsigned OptCount)
|
|||||||
} else {
|
} else {
|
||||||
OptTab->Func (Opt, 0);
|
OptTab->Func (Opt, 0);
|
||||||
}
|
}
|
||||||
|
/* Done */
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Next table entry */
|
/* Next table entry */
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
/* Structure defining a long option */
|
/* Structure defining a long option */
|
||||||
typedef struct LongOpt LongOpt;
|
typedef struct LongOpt LongOpt;
|
||||||
struct LongOpt {
|
struct LongOpt {
|
||||||
const char* Option;
|
const char* Option;
|
||||||
unsigned ArgCount;
|
unsigned ArgCount;
|
||||||
void (*Func) (const char* Opt, const char* Arg);
|
void (*Func) (const char* Opt, const char* Arg);
|
||||||
};
|
};
|
||||||
@@ -60,7 +60,7 @@ struct LongOpt {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
void InitCmdLine (char* aArgVec[], unsigned aArgCount);
|
void InitCmdLine (unsigned aArgCount, char* aArgVec[]);
|
||||||
/* 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.
|
||||||
|
|||||||
Reference in New Issue
Block a user