[FREELDR] arcsupp.c: Relicense my code to MIT and use SAL2 annotations.

This commit is contained in:
Hermès Bélusca-Maïto 2024-04-16 13:52:23 +02:00
parent 5b2dcdd03d
commit 93245d385d
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
2 changed files with 29 additions and 25 deletions

View file

@ -1,8 +1,8 @@
/*
* 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
* COPYRIGHT: Copyright 2019 Hermes Belusca-Maito
* COPYRIGHT: Copyright 2019-2024 Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
*/
#pragma once
@ -10,19 +10,21 @@
typedef
ARC_STATUS
(__cdecl *ARC_ENTRY_POINT)(
IN ULONG Argc,
IN PCHAR Argv[],
IN PCHAR Envp[]);
_In_ ULONG Argc,
_In_ PCHAR Argv[],
_In_ PCHAR Envp[]);
PCHAR
PSTR
GetNextArgumentValue(
IN ULONG Argc,
IN PCHAR Argv[],
IN OUT PULONG LastIndex OPTIONAL,
IN PCHAR ArgumentName);
_In_ ULONG Argc,
_In_ PCHAR Argv[],
_Inout_opt_ PULONG LastIndex,
_In_ PCSTR ArgumentName);
PCHAR
PSTR
GetArgumentValue(
IN ULONG Argc,
IN PCHAR Argv[],
IN PCHAR ArgumentName);
_In_ ULONG Argc,
_In_ PCHAR Argv[],
_In_ PCSTR ArgumentName);
/* EOF */

View file

@ -1,8 +1,8 @@
/*
* 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
* COPYRIGHT: Copyright 2019 Hermes Belusca-Maito
* COPYRIGHT: Copyright 2019-2024 Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
*/
/* INCLUDES ******************************************************************/
@ -11,12 +11,12 @@
/* FUNCTIONS *****************************************************************/
PCHAR
PSTR
GetNextArgumentValue(
IN ULONG Argc,
IN PCHAR Argv[],
IN OUT PULONG LastIndex OPTIONAL,
IN PCHAR ArgumentName)
_In_ ULONG Argc,
_In_ PCHAR Argv[],
_Inout_opt_ PULONG LastIndex,
_In_ PCSTR ArgumentName)
{
ULONG i;
SIZE_T ArgNameLen = strlen(ArgumentName);
@ -37,11 +37,13 @@ GetNextArgumentValue(
return NULL;
}
PCHAR
PSTR
GetArgumentValue(
IN ULONG Argc,
IN PCHAR Argv[],
IN PCHAR ArgumentName)
_In_ ULONG Argc,
_In_ PCHAR Argv[],
_In_ PCSTR ArgumentName)
{
return GetNextArgumentValue(Argc, Argv, NULL, ArgumentName);
}
/* EOF */