mirror of
https://github.com/acpica/acpica/
synced 2025-03-10 08:11:35 +03:00
Moved match argument
date 2000.05.10.22.55.00; author rmoore1; state Exp;
This commit is contained in:
parent
05cc540031
commit
ec19e1318b
@ -310,46 +310,6 @@ DbGetFromHistory (
|
||||
}
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
*
|
||||
* FUNCTION: DbMatchArgument
|
||||
*
|
||||
* PARAMETERS: UserArgument - User command line
|
||||
*
|
||||
* RETURN: Index into command array, -1 if not found
|
||||
*
|
||||
* DESCRIPTION: Search command array for a command match
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
INT32
|
||||
DbMatchArgument (
|
||||
char *UserArgument,
|
||||
ARGUMENT_INFO *Arguments)
|
||||
{
|
||||
UINT32 i;
|
||||
|
||||
|
||||
if (!UserArgument || UserArgument[0] == 0)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
for (i = 0; Arguments[i].Name; i++)
|
||||
{
|
||||
if (STRSTR (Arguments[i].Name, UserArgument) == Arguments[i].Name)
|
||||
{
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
||||
/* Argument not recognized */
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
*
|
||||
* FUNCTION: DbDisplayTableInfo
|
||||
|
Loading…
x
Reference in New Issue
Block a user