mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[FREELDR] arcsupp.c: Relicense my code to MIT and use SAL2 annotations.
This commit is contained in:
parent
5b2dcdd03d
commit
93245d385d
2 changed files with 29 additions and 25 deletions
|
@ -1,8 +1,8 @@
|
||||||
/*
|
/*
|
||||||
* PROJECT: FreeLoader
|
* PROJECT: FreeLoader
|
||||||
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
* LICENSE: MIT (https://spdx.org/licenses/MIT)
|
||||||
* PURPOSE: Generic ARC Support Functions
|
* PURPOSE: Generic ARC Support Functions
|
||||||
* COPYRIGHT: Copyright 2019 Hermes Belusca-Maito
|
* COPYRIGHT: Copyright 2019-2024 Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
@ -10,19 +10,21 @@
|
||||||
typedef
|
typedef
|
||||||
ARC_STATUS
|
ARC_STATUS
|
||||||
(__cdecl *ARC_ENTRY_POINT)(
|
(__cdecl *ARC_ENTRY_POINT)(
|
||||||
IN ULONG Argc,
|
_In_ ULONG Argc,
|
||||||
IN PCHAR Argv[],
|
_In_ PCHAR Argv[],
|
||||||
IN PCHAR Envp[]);
|
_In_ PCHAR Envp[]);
|
||||||
|
|
||||||
PCHAR
|
PSTR
|
||||||
GetNextArgumentValue(
|
GetNextArgumentValue(
|
||||||
IN ULONG Argc,
|
_In_ ULONG Argc,
|
||||||
IN PCHAR Argv[],
|
_In_ PCHAR Argv[],
|
||||||
IN OUT PULONG LastIndex OPTIONAL,
|
_Inout_opt_ PULONG LastIndex,
|
||||||
IN PCHAR ArgumentName);
|
_In_ PCSTR ArgumentName);
|
||||||
|
|
||||||
PCHAR
|
PSTR
|
||||||
GetArgumentValue(
|
GetArgumentValue(
|
||||||
IN ULONG Argc,
|
_In_ ULONG Argc,
|
||||||
IN PCHAR Argv[],
|
_In_ PCHAR Argv[],
|
||||||
IN PCHAR ArgumentName);
|
_In_ PCSTR ArgumentName);
|
||||||
|
|
||||||
|
/* EOF */
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
/*
|
/*
|
||||||
* PROJECT: FreeLoader
|
* PROJECT: FreeLoader
|
||||||
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
* LICENSE: MIT (https://spdx.org/licenses/MIT)
|
||||||
* PURPOSE: Generic ARC Support Functions
|
* PURPOSE: Generic ARC Support Functions
|
||||||
* COPYRIGHT: Copyright 2019 Hermes Belusca-Maito
|
* COPYRIGHT: Copyright 2019-2024 Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* INCLUDES ******************************************************************/
|
/* INCLUDES ******************************************************************/
|
||||||
|
@ -11,12 +11,12 @@
|
||||||
|
|
||||||
/* FUNCTIONS *****************************************************************/
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
PCHAR
|
PSTR
|
||||||
GetNextArgumentValue(
|
GetNextArgumentValue(
|
||||||
IN ULONG Argc,
|
_In_ ULONG Argc,
|
||||||
IN PCHAR Argv[],
|
_In_ PCHAR Argv[],
|
||||||
IN OUT PULONG LastIndex OPTIONAL,
|
_Inout_opt_ PULONG LastIndex,
|
||||||
IN PCHAR ArgumentName)
|
_In_ PCSTR ArgumentName)
|
||||||
{
|
{
|
||||||
ULONG i;
|
ULONG i;
|
||||||
SIZE_T ArgNameLen = strlen(ArgumentName);
|
SIZE_T ArgNameLen = strlen(ArgumentName);
|
||||||
|
@ -37,11 +37,13 @@ GetNextArgumentValue(
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
PCHAR
|
PSTR
|
||||||
GetArgumentValue(
|
GetArgumentValue(
|
||||||
IN ULONG Argc,
|
_In_ ULONG Argc,
|
||||||
IN PCHAR Argv[],
|
_In_ PCHAR Argv[],
|
||||||
IN PCHAR ArgumentName)
|
_In_ PCSTR ArgumentName)
|
||||||
{
|
{
|
||||||
return GetNextArgumentValue(Argc, Argv, NULL, ArgumentName);
|
return GetNextArgumentValue(Argc, Argv, NULL, ArgumentName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* EOF */
|
||||||
|
|
Loading…
Reference in a new issue