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

3665 commits

Author SHA1 Message Date
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
Roland Heyder
cf71beb796 1.) Some case corrections 2024-02-07 20:45:55 +01:00
github-actions[bot]
e3450c505f Automatic update of ./internal/source 2024-02-03 22:11:15 +00:00
Roland Heyder
cf457d0da2
Merge pull request #447 from QB64-Phoenix-Edition/refactoring
Some simple refactoring
2024-02-03 22:52:26 +01:00
Roland Heyder
5c08642b80 Some simple refactoring
- adds some useful info to the test docs
- remove handmade CRC32 function
- use new featured function(s) instead
2024-02-03 21:45:45 +01:00
github-actions[bot]
3a62b0ec2d Automatic update of ./internal/source 2024-02-03 14:56:29 +00:00
Roland Heyder
781250bf54
Merge pull request #444 from QB64-Phoenix-Edition/adler-crc-hash
Adler crc hash
2024-02-03 15:38:39 +01:00
Roland Heyder
2d8a7b897f Fix hash test
- ok, that was my fault?, no it wasn't,
- console is ignoring trailing space when copying text from it
2024-02-03 14:35:55 +01:00
Roland Heyder
212986abd8 Fix hash test
- hopefully
2024-02-03 14:11:59 +01:00
Roland Heyder
40fe9f3059 Merge branch 'adler-crc-hash' of https://github.com/QB64-Phoenix-Edition/QB64pe into adler-crc-hash 2024-02-03 12:24:45 +01:00
Roland Heyder
2b3743e190 Adds test case for hashing 2024-02-03 12:24:34 +01:00
Roland Heyder
6b3842673f Fix return types and results
- return type is uint32_t in C/C++ and ULONGTYPE in QB64
- adler32 must return one (1) on an empty input
2024-02-03 11:25:48 +01:00
Roland Heyder
ef9c7edeee
Merge branch 'main' into adler-crc-hash 2024-02-02 22:25:43 +01:00
Samuel Gomes
7a3eb9d875
Merge pull request #446 from a740g/main
Avoid compiling psaux.c
2024-02-03 02:05:56 +05:30
Samuel Gomes
748d320bfe Avoid compiling psaux.c 2024-02-03 01:16:14 +05:30
Roland Heyder
a84e174b63 Add new _MD5$ fucntion
- exposing the implementations in freetype for public use
2024-02-02 10:37:32 +01:00
Roland Heyder
131009006e Add new _ADLER32 and _CRC32 function
- exposing the implementations in miniz for public use
2024-02-02 10:32:16 +01:00
Roland Heyder
2aadbc63ce Finetuning miniz make
- disabling some unneeded features saves ~52KiB object size (55%)
2024-02-02 10:18:03 +01:00
github-actions[bot]
57aad5f054 Automatic update of ./internal/source 2024-01-31 07:17:18 +00:00
Samuel Gomes
57abdc7450
Merge pull request #441 from a740g/core-refactor
GLEW and FreeGLUT refactor and cleanup
2024-01-31 12:28:20 +05:30
Samuel Gomes
ecf12c9d6c
Merge branch 'main' into core-refactor 2024-01-31 11:39:57 +05:30
github-actions[bot]
46fc25eead Automatic update of ./internal/source 2024-01-30 21:55:38 +00:00
Roland Heyder
f4fd37bfc0
Merge pull request #443 from QB64-Phoenix-Edition/workflow-rescue
Workflow rescue
2024-01-30 22:37:33 +01:00
Roland Heyder
0ce5a8e56e Refactor GetCRC32 function 2024-01-30 21:15:09 +01:00
Roland Heyder
110bbb2fdd Revert Makefile changes 2024-01-30 20:47:40 +01:00
Roland Heyder
ba7f80e361 Revert "Automatic update of ./internal/source"
This reverts commit ad0e5e4ef3.
2024-01-30 20:44:17 +01:00
github-actions[bot]
ad0e5e4ef3 Automatic update of ./internal/source 2024-01-30 17:13:17 +00:00
Roland Heyder
4534f28ac4
Merge pull request #442 from QB64-Phoenix-Edition/ext-dep-chk
Add external dependencies checks
2024-01-30 17:53:43 +01:00
Roland Heyder
6077e048b5 Another try to fix
- changes suggested by @mkilgore
2024-01-30 17:11:36 +01:00
Roland Heyder
d35e7e4f9e Fix Makefile
- we need DEP_DATA for QB64pe itself now
2024-01-30 15:58:54 +01:00
Roland Heyder
ba90208c27 Add external dependencies checks
- tracks required external files for changes and triggers a rebuild if needed
- $EXEICON file
- $MIDISOUNDFONT (incl. the DEFAULT one)
- $INCLUDE (incl. nested ones)
- $EMBED files
- internal includes as forced by $COLOR or $DEBUG
2024-01-30 13:04:03 +01:00