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

304 commits

Author SHA1 Message Date
FellippeHeitor fca4a96ef3 Remove unnecessary optional parameter in fix_error().
Also:
- "Unhandled error" message now only shows included line number when it's > 0.
- qb64.bas adds include line number to every evnt() call.
2016-03-23 08:29:32 -03:00
FellippeHeitor e891ce0891 Extended error reporting, pointing to included lines.
The "Unhandled error" message will now display "Line: #### (included line: ####)" with the line number in the included file that generated the error. 0 will be reported if the error wasn't in an included line.

Also:
- Add function _INCLERRORLINE, which returns a value greater than zero when _ERRORLINE points to an $INCLUDEd file.
2016-03-23 07:45:51 -03:00
Galleondragon a23a733bf0 (Automated push) Update internal/source/* from qb64.bas 2016-03-21 05:14:45 -07:00
Galleondragon 9758e11417 Merge remote-tracking branch 'origin/master' 2016-03-20 23:25:05 +11:00
Galleondragon 9b17aa8bca Added accidentally removed line #include <fcntl.h> 2016-03-20 23:23:50 +11:00
Galleondragon 1af305e433 (Automated push) Update internal/source/* from qb64.bas 2016-03-20 05:14:41 -07:00
Galleondragon 0ea631d375 Implements the _DIR$("desktop") function which returns OS specific paths.
Implements changes to allow programs to run on ARMBI-v7 Android devices which also provides a massive performance boost to but runtime and startup time.
Implements changes to allow programs to run on x86-based Android devices.
Fix to ensure variables allocated in the "stack" are aligned on appropriate boundaries which would have otherwise crashed on Android.
Fix to _DEVICES to ensure variables are aligned on appropriate boundaries which would have otherwise crashed on Android (includes some refactoring).
Added permissions to allow reading from/writing to external storage. Use the _DIR$(...) function to help locate appropriate paths.
2016-03-20 18:56:10 +11:00
Galleondragon ff2802131a (Automated push) Update internal/source/* from qb64.bas 2016-03-19 05:15:17 -07:00
FellippeHeitor 00b9b6a37f Updated offline wiki. 2016-03-18 08:36:04 -03:00
Galleondragon afc995ddc1 (Automated push) Update internal/source/* from qb64.bas 2016-03-09 05:14:37 -08:00
Galleondragon 384869f0e3 (Automated push) Update internal/source/* from qb64.bas 2016-03-05 05:14:49 -08:00
SteveMcNeill d9aa69afb9 Change to INPUT routine so when reading a byte at a time, we'll find proper EOF markers.
A fix to the issue described here:
http://www.qb64.net/forum/index.php?topic=13195.msg113782#msg113782
2016-03-04 23:06:22 -05:00
SteveMcNeill e9472743e5 Path to IDE Auto-position
Since _SCREENHIDE doesn't currently work on Linux, alterations were made
to the auto-position routine to keep the IDE from storing screen
positions when minimized and closed that would make it reopen off-screen
and impossible to move/position.
2016-03-04 14:51:08 -05:00
FellippeHeitor e26f63f8c1 Fix to PNG import CRC-check returning False failure results sometimes.
Fix by Steve McNeill.
2016-03-04 00:17:02 -03:00
Galleondragon adee4e38af (Automated push) Update internal/source/* from qb64.bas 2016-02-28 05:17:07 -08:00
Galleondragon 32d0811632 (Automated push) Update internal/source/* from qb64.bas 2016-02-27 05:14:57 -08:00
Galleondragon ed03cc992f (Automated push) Update internal/source/* from qb64.bas 2016-02-23 05:14:58 -08:00
Galleondragon fecdbf995f (Automated push) Update internal/source/* from qb64.bas 2016-02-22 05:14:14 -08:00
Galleondragon d0293ca7dc (Automated push) Update internal/source/* from qb64.bas 2016-02-13 06:17:39 -08:00
Luke Ceddia 10ce118bec Extra cast to satisfy compiler on OSX. 2016-02-10 00:26:33 +11:00
Galleondragon adf797014f (Automated push) Update internal/source/* from qb64.bas 2016-02-08 05:19:02 -08:00
Luke Ceddia 46e8ce414b Fix conditional compilation statements in libqb. 2016-02-04 13:58:53 +11:00
Luke Ceddia ff27678f98 Merge branch 'linux_tcpip' 2016-02-03 16:27:58 +11:00
Luke Ceddia 992a74c7ee Implemented a better _CONNECTED
It is no longer confused by buffered data. However, it no longer makes
an explicit call to send()/recv(), so one of those must first fail to
signal the disconnection. This allows _CONNECTED to be used to check
if a GET/PUT succeeded (on the local end, anyway).
2016-02-03 15:42:57 +11:00
Luke Ceddia 264ad29f22 Make tcp_out try harder to send data.
The function now interprets the return value from send() and recalls if
needed to transmit all data.
2016-01-30 19:10:14 +11:00
Luke Ceddia 976f757c2f Fix memory leak in _PRINTSTRING
FontRenderTextUTF32 now frees the 'render' array, which is allocated for multi-character strings.
2016-01-28 13:58:08 +11:00
Luke Ceddia 6d49cff3ee Add preliminary support for tcp/ip on Linux
_OPEN{CONNECTION, HOST, CLIENT}, _CONNECTIONADDRESS$ now do something, as the underlying tcp routines
are implemented (with the exception of tcp_connected and thus _CONNECTED).
2016-01-26 23:11:05 +11:00
Luke Ceddia b0edf45d47 Fix _EXIT race condition that prevents exit; make _EXIT work on Linux. 2016-01-21 00:37:27 +11:00
Galleondragon c84bc3b981 (Automated push) Update internal/source/* from qb64.bas 2016-01-18 05:14:34 -08:00
Galleondragon c9b829baa2 (Automated push) Update internal/source/* from qb64.bas 2016-01-16 05:14:55 -08:00
Galleondragon 7ec9208718 (Automated push) Update internal/source/* from qb64.bas 2016-01-15 05:13:48 -08:00
Galleondragon 85edad6462 (Automated push) Update internal/source/* from qb64.bas 2016-01-14 05:14:54 -08:00
Galleondragon 9cbcd52968 (Automated push) Update internal/source/* from qb64.bas 2016-01-12 05:13:46 -08:00
Galleondragon 9f749b8002 (Automated push) Update internal/source/* from qb64.bas 2016-01-05 05:12:45 -08:00
Galleondragon 8744ec5e57 (Automated push) Update internal/source/* from qb64.bas 2016-01-01 05:13:03 -08:00
Galleondragon ebd74826a0 (Automated push) Update internal/source/* from qb64.bas 2015-12-30 05:14:04 -08:00
Luke Ceddia 9c17efacf5 Removed non-ASCII characters and many hard tabs from source files, making it easier to use other text editors (special characters were being mangled in some cases). 2015-12-30 21:28:13 +11:00
Galleondragon 41a70085f6 (Automated push) Update internal/source/* from qb64.bas 2015-12-29 05:13:21 -08:00
Galleondragon 3739303e5c (Automated push) Update internal/source/* from qb64.bas 2015-12-27 05:12:48 -08:00
Galleondragon febdb30be3 (Automated push) Update internal/source/* from qb64.bas 2015-12-14 05:13:43 -08:00
Luke Ceddia 18a05b79ee Corrected OSX setup script to use OSX folder instead of Linux one.
Probably a copy/paste error when writing the script.
2015-12-14 11:17:09 +11:00
Luke Ceddia 9595dd37e6 Fixed the SHELL() function to return correct values on Linux (and presumably OSX). 2015-12-11 13:02:44 +11:00
Galleondragon c98a4529f6 (Automated push) Update internal/source/* from qb64.bas 2015-11-02 02:41:24 -08:00
Galleondragon accdaf1ce0 Added support for Android & Virtual Keyboards 2015-10-30 23:18:44 +11:00
Galleondragon be96250867 (Automated push) Update internal/source/* from qb64.bas 2015-08-21 05:14:00 -07:00
Luke Ceddia 3bfd7a799b Fixed MessageBox implementation on Linux and presumably Mac to actually do something. 2015-08-18 18:55:08 +10:00
Luke Ceddia 8abc34c99e Explicitly declare a large integer in qbr() routines to be unsigned, thus averting compiler warning. 2015-08-17 21:53:35 +10:00
Luke Ceddia d4c0a4c5a1 Optimise func_val, especially for common usecases with small integers. 2015-08-16 23:10:22 +10:00
Luke Ceddia ab99f5f837 Added overflow checks to the portable version of qb(), and corrected some missing negative signs in the other version.
Also patched func_val to behave properly when parsing integers > UINT64_MAX.
2015-08-16 01:59:46 +10:00
SteveMcNeill f917da369a Alteration to common.cpp to allow rounding to _UINT64_MAX limit
Floats previously only rounded to the upper limit of a signed integer64;
this alteration will now round them to the unsigned integer64 limit if
possible, or else toss an "OVERFLOW ERROR" if there's no way to squeeze
the float's value into an integer64.
2015-08-15 10:48:35 -04:00
Galleondragon 65a8ee9f33 (Automated push) Update internal/source/* from qb64.bas 2015-08-15 04:44:13 -07:00
Galleondragon e836ffd92e 2nd Test commit from command line 2015-08-15 19:42:26 +10:00
Galleondragon 0749816b73 Test commit 2015-08-15 16:59:27 +10:00
Luke Ceddia 854bb3bd3d Housekeeping: removed files from internal/source/ that have no reason to be there. 2015-08-14 21:43:49 +10:00
Galleon 0b92a6a8e6 (Automated push) Update internal/source/* from qb64.bas 2015-08-09 05:12:02 -07:00
Luke Ceddia a25cb9a846 Temporaraily commented out Linux version of _SCREENICON function due to compile errors 2015-08-09 21:33:22 +10:00
SMcNeill 7fb1db97f6 Added function _SCREENICON to tell us if the window has been minimized to the taskbar (Iconified) 2015-08-08 12:50:45 -04:00
Galleon 8ee2353cbf (Automated push) Update internal/source/* from qb64.bas 2015-08-08 05:12:20 -07:00
SMcNeill f9bb83066b Added "&B" support to VAL function.
Added extended math functionality into user mods. (COT, SEC, COT, and their deritives.)
Cleaned up old config setting from config.txt file.
2015-08-08 02:23:15 -04:00
Galleon a4e3e12ef4 (Automated push) Update internal/source/* from qb64.bas 2015-08-06 05:13:16 -07:00
Luke Ceddia 05d0b0a36b Merge 2015-08-06 21:41:16 +10:00
Luke Ceddia c003f0bc20 Fix scroll wheel on Linux; tidy up licensing info; clean up Windows setup; fix OSX script permissions.
The scroll wheel now behaves correctly on Linux. Reports suggest that the fix does not have any effect
on OSX though. The licensing documentation is updated to reflect the fact that there are no GPL components
included in a QB64 program. Some redundant code was removed from the Windows setup script. OSX setup and
run scripts were missing the executable bit - hopefully the repository will preserve that change.
2015-08-06 21:39:16 +10:00
Galleon c5a7d9c5b7 (Automated push) Update internal/source/* from qb64.bas 2015-08-05 05:12:58 -07:00
SMcNeill eb69e62827 Fix to custom font error-checking routine which used an invalid variable name and always failed.
Made use of _SCREENHIDE function so we don't update the IDE position when the screen is hidden.
2015-08-05 04:56:49 -04:00
Galleon 91e7ace500 (Automated push) Update internal/source/* from qb64.bas 2015-08-02 05:12:44 -07:00
SMcNeill ea20dad4a9 Fix to PRINT text$; USING format$; values
Added _SCREENHIDE as a FUNCTION to return 0/-1 if the screen is hidden or not.
2015-08-01 22:41:48 -04:00
Galleon 5f4363174f (Automated push) Update internal/source/* from qb64.bas 2015-07-30 05:13:40 -07:00
Galleon d78ad76d3a (Automated push) Update internal/source/* from qb64.bas 2015-07-28 05:13:04 -07:00
Luke Ceddia f2bd84b5c5 Updated Ogg Vorbis decoder and fixed some .ogg files not playing at correct speed. 2015-07-26 22:06:52 +10:00
Galleon d70ed2d42e (Automated push) Update internal/source/* from qb64.bas 2015-07-24 16:05:35 -07:00
Luke Ceddia beb3f089d8 Removed download archive of Opus tools and updated Opus licence.
This avoids having to distribute opusinfo, which had a GPL licence attached.
A link to the download and the Opus homepage remains in conversion/download.txt.
2015-07-19 15:59:10 +10:00
Luke Ceddia cfc5c90b73 Removed some libresample/libsamplerate files that were still lingering
and corrected #define in speex for Linux.
2015-07-16 00:49:52 +10:00
Luke Ceddia 6f33160368 Add the User Additions module to the QB64 compiler build at setup time. 2015-07-15 19:38:35 +10:00
Luke Ceddia d87657bde3 Replaced libsamplerate with resampler from Opus tools and deleted libresample (which was unused). 2015-07-14 22:14:20 +10:00
Galleon a38a3ddad3 (Automated push) Update internal/source/* from qb64.bas 2015-07-09 05:13:04 -07:00
Galleon 73b18284eb (Automated push) Update internal/source/* from qb64.bas 2015-06-27 05:13:19 -07:00
Galleon f4745b013d (Automated push) Update internal/source/* from qb64.bas 2015-06-20 05:12:33 -07:00
Galleon d1d1f568d9 (Automated push) Update internal/source/* from qb64.bas 2015-06-17 05:12:29 -07:00
SMcNeill bded17cf7a Change to proper 120 value and not 255 for play default value. :P 2015-05-29 13:56:12 -04:00
SMcNeill f5ebfac729 Change to PLAY to default T to 120 instead of error if < 32 or > 255 to match QB45 behavior. 2015-05-29 13:51:25 -04:00
Galleon e28fda89d3 (Automated push) Update internal/source/* from qb64.bas 2015-05-23 01:38:46 -07:00
Galleon f732b36250 (Automated push) Update internal/source/* from qb64.bas 2015-05-23 01:00:28 -07:00
Galleon cf680066af (Automated push) Update internal/source/* from qb64.bas 2015-05-23 00:11:07 -07:00
Luke Ceddia bc7fa3539e Add support for COMMAND$(n) returning the nth command line parameter, 1 through
to _COMMANDCOUNT, with 0 being the name of the program. This revision will not
build, since internal/source/ has references to the old COMMAND$ call.
2015-05-23 12:28:45 +10:00
SMcNeill 859a046cfb Fix to the previous fix (151) which quit fixing as soon as it was pushed into the repo. /SIGH 2015-05-04 09:13:32 -04:00
SMcNeill 70a5af095b Fix to OPEN bug which was introduced with "SCRN:" support with false flags being set for screen output. 2015-05-04 02:53:27 -04:00
Luke Ceddia 338a995f61 Improved support for OPEN "SCRN:".
Appropriate errors are raised for attempting to open FOR INPUT,
or calling various file-related functions on the handle (as per QB45).
2015-04-20 17:01:24 +10:00
Galleon 8e56f6e6fe (Automated push) Update internal/source/* from qb64.bas 2015-04-16 05:16:36 -07:00
SMcNeill 4e742a9c32 Support added for "SCRN:" as a file output method to the display. Fix to color bug when resizing the IDE. 2015-04-16 04:26:35 -04:00
Galleon 65b4660bea (Automated push) Update internal/source/* from qb64.bas 2015-04-11 05:14:11 -07:00
Galleon 9107324221 (Automated push) Update internal/source/* from qb64.bas 2015-04-05 05:13:05 -07:00
Galleon eab00d12e9 Fix for making starting directory exe's path in OSX 2015-03-26 04:37:39 -07:00
Galleon 784ca1f2de Correction for launching in executable's folder for Linux & OSX 2015-03-25 04:56:16 -07:00
Galleon 7458b453e3 (Automated push) Update internal/source/* from qb64.bas 2015-03-25 03:22:35 -07:00
Galleon 56228a8c23 Make function _CWD$ part of QB64's core
Implemented _STARTDIR$ function
2015-03-25 03:14:53 -07:00
Galleon 57f6ee159a Forward references for MacOSX Yosemite audio out compatibility 2015-03-22 01:16:50 -07:00
Galleon 830af1bd05 (Automated push) Update internal/source/* from qb64.bas 2015-03-12 02:14:12 -07:00
Galleon 5d41e5ec7b Major patch for OSX support
Fixes gamepad support dependency / thread of call
Allows libqb.cpp to use Objective C++
Fixes tracking/handling of SHIFT, ALT, CTRL & CAPS LOCK
Fixes serious bug in internal getticks() which caused _LIMIT, _DELAY, SLEEP, TIMER, etc to malfunction and IDE to be unusably slow
2015-03-12 02:06:48 -07:00
Galleon b52cb62c79 MacOSX fixes 2015-03-07 06:31:54 -08:00
Galleon 1eb89dde7f (Automated push) Update internal/source/* from qb64.bas 2015-03-06 19:09:57 -08:00
Galleon 89523c1523 Backed out of bad auto-generated content
Backed out changeset: fa576ac0137c
2015-03-06 19:02:33 -08:00
Galleon 2e6ba9b544 The internal\source folder should not be modified directly
Backed out changeset: 2507a0e666a9
2015-03-06 18:52:40 -08:00
Luke Ceddia 328a7f40af Manual bootstrap to work around errors in previous revisions.
In other words, I compiled QB64 with an older working version
and copied that across to internal/source/, then did a few self-compile
runs to ensure sanity.
2015-03-01 14:40:02 +11:00
Galleon f5285a1a61 (Automated push) Update internal/source/* from qb64.bas 2015-02-20 05:15:27 -08:00