rewrite comments into one, unified style

This commit is contained in:
maksw committed 2026-06-15 10:17:48 +02:00
1 parent 6260de0085
commit 467a58c9c6
163 files changed
+3560 -2556

No files matched your search

+5 -3
View File
@@ -1,16 +1,18 @@
// ini_parser.c - minimal [section] key=value parser
// Used by the bootloader to read boot.ini and drivers/drivers.ini.
// No heap; caller provides fixed-size output buffers.
// Minimal INI parser. This file accepts the small configuration dialect used by boot.ini and drivers.ini.
#include <string.h>
#include <common/ini_parser.h>
// Checks whether ws.
static inline int IsWs(char c) { return c == ' ' || c == '\t' || c == '\r'; }
// Implements the trim Left operation.
static char* TrimLeft(char* s) {
while (*s && IsWs(*s)) s++;
return s;
}
// Implements the trim Right operation.
static void TrimRight(char* s) {
char* e = s + strlen(s);
while (e > s && IsWs(*(e-1))) *--e = '\0';