1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-09-19 23:44:46 +00:00
Commit graph

3745 commits

Author SHA1 Message Date
Matthew Kilgore
fb16492ac8 Move more date/time functions 2024-02-17 01:36:10 -05:00
Matthew Kilgore
b9a4bec188 Move _MK and _CV implementation functions to separate cpp 2024-02-17 01:36:10 -05:00
Matthew Kilgore
01b4209c1b Bump C++ version 2024-02-17 01:36:10 -05:00
github-actions[bot]
fb629d135d Automatic update of ./internal/source 2024-02-17 02:00:00 +00:00
Matt Kilgore
dafad71ba8
Merge pull request #455 from mkilgore/libqb-refactor-part-2
Libqb refactor part 2
2024-02-16 20:41:43 -05:00
Matthew Kilgore
a891a6b255 Move list API to separate cpp file
Fixes: #147
2024-02-16 20:04:35 -05:00
Matthew Kilgore
0da86b61a5 Suppress warnings about NULL-integer conversion 2024-02-16 20:04:35 -05:00
Matthew Kilgore
9a76f4f81d Fix warnings about redefinition of macros 2024-02-16 20:04:35 -05:00
Matthew Kilgore
74824350eb Disable strict-aliasing
The libqb code currently has various operations that break
strict-aliasing, so we're disabling the optimizations around that to
avoid breaking the code.
2024-02-16 20:04:35 -05:00
Matthew Kilgore
01b52e77a0 Fix compile error with gfs.cpp and fstream 2024-02-16 20:04:35 -05:00
Matthew Kilgore
2f0588ac80 Fix warnings in gfs.cpp 2024-02-16 20:04:35 -05:00
Matthew Kilgore
a15d812f12 Remove gfs_file_win_struct
The HANDLE is simply folded into the gfs_file_struct
2024-02-16 20:04:34 -05:00
Matthew Kilgore
f9c97161ab Move gfs API to separate .cpp file
Fixes: #424
2024-02-16 20:04:34 -05:00
Matthew Kilgore
2423351bb2 Fix warnings in error_handle.cpp 2024-02-16 20:04:34 -05:00
Matthew Kilgore
d4b008e3e4 Remove libqb.h from audio.cpp 2024-02-16 20:04:34 -05:00
github-actions[bot]
06690f94d8 Automatic update of ./internal/source 2024-02-17 01:00:18 +00:00
Roland Heyder
ab9fd6437e
Merge pull request #454 from QB64-Phoenix-Edition/read-write-file
Implement new file functions
2024-02-17 01:42:17 +01:00
Roland Heyder
fdfd6a2af3 More error checking 2024-02-17 01:01:08 +01:00
Roland Heyder
dedb94223f Fix layout of legacy metacommands
- adjust the case of legacy metacommands according to IDE layout settings
2024-02-16 20:31:46 +01:00
Roland Heyder
59196ca893 Make _WRITEFILE a statement
- rather than a function as suggested by @a740g
2024-02-16 20:26:55 +01:00
Roland Heyder
f51da87249
Merge branch 'main' into read-write-file 2024-02-16 19:01:01 +01:00
github-actions[bot]
ea0ab4e8db Automatic update of ./internal/source 2024-02-16 02:03:26 +00:00
Matt Kilgore
fb145ee2d3
Merge pull request #453 from mkilgore/libqb-refactor-part-1
libqb refactor - Part 1
2024-02-15 20:45:35 -05:00
Roland Heyder
7d7a7fe22c New functions
- _READFILE$
- _WRITEFILE
2024-02-16 01:37:39 +01:00
Roland Heyder
4ad1d0dbf4 Fix wrong indention
- this fixes the wrong (additional) indention of the "false" part in precompiler $IF...$ELSE...$ENDIF blocks
2024-02-16 01:30:44 +01:00
Matthew Kilgore
839c5c0c9f Add cmem.h with dblock and cmem[] 2024-02-14 17:21:15 -05:00
Matthew Kilgore
1daea10f53 Move QB_TRUE and QB_FALSE 2024-02-14 17:21:14 -05:00
Matthew Kilgore
799468fb3b Move mem_lock logic into mem.h and mem.cpp 2024-02-14 17:21:14 -05:00
Matthew Kilgore
1495acd569 Apply -Wextra to libqb/src folder 2024-02-14 17:21:14 -05:00
Matthew Kilgore
fa317c2612 Don't silence warnings for anything other than qbx.cpp 2024-02-14 17:21:14 -05:00
Matthew Kilgore
4f4181fbf2 Separate out qbs, command, and error handling
Moves the qbs, command, and error handling APIs into separate .cpp files
in libqb/src/. This makes only minor changes to the actual code beyond
moving the logic, many global variables are left in place to be dealt
with in further changes.

Fixes: #146
2024-02-14 17:21:14 -05:00
github-actions[bot]
50ea3c6c22 Automatic update of ./internal/source 2024-02-14 05:14:07 +00:00
Matt Kilgore
5688b1c89e
Merge pull request #452 from mkilgore/fix-math-eval
Fix Math Evaluator
2024-02-13 23:56:00 -05:00
Matthew Kilgore
ada8255572 Fix unsigned multiplication in CONST
Multiplication wasn't using the ParseNum helper methods and as a result
wasn't setting num.ui, resulting in the wrong answer when using
unsigned.

I additionally switch it to use the proper signed vs unsigned type when
doing the multiplication.
2024-02-13 15:59:38 -05:00
Matthew Kilgore
c0ac4c58d0 Fix math evaluator
The math evaluator was not running the input through lineformat before
evaluation, resulting in Evaluate_Expression$() giving the wrong result
since the input wasn't tokenized.
2024-02-13 15:57:17 -05:00
github-actions[bot]
b56efe7ec6 Automatic update of ./internal/source 2024-02-09 19:41:28 +00:00
Roland Heyder
354a4c00c4
Merge pull request #450 from QB64-Phoenix-Edition/fix-extdep-check
Fix external dependencies checks
2024-02-09 20:23:44 +01:00
Roland Heyder
75dd697444 Fix external dependencies checks
- exclude DECLARE LIBRARY files loaded w/o path from predefined system locations
2024-02-09 18:29:11 +01:00
github-actions[bot]
8cee66e18d Automatic update of ./internal/source 2024-02-09 16:10:26 +00:00
Roland Heyder
737d3b76fa
Merge pull request #449 from SteveMcNeill/main
Fix $IF prioritization
2024-02-09 16:51:48 +01:00
Steve McNeill
f67803254a Move lineformat to AFTER $metacommands in prepass loop
As per Discord discussion
2024-02-09 02:46:00 -05:00
Steve McNeill
441e978f74 Fix $IF prioritization 2024-02-08 14:43:27 -05:00
github-actions[bot]
9801341c51 Automatic update of ./internal/source 2024-02-08 08:18:53 +00:00
Roland Heyder
09574cc7e7
Merge pull request #448 from QB64-Phoenix-Edition/include-once
Implementing $INCLUDEONCE
2024-02-08 09:00:46 +01:00
Roland Heyder
36af0b292a 7.) Fix test case
- add SYSTEM to avoid deadlock of workflow
2024-02-07 22:01:34 +01:00
Roland Heyder
e09c4a9ec9 6.) Add a test case for $INCLUDEONCE 2024-02-07 21:33:32 +01:00
Roland Heyder
6d4975384b 5.) Unify internal $COLOR includes
- unify description and formatting
- make them $INCLUDEONCE to avoid 100s of warnings if eg. multiple $COLOR:32 are used in a program
2024-02-07 21:27:14 +01:00
Roland Heyder
7c50499c2f 4.) Implements $INCLUDEONCE handling
- placing $INCLUDEONCE in any line in an include file will prevent including the file multiple times (BAS synonym for #pragma once)
- $INCLUDEONCE must be the only thing in the line
- using it in the main program has no effect and will be ignored without error
2024-02-07 21:17:46 +01:00
Roland Heyder
21b9ad99f7 3.) Refactor external dependencies checks
- adds filetype IDs
- now includes DECLARE LIBRARY files
- allows immediate recompile after error whitout the need to make a "fake" change to the program first
2024-02-07 21:04:39 +01:00
Roland Heyder
a7de88dfee 2.) Steve's fixes
- changes to Open/Save dialogs suggested by Steve to avoid adding a second extension
2024-02-07 20:53:53 +01:00