From ca606c6ec168f44de64c4db75745ffffd0da83bf Mon Sep 17 00:00:00 2001 From: Joey Yakimowich-Payne Date: Sun, 8 Jul 2018 10:26:41 +0900 Subject: [PATCH] Make static replacement cross platform --- libnxGen.cfg | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/libnxGen.cfg b/libnxGen.cfg index 175cbe0..3961cae 100644 --- a/libnxGen.cfg +++ b/libnxGen.cfg @@ -98,28 +98,28 @@ replace.touch = "TouchPosition" [ipc.h] defines = true -pipe = "vim -es +'g/^static inline.*{/norm f{d%r;' -es +%print -es +q! $file" +remove_static = true [tls.h] -pipe = "vim -es +'g/^static inline.*{/norm f{d%r;' -es +%print -es +q! $file" +remove_static = true [sm.h] -pipe = "vim -es +'g/^static inline.*{/norm f{d%r;' -es +%print -es +q! $file" +remove_static = true [shmem.h] -pipe = "vim -es +'g/^static inline.*{/norm f{d%r;' -es +%print -es +q! $file" +remove_static = true [condvar.h] -pipe = "vim -es +'g/^static inline.*/norm jd%$$a;' -es +%print -es +q! $file" +remove_static = true [romfs_dev.h] -pipe = "vim -es +'g/^static inline.*/norm jd%$$a;' -es +%print -es +q! $file" +remove_static = true search = "romfs_" replace = "Romfs_" [gfx.h] defines = true -pipe = "vim -es +'g/^static inline.*{/norm f{d%r;' -es +%print -es +q! $file" +remove_static = true [ioctl.h] defines = true @@ -343,15 +343,15 @@ template CONSOLE_CYAN*: string = CONSOLE_ESC("36;1m") template CONSOLE_WHITE*: string = CONSOLE_ESC("37;1m") # Styles -template CONSOLE_COLOR_BOLD*: int = (1 shl 0) -template CONSOLE_COLOR_FAINT*: int = (1 shl 1) -template CONSOLE_ITALIC*: int = (1 shl 2) -template CONSOLE_UNDERLINE*: int = (1 shl 3) -template CONSOLE_BLINK_SLOW*: int =(1 shl 4) -template CONSOLE_BLINK_FAST*: int = (1 shl 5) -template CONSOLE_COLOR_REVERSE*: int = (1 shl 6) -template CONSOLE_CONCEAL*: int = (1 shl 7) -template CONSOLE_CROSSED_OUT*: int = (1 shl 8) +template CONSOLE_COLOR_BOLD*: int = BIT(0) +template CONSOLE_COLOR_FAINT*: int = BIT(1) +template CONSOLE_ITALIC*: int = BIT(2) +template CONSOLE_UNDERLINE*: int = BIT(3) +template CONSOLE_BLINK_SLOW*: int = BIT(4) +template CONSOLE_BLINK_FAST*: int = BIT(5) +template CONSOLE_COLOR_REVERSE*: int = BIT(6) +template CONSOLE_CONCEAL*: int = BIT(7) +template CONSOLE_CROSSED_OUT*: int = BIT(8) """