mirror of
https://github.com/cc65/cc65.git
synced 2024-07-04 13:29:35 +00:00
Fixed an error
git-svn-id: svn://svn.cc65.org/cc65/trunk@65 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
93be370fa4
commit
b9ce81c7e3
@ -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
|
||||
* a NULL pointer (as usual), ArgCount is the number of valid arguments in the
|
||||
* array. Both arguments are remembered in static storage.
|
||||
*/
|
||||
{
|
||||
ArgVec = aArgVec;
|
||||
ArgCount = aArgCount;
|
||||
ArgVec = aArgVec;
|
||||
}
|
||||
|
||||
|
||||
@ -134,6 +134,8 @@ void LongOption (int* ArgNum, const LongOpt* OptTab, unsigned OptCount)
|
||||
} else {
|
||||
OptTab->Func (Opt, 0);
|
||||
}
|
||||
/* Done */
|
||||
return;
|
||||
}
|
||||
|
||||
/* Next table entry */
|
||||
|
@ -47,7 +47,7 @@
|
||||
/* Structure defining a long option */
|
||||
typedef struct LongOpt LongOpt;
|
||||
struct LongOpt {
|
||||
const char* Option;
|
||||
const char* Option;
|
||||
unsigned ArgCount;
|
||||
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
|
||||
* a NULL pointer (as usual), ArgCount is the number of valid arguments in the
|
||||
* array. Both arguments are remembered in static storage.
|
||||
|
Loading…
Reference in New Issue
Block a user