Browse Source

Merge 8447d3fb90 into 43e1173e30

pull/861/merge
Raphael Isemann GitHub 7 months ago
parent
commit
efd7565023
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 21 deletions
  1. +0
    -20
      common/JackArgParser.cpp
  2. +0
    -1
      common/JackArgParser.h

+ 0
- 20
common/JackArgParser.cpp View File

@@ -121,26 +121,6 @@ namespace Jack {
return 0;
}

int JackArgParser::GetArgv ( char** argv )
{
//argv must be NULL
if ( argv )
return -1;
//else allocate and fill it
argv = (char**)calloc (fArgv.size(), sizeof(char*));
if (argv == NULL)
{
return -1;
}
for ( unsigned int i = 0; i < fArgv.size(); i++ )
{
argv[i] = (char*)calloc(fArgv[i].length(), sizeof(char));
fill_n ( argv[i], fArgv[i].length() + 1, 0 );
fArgv[i].copy ( argv[i], fArgv[i].length() );
}
return 0;
}

void JackArgParser::DeleteArgv ( const char** argv )
{
unsigned int i;


+ 0
- 1
common/JackArgParser.h View File

@@ -50,7 +50,6 @@ namespace Jack
int GetNumArgv();
int GetArgc();
int GetArgv ( std::vector<std::string>& argv );
int GetArgv ( char** argv );
void DeleteArgv ( const char** argv );
bool ParseParams ( jack_driver_desc_t* desc, JSList** param_list );
void FreeParams ( JSList* param_list );


Loading…
Cancel
Save