[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 * 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 */

View file

@ -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 */