Removed dead code
git-svn-id: svn://svn.cc65.org/cc65/trunk@2593 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -77,20 +77,10 @@ typedef struct {
|
|||||||
static void NewCmdLine (CmdLine* L)
|
static void NewCmdLine (CmdLine* L)
|
||||||
/* Initialize a CmdLine struct */
|
/* Initialize a CmdLine struct */
|
||||||
{
|
{
|
||||||
unsigned I;
|
|
||||||
|
|
||||||
/* Initialize the struct */
|
/* Initialize the struct */
|
||||||
L->Size = 8;
|
L->Size = 8;
|
||||||
L->Count = 0;
|
L->Count = 0;
|
||||||
L->Vec = xmalloc (L->Size * sizeof (L->Vec[0]));
|
L->Vec = xmalloc (L->Size * sizeof (L->Vec[0]));
|
||||||
|
|
||||||
/* Copy the arguments. We have to allocate them on free store, otherwise
|
|
||||||
* we would have to keep track which one is on free store and which not,
|
|
||||||
* which is a lot more overhead.
|
|
||||||
*/
|
|
||||||
for (I = 0; I < L->Count; ++I) {
|
|
||||||
L->Vec[I] = xstrdup (ArgVec[I]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user