From fd7f2732902501ce9cf69416734f0dd5c836a1fe Mon Sep 17 00:00:00 2001 From: Ronald1985 Date: Mon, 7 Aug 2023 15:55:21 +0100 Subject: [PATCH] Added __ prefix to get_key function used in parse_meminfo --- sysinfo.odin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysinfo.odin b/sysinfo.odin index 96991f6..20b1343 100644 --- a/sysinfo.odin +++ b/sysinfo.odin @@ -62,7 +62,7 @@ get_hostname :: proc() -> (string, bool) { return hostname, ok } -get_key :: proc(s: string) -> (string, bool) { +__get_key :: proc(s: string) -> (string, bool) { if len(s) > 1 && s[len(s) - 1] == ':' { // Yes, this ends in a colon and is a key return s[:len(s) - 1], true @@ -80,7 +80,7 @@ parse_meminfo :: proc(meminfo: string) -> (map[string]f64, bool) { last_key := "" for len(s) > 0 { - key, key_ok := get_key(s[0]) + key, key_ok := __get_key(s[0]) if !key_ok { // Must've been a suffix, so let's multiply the last value switch key {