From 1227de8fe71dc7db980deec9d553fca9bf406f7e Mon Sep 17 00:00:00 2001 From: Arsenic Blood <127725014+GutPuncher@users.noreply.github.com> Date: Fri, 20 Oct 2023 23:41:24 -0400 Subject: [PATCH 1/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 96326874..7d59a95f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # ZealOS -[![Discord](https://img.shields.io/discord/934200098144022609?color=7289DA&label=Discord&logo=discord&logoColor=white)](https://discord.gg/rK6U3xdr7D) [![](https://img.shields.io/badge/wiki-documentation-forestgreen)](https://github.com/Zeal-Operating-System/ZealOS/wiki) +[![Discord](https://img.shields.io/discord/934200098144022609?color=7289DA&label=Discord&logo=discord&logoColor=white)](https://discord.gg/rK6U3xdr7D) [![](https://img.shields.io/badge/wiki-documentation-forestgreen)](https://zeal-operating-system.github.io/ZealOS-wiki/) The Zeal Operating System is a modernized fork of the 64-bit Temple Operating System. Guiding principles of development include transparency, full user control, and adherence to public-domain/open-source implementations. From cf73aa20290f5fc8c681ca728004b3ee4578dccf Mon Sep 17 00:00:00 2001 From: Arsenic Blood <127725014+GutPuncher@users.noreply.github.com> Date: Fri, 20 Oct 2023 23:47:23 -0400 Subject: [PATCH 2/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7d59a95f..08c6cae6 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Features in development include: * If using Windows, [Hyper-V must be enabled.](https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v#enable-the-hyper-v-role-through-settings) - Working knowledge of the C programming language. -To create a Distro ISO, run the `build-iso` script. Check the Wiki guide for details on [building an ISO](https://github.com/Zeal-Operating-System/ZealOS/wiki/Building-an-ISO). After creating an ISO, see the Wiki guides on installing in [VirtualBox](https://github.com/Zeal-Operating-System/ZealOS/wiki/Installing-(Virtualbox)), [VMWare](https://github.com/Zeal-Operating-System/ZealOS/wiki/Installing-(VMWare)), and [bare-metal](https://github.com/Zeal-Operating-System/ZealOS/wiki/Installing-(Bare%E2%80%90metal)). +To create a Distro ISO, run the `build-iso` script. Check the Wiki guide for details on [building an ISO](https://zeal-operating-system.github.io/ZealOS-wiki/Building-an-ISO). After creating an ISO, see the Wiki guides on installing in [VirtualBox](https://zeal-operating-system.github.io/ZealOS-wiki/Installing-(Virtualbox)), [VMWare](https://zeal-operating-system.github.io/ZealOS-wiki/Installing-(VMWare)), and [bare-metal](https://zeal-operating-system.github.io/ZealOS-wiki/Installing-(Bare%E2%80%90metal)). ### Contributing From 6104f8b905f3ca719d6d5ae97757d76731658ccf Mon Sep 17 00:00:00 2001 From: Michael Mikonos Date: Mon, 23 Oct 2023 16:20:49 +0800 Subject: [PATCH 3/4] Str2I64: allow single "+" or "-" prefix before number --- src/Kernel/StrScan.ZC | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/Kernel/StrScan.ZC b/src/Kernel/StrScan.ZC index 5dd2a2df..126e1317 100755 --- a/src/Kernel/StrScan.ZC +++ b/src/Kernel/StrScan.ZC @@ -13,18 +13,16 @@ I64 Str2I64(U8 *st, I64 radix=10, U8 **_end_ptr=NULL) } while (Bt(char_bmp_white_space, *st)) st++; + if (*st == '+') + st++; + else if (*st == '-') + { + neg = TRUE; + st++; + } while (TRUE) switch (*st) { - case '-': - st++; - neg = !neg; - break; - - case '+': - st++; - break; - case '0': st++; ch = ToUpper(*st); From 7ecfb597579e1652abbf71702278c9988cae6783 Mon Sep 17 00:00:00 2001 From: GutPuncher Date: Wed, 25 Oct 2023 22:46:27 -0400 Subject: [PATCH 4/4] optimize change from #131 --- src/Kernel/StrScan.ZC | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/Kernel/StrScan.ZC b/src/Kernel/StrScan.ZC index 126e1317..81ab28ec 100755 --- a/src/Kernel/StrScan.ZC +++ b/src/Kernel/StrScan.ZC @@ -13,13 +13,8 @@ I64 Str2I64(U8 *st, I64 radix=10, U8 **_end_ptr=NULL) } while (Bt(char_bmp_white_space, *st)) st++; - if (*st == '+') - st++; - else if (*st == '-') - { - neg = TRUE; - st++; - } + if (*st == '+' || *st == '-') + neg = *st++ == '-'; while (TRUE) switch (*st) {