Skip to content

Commit c4558f0

Browse files
author
koder77
committed
Windows port update
1 parent 3616d79 commit c4558f0

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

comp/main.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -763,10 +763,7 @@ S2 check_for_brackets (U1 *line)
763763
return (1);
764764
}
765765
}
766-
else
767-
{
768-
return (0);
769-
}
766+
return (0);
770767
}
771768

772769
S2 check_for_normal_brackets (U1 *line)
@@ -3300,7 +3297,7 @@ S2 parse_line (U1 *line)
33003297

33013298
ok = 1;
33023299

3303-
if (set_variable_prefix ("") == 1)
3300+
if (set_variable_prefix ((U1 *) "") == 1)
33043301
{
33053302
printf ("error: line %lli: variable '%s' prefix not set with \\prefix\\ !\n", linenum, ast[level].expr[j][last_arg - 1]);
33063303
return (1);
@@ -7639,7 +7636,7 @@ S2 parse (U1 *name)
76397636
err = 1;
76407637
}
76417638
}
7642-
strcpy (rbuf_orig, rbuf); // save original line!
7639+
strcpy ((char *) rbuf_orig, (const char *) rbuf); // save original line!
76437640
ret = parse_line (rbuf);
76447641
if (ret != 0)
76457642
{

comp/main.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ U1 variable_prefix[MAXSTRLEN];
7777
S2 get_var_is_const (U1 *name);
7878
void init_data_info_var (void);
7979
S2 get_unused_var (void);
80+
S2 set_variable_prefix (U1 *variable);
8081

8182
// parse-rpolish.c
8283
S2 isOperator (char symbol);

include/settings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// Set this to 1 if you are using clang 15 or older.
44
// If you are using clang 16 or later then set this to 0
55
// This sets the type of the MPFR filesize function. If it is the experimental function or not.
6-
#define CPP_FILE_EXPERIMENTAL 1
6+
#define CPP_FILE_EXPERIMENTAL 0
77

88
// NEW: if set to 1 the L1VM can be build as a shared library to be embedded in other programs
99
#define L1VM_EMBEDDED 0

install-zerobuild-msys2.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ pacman -S mingw-w64-x86_64-SDL2_mixer --noconfirm
1616
pacman -S mingw-w64-x86_64-mpfr --noconfirm
1717
pacman -S mingw-w64-x86_64-libsodium --noconfirm
1818
pacman -S mingw-w64-x86_64-libserialport --noconfirm
19-
pacman -S mingw-w64-x86_64-libssl --noconfirm
20-
pacman -S mingw-w64-x86_64-libcrypto++ --noconfirm
19+
pacman -S mingw-w64-x86_64-openssl --noconfirm
20+
pacman -S mingw-w64-x86_64-crypto++ --noconfirm
2121

2222
echo "building compiler, assembler and VM..."
2323

0 commit comments

Comments
 (0)