1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-12 14:35:12 +00:00
Commit graph

2803 commits

Author SHA1 Message Date
github-actions[bot] a8cc180307 Automatic update of ./internal/source 2022-11-27 02:24:41 +00:00
Steve McNeill d4cd4f6af8
Merge pull request #262 from SteveMcNeill/main
Fix to Issue #233 with $IF and VERSION
2022-11-26 21:06:32 -05:00
Steve McNeill 8bb2aefcb6
Merge branch 'main' into main 2022-11-26 20:33:48 -05:00
github-actions[bot] 3cba0d4265 Automatic update of ./internal/source 2022-11-27 00:30:08 +00:00
Roland Heyder b8936de288
Merge pull request #263 from QB64-Phoenix-Edition/refactoring
Simplify #include
2022-11-27 01:12:06 +01:00
Roland Heyder ec6e648007 Simplify #include
Solving #119
2022-11-27 00:11:04 +01:00
SteveMcNeill 62cafd7a14 Redo and expand Version Compare Logic 2022-11-26 15:59:49 -05:00
Steve McNeill 660fa711c9
Merge branch 'main' into main 2022-11-26 13:05:51 -05:00
SteveMcNeill 7576dc46fe Fix to Issue #233 with $IF and VERSION
https://github.com/QB64-Phoenix-Edition/QB64pe/issues/233

This should fix the comparisons with $IF and VERSION.   A few things of note here, which might affect future version labeling:

This expects to find version numbers which follow our current style -- ##.##.##   -- 3 numbers, separated by periods.

Adding in alphabetic characters will basically get ignored, and versions with less than 3 values will generate FALSE results in all comparisons.
2022-11-26 05:18:29 -05:00
github-actions[bot] 28dc80b551 Automatic update of ./internal/source 2022-11-26 09:13:26 +00:00
Steve McNeill f9b7da4777
Merge pull request #261 from SteveMcNeill/main
Change to Open File Dialog
2022-11-26 03:53:11 -05:00
SteveMcNeill 6cc0432a99 Merge branch 'main' of https://github.com/SteveMcNeill/QB64pe-fork 2022-11-26 03:07:09 -05:00
SteveMcNeill b32059f155 Change to Open File Dialog
Change to open file dialog so that it initially opens in the user's StartDir$, and then from whatever folder they navigate to after that.
2022-11-26 03:06:36 -05:00
Steve McNeill 15f0f86534
Merge pull request #254 from SteveMcNeill/main
Bugfix to _FONT
2022-11-25 05:03:33 -05:00
SteveMcNeill ca7d6ee289 fix comment
Whoops!  Not enough coffee, I guess.  ;)
2022-11-25 00:52:29 -05:00
SteveMcNeill 0d76a7bbed Simplify multi-line logic to single line. 2022-11-24 15:00:54 -05:00
SteveMcNeill 6d055e5df1 Bugfix to _FONT
Fonts 9, 15, and 17 can *only* be used in SCREEN 0.  Attempting to use them in graphic screens results in a seg fault and an instant program crash on Windows.  This is definitely the most undesirable of behaviors for a program, and can easily be caught and dealt with just by tossing a simple "Illegal Function Call" error for the issue.
2022-11-24 08:34:31 -05:00
github-actions[bot] 9d3ca747d0 Automatic update of ./internal/source 2022-11-24 12:38:54 +00:00
Roland Heyder d40fb02731
Merge pull request #252 from QB64-Phoenix-Edition/wiki-dev
Wiki dev
2022-11-24 13:19:54 +01:00
Roland Heyder 65371dad0f Wiki download finalized
- restore default back to https:
- ask user for fallback, if required
- final adjustments for new behavior
2022-11-23 22:54:04 +01:00
Roland Heyder b153a86d7e
Merge branch 'main' into wiki-dev 2022-11-23 11:02:28 +01:00
github-actions[bot] cff575e722 Automatic update of ./internal/source 2022-11-22 23:53:31 +00:00
Matt Kilgore ebd95d24b8
Merge pull request #250 from mkilgore/refactor-curl
Add HTTP and HTTPS support to `_OPENCLIENT()`
2022-11-22 18:31:13 -05:00
Roland Heyder 81d4983219 Wiki update refactoring
Some changes/fixes in the update flow.
2022-11-22 18:22:10 +01:00
Roland Heyder 87a234b45b Wiki download changes
Using built-in TCP/IP and HTTP protocol via manual request headers.
2022-11-22 18:20:48 +01:00
Matthew Kilgore 11a5b8be8e _OpenClient() should return zero on connection failure, not error 2022-11-20 18:44:24 -05:00
Matthew Kilgore 445408d95b _StatusCode() should give the correct error on invalid handle type
Passing a handle of the invalid type (Ex. TCP) to _StatusCode should
give error 52, but it gies error 9.
2022-11-20 04:38:03 -05:00
Matthew Kilgore 12c9c35db5 Add _StatusCode command for HTTP handles
The _StatusCode command returns the status code on the HTTP response
when given a HTTP handle from _OpenClient().
2022-11-20 04:04:02 -05:00
Matthew Kilgore 610c914d36 compile_tests.sh does not display compilelog.txt
Due to a typo, compile_tests.sh was not displaying the compilelog.txt
contents on a test failure.
2022-11-19 15:13:26 -05:00
Matthew Kilgore 1438c882d2 Update webfactory/ssh-agent 2022-11-19 15:13:26 -05:00
Matthew Kilgore e8ebf56a2f Add basic http tests
These tests cover basic HTTP functionality via _OPENCLIENT(), and also
that it fails to work without `$Unstable:Http` in place.
2022-11-19 15:13:26 -05:00
Matthew Kilgore 77e0a369af Add $Unstable entry for Http
This effectively adds Http support to QB64-PE via adding $Unstable:Http
which will trigger building with DEP_HTTP, which enables Http support in
libqb.
2022-11-19 15:13:26 -05:00
Matthew Kilgore ffdf9db390 Add libqb.cpp stream support for HTTP
Modifies libqb.cpp to add support for opening HTTP connections via
_OPENCLIENT(). This makes use of the libqb_http API in ./libqb, which is
backed by libcurl.

This also includes a bit of refactoring for some of the code that
required additions. I replaced a few of the integer values with enums,
and added a new entry for Http and then implemented it in all the
necessary locations. In addition to `_OPENCLIENT()`, there is also
support for using HTTP connections with `EOF()`, `LOF()`, `GET #`
(variable and fixed length), and `CLOSE`.

I additionally fixed an issue of parsing the colon parts of the
`_OPENCLIENT()` parameter, where having too many colons would cause the
program to crash. Since we only allow so many parts to begin with it I
simply limited the max number of parts it will split to 10.

Fixes: #98
Fixes: #46
2022-11-19 15:13:26 -05:00
Matthew Kilgore 45d52271da Add libqb_http API for HTTP connections
This adds the libqb_http API, which is designed to support HTTP and
HTTPS usage from QB64-PE source.

The design consists of a single thread which services all the HTTP(s)
connections. There are then various libqb_http APIs exposed that allow
interacting with this thread to create a new connection, query
connection status, read data, or close the connection.

Internally the thread makes use of the curl_multi interface to allow a
single thread to service multiple HTTP(s) connections in parallel. This
means you can _OPENCLIENT() multiple HTTP connection in a row and all of
them will be serviced at the same time in whatever order data is
available.

HTTP is optional and selected via a Makefile setting. A stub is swapped
in if HTTP support is not used, which avoids need to add another build
flag to libqb.cpp.
2022-11-19 15:13:26 -05:00
Matthew Kilgore 848aa6b5d2 Pin versions of build agents
This ensures that our build will continue to use the same versions of
our OSs even if GitHub updates them.
2022-11-19 01:55:20 -05:00
Matthew Kilgore 1994ca3f73 Install libcurl on Linux build agent 2022-11-19 01:55:20 -05:00
Matthew Kilgore d8a3ec75fd Run tests with -O2
Since we do allow users to use optimization, it's worth running our
tests with it to verify at least those work.
2022-11-19 01:55:20 -05:00
Matthew Kilgore b066c641f4 Add the libcurl license 2022-11-19 01:55:20 -05:00
Matthew Kilgore 1eec789114 Specify the XCode SDK version 2022-11-18 01:50:28 -05:00
Matt Kilgore ba6e5f6438
Merge pull request #246 from mkilgore/add-libcurl-to-repo
Add libcurl to the repository
2022-11-17 22:31:44 -05:00
Matthew Kilgore 34a7df535e Add libcurl to the repository
This copy is used for building on Windows. For Linux and OS X we used
the system-provided copy.
2022-11-17 22:03:41 -05:00
github-actions[bot] 5e3fa2d6c2 Automatic update of ./internal/source 2022-11-16 06:19:29 +00:00
Matt Kilgore 249750bcbd
Merge pull request #249 from mkilgore/release-3.4.1
Version 3.4.1
2022-11-16 01:01:20 -05:00
Matthew Kilgore 1aac3b1955 Version 3.4.1 2022-11-15 23:47:34 -05:00
github-actions[bot] de63331a19 Automatic update of ./internal/source 2022-11-16 04:41:13 +00:00
Matt Kilgore 0cfb01c6bb
Merge pull request #247 from SteveMcNeill/main
Swap in Optional New Load File Dialog
2022-11-15 23:24:33 -05:00
Matt Kilgore 4ff9edbf9d
Merge branch 'main' into main 2022-11-15 22:55:06 -05:00
Matthew Kilgore 65cfbda3b7 Rename 'New Dialogs' to 'GUI Dialogs', Persist setting
The 'New Dialogs' menu option was renamed to 'GUI Dialogs' to better
explain what it does. Additionally the setting of which dialogs to use
is saved to the config.ini file so that it presists across multiple runs
of QB64-PE.
2022-11-15 22:21:29 -05:00
Matt Kilgore bd6ad5fde6
Merge pull request #248 from mkilgore/fix-password-inputbox
Fix password handling in _InputBox$ on Windows
2022-11-15 21:04:30 -05:00
Matthew Kilgore a28342be99 Fix password handling in _InputBox$ on Windows
We were incorrectly treating the empty string and NULL the same and
using a password dialog for both. It now has the correct behavior of
displaying the password when provided the empty string, but just
displaying a blank input box when provided NULL.
2022-11-14 20:23:41 -05:00