Remove stb_sprintf
All checks were successful
Build / build (push) Successful in 2m45s

This commit is contained in:
Mathieu Strypsteen 2024-12-18 13:42:12 +01:00
parent 6119ebd5b9
commit 68684e3817
2 changed files with 12 additions and 1918 deletions

View file

@ -1,17 +1,17 @@
#include <acpi.h>
#define STB_SPRINTF_IMPLEMENTATION
#include "sprintf.h"
extern void AcpiOsPrint(const char* str);
#include <acclib.h>
void AcpiOsPrintf(const char* format, ...) {
va_list args;
va_start(args, format);
AcpiOsVprintf(format, args);
va_end(args);
extern void AcpiOsPrint(const char *str);
void AcpiOsPrintf(const char *format, ...) {
va_list args;
va_start(args, format);
AcpiOsVprintf(format, args);
va_end(args);
}
void AcpiOsVprintf(const char* format, va_list args) {
char buffer[4096];
stbsp_vsnprintf(buffer, 4096, format, args);
AcpiOsPrint(buffer);
void AcpiOsVprintf(const char *format, va_list args) {
char buffer[4096];
vsnprintf(buffer, 4096, format, args);
AcpiOsPrint(buffer);
}

File diff suppressed because it is too large Load diff