1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-08 15:29:37 +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:
cuz 2000-06-14 07:35:00 +00:00
parent 93be370fa4
commit b9ce81c7e3
2 changed files with 6 additions and 4 deletions

View File

@ -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 */

View File

@ -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.