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

3729 commits

Author SHA1 Message Date
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
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