From 2969fdd3758655264941910d6e09a48ca8381b04 Mon Sep 17 00:00:00 2001 From: Edd12321 Date: Sun, 20 Aug 2023 15:39:02 +0300 Subject: [PATCH] Fix Cygwin build (format not found) --- .zrc | 0 src/dispatch.hpp | 8 ++++---- src/main.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) mode change 100755 => 100644 .zrc diff --git a/.zrc b/.zrc old mode 100755 new mode 100644 diff --git a/src/dispatch.hpp b/src/dispatch.hpp index 47fd873..5446536 100644 --- a/src/dispatch.hpp +++ b/src/dispatch.hpp @@ -495,7 +495,7 @@ Command(read) { } } // buffers - char b[(n > 0) ? (n+1) : 1]; + char b[(n > 0) ? (n+1) : 1]; char c; #define GET_INPUT \ buf.clear(); \ @@ -562,9 +562,9 @@ Command(set) { if (argv[i][len-1] == '=') { argv[i][len-1] = '\0'; setvar(argv[i-1], expr(zrc_fmt("(%s)%s(%s)", - getvar(argv[i-1]).data(), - argv[i], - argv[i+1]))); + getvar(argv[i-1]).data(), + argv[i], + argv[i+1]))); } else syntax_error(se); } } diff --git a/src/main.cpp b/src/main.cpp index 95b3dcd..e421d9f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -24,7 +24,7 @@ #include #include -#include +//#include #include #include #include