aports/testing/zrc/fix-basename.patch
Celeste 62b2a9079c testing/zrc: new aport
https://github.com/Edd12321/zrc
UNIX shell and scripting language with syntax similar to Tcl
2025-11-11 08:17:07 +00:00

13 lines
252 B
Diff

--- a/src/main.cpp
+++ b/src/main.cpp
@@ -15,6 +15,9 @@
#include "globals.hpp"
#include "config.hpp"
+#define basename(path) \
+ (strrchr((path),'/') ? strrchr((path),'/')+1 : (path))
+
#include "syn.cpp"
#include "vars.cpp"
#include "list.cpp"