Commit graph

2166 commits

Author SHA1 Message Date
gambas
4ef3334245 WAIT with a positive value should not block anymore in some case.
[INTERPRETER]
* BUG: WAIT with a positive value should not block anymore in some case.
2021-04-28 23:44:16 +02:00
Christof Thalhofer
f524a2eb9d fix gb.test bug 2181
[GB.TEST]
* BUG: gb.test does not print a real error's text
2021-04-27 13:44:35 +02:00
gambas
5bcecf2c41 Use 'SIGUSR2' signal instead of 'SIGUSR1' to stop debugged processes, because 'SIGUSR1' makes WebKit crash.
[GB.DEBUG]
* BUG: Use 'SIGUSR2' signal instead of 'SIGUSR1' to stop debugged processes, because 'SIGUSR1' makes WebKit crash.
2021-04-27 10:39:05 +02:00
gambas
cdafe4c211 Use 'String[].Remove()' instead of 'String[].Extract()' which was not needed.
[GB.TEST]
* OPT: Use 'String[].Remove()' instead of 'String[].Extract()' which was not needed.
2021-04-13 00:35:31 +02:00
Christof Thalhofer
6872813adc gb.test Prints line numbers for clickable links
[GB.TEST]
*NEW: Prints line numbers in TAP output so that the IDE can create clickable links to the code.
2021-04-12 22:50:36 +02:00
gambas
77654d842f Add GB.DateFromString() API.
[INTERPRETER]
* NEW: Add GB.DateFromString() API.
2021-04-10 23:05:09 +02:00
gambas
171b46c2f3 Tells the database driver if the connection has already been closed when releasing a query result.
[INTERPRETER]
* NEW: Add an API to know if a native error has already been raised.

[GB.DB]
* NEW: The Result.Release() driver API now tells if the connection has been closed.
* NEW: Raise an error when retrieving the primary key fails, if the driver has not already raised it.
2021-04-10 16:15:34 +02:00
gambas
256942831f Fix corner-cases for forward-only Result objects.
[GB.DB]
* BUG: Don't call the collation driver routine if the 'no_collation' flag is set by the database driver.
* BUG: Do not try to seek anywhere in the Result object if the 'no_seek' flag is set, even if the row count is positive.
* BUG: Result.Delete() never removes a row from the result set if its row count is negative (i.e. if it is forward-only).
2021-04-10 03:41:31 +02:00
gambas
5fea1897fb Url$() does not encode spaces with the '+' character anymore, as this is deprecated, and works only inside query part of the URL.
[INTERPRETER]
* BUG: Url$() does not encode spaces with the '+' character anymore, as this is deprecated, and works only inside query part of the URL.
2021-04-09 03:41:02 +02:00
gambas
f6fab7df97 Update authors.
[GB.COMPRESS]
* NEW: Update authors.
2021-04-05 15:03:38 +02:00
gambas
1beaf47ca7 Merge branch 'master' of gitlab.com:gambas/gambas 2021-04-03 13:15:10 +02:00
gambas
03913217d1 Make a project icon.
[GB.JIT]
* NEW: Make a project icon.
2021-04-03 12:46:45 +02:00
gambas
41cb5cbfe0 Use a lock file to prevent background task output on standard error from mixing.
[COMPILER]
* BUG: Use a lock file to prevent background task output on standard error from mixing.
2021-04-03 12:45:19 +02:00
Benoît Minisini
14dff78d3f Merge branch 'kill_trunk_h' into 'master'
Detect git/svn version with a macro instead of creating a header file

See merge request gambas/gambas!216
2021-04-03 10:41:04 +00:00
gambas
3ccbc7281e * Backward-compatible change when using date or time separators for date or time elements having none.
[INTERPRETER]
* NEW: If the current localization uses the same separator for all date elements having a separator,
  then the element having no separator will use that same element if the "/" format character
  is used in the Format() function. Same change for the time separators.
2021-04-02 17:07:41 +02:00
Laurent Carlier
82fbda28e8
Detect git/svn version with a macro instead of creating a header file 2021-03-31 09:26:49 +02:00
gambas
98fffa60a1 When compiling forms, errors at the end of the class file are not associated with the form anymore.
[COMPILER]
* BUG: When compiling forms, errors at the end of the class file are not associated with the form anymore.
2021-03-25 01:14:37 +01:00
gambas
a5d164134e Support for the GB_GUI_TRAYICON_NO_DBUS environment variable.
[GB.GUI.TRAYICON]
* NEW: Support for the GB_GUI_TRAYICON_NO_DBUS environment variable.
2021-03-18 17:20:30 +01:00
gambas
3240ebd8ef Fix the default NULL value for objects. JIT functions returning NULL objects as default value do not crash anymore.
[GB.JIT]
* BUG: Fix the default NULL value for objects. JIT functions returning NULL objects as default value do not crash anymore.
2021-03-10 01:55:50 +01:00
gambas
8668ed5a69 GB.Call() API now works correctly again when calling static methods.
[INTERPRETER]
* NEW: Task.Kill() method is now a synonymous of Task.Stop().
* BUG: GB.Call() API now works correctly again when calling static methods.
2021-03-09 23:01:22 +01:00
gambas
8e2879f269 Class that inherits an array class now inherits its internal array flag too.
[INTERPRETER]
* BUG: Class that inherits an array class now inherits its internal array flag too.
2021-03-08 16:19:12 +01:00
gambas
d5c59c123c Change the GB_FUNCTION structure so that it stores the index of the method instead of its description pointer.
[INTERPRETER]
* NEW: Change the GB_FUNCTION structure so that it stores the index of the method instead of its description pointer.

[GB.DATA]
* OPT: The new GB_FUNCTION structure allows to reduce the size of the GRAPH_DESC structure.
2021-03-07 23:51:12 +01:00
gambas
50db463077 Support for '#Script' preprocessor keyword.
[COMPILER]
* NEW: Support for '#Script' preprocessor keyword.

[GB.EVAL]
* NEW: Support for '#Script' preprocessor keyword.
2021-03-06 22:18:15 +01:00
Christof Thalhofer
97e67b9481 gb.test use dot instead of colon in TAP output
[GB.TEST]
* OPT: Use dot instead of colon in TAP output for testmodule.testmethod
2021-03-06 14:14:58 +01:00
gambas
1656bfa06c Test.BailOut() now raises an error to quit later, instead of quitting immediately, to avoid circular references warning.
[GB.TEST]
* NEW: Test.BailOut() now raises an error to quit later, instead of quitting immediately, to avoid circular references warning.
2021-03-06 13:17:35 +01:00
gambas
ffe87b6074 Tabs and newlines are now replaced by spaces inside error messages. Otherwise the debugger breaks.
[GB.DEBUG]
* BUG: Tabs and newlines are now replaced by spaces inside error messages. Otherwise the debugger breaks.
2021-03-06 13:17:35 +01:00
gambas
321809c4c7 Keywords and subroutines are now returned by two different properties of the System class.
[GB.EVAL]
* NEW: Keywords and subroutines are now returned by two different properties of the System class.
* NEW: System properties Keywords, Subroutines and Datatypes now return a read-only array.

[GB.EVAL.HIGHLIGHT]
* NEW: Support for the new System Keywords and Subroutines properties.
2021-03-06 13:17:35 +01:00
gambas
1662aec5f2 Add an API to set the read-only flag of an array.
[INTERPRETER]
* NEW: Add an API to set the read-only flag of an array.
2021-03-06 13:17:35 +01:00
gambas
c4bc1a9ef6 Add more color constants.
[GB.IMAGE]
* NEW: Add more color constants.
2021-03-06 13:17:35 +01:00
gambas
5e6644409e Timers are not inherited anymore by background tasks.
[INTERPRETER]
* NEW: Timers are not inherited anymore by background tasks. They are actually inherited, but immediately disabled the first time they trigger inside the background task.
2021-03-06 13:17:35 +01:00
gambas
439af29083 TrayIcon: The Picture property kind is now "Picture:NoCache" so that the trayicon icon is not modified when the current theme is dark.
[GB.GUI.TRAYICON]
* NEW: TrayIcon: The Picture property kind is now "Picture:NoCache" so that the trayicon icon is not modified when the current theme is dark.
2021-03-06 13:17:35 +01:00
gambas
e23fca2ecc The enumerator object now can register a free function that is called when the enumeration ends or is aborted.
[INTERPRETER]
* NEW: The enumerator object now can register a free function that is called when the enumeration ends or is aborted.
2021-03-06 13:17:35 +01:00
Christof Thalhofer
8ebf5b5e61 gb.test report Error.Where on error and crash
[GB.TEST]
* NEW: Report Error.Where on error and crash.
2021-03-06 13:17:35 +01:00
Tobias Boege
6dcf1584b2 gb.test: don't mark string formats as translatable
[GB.TEST]
* BUG: Remove the marking of some string as translatable which are just formats, like "&1: &2".
2021-03-06 13:17:35 +01:00
gambas
fd7160b617 Allow ON ... GOTO / GOSUB to span on multiple lines.
[COMPILER]
* NEW: Allow ON ... GOTO / GOSUB to span on multiple lines.
2021-03-06 13:17:35 +01:00
gambas
d68c687b4e Fix a crash when GB.ReturnNewString() is used with a zero length.
[INTERPRETER]
* BUG: Fix a crash when GB.ReturnNewString() is used with a zero length.
2021-02-23 18:54:34 +01:00
gambas
ffe6133fd7 Still fixing Gambas highlighting of space characters.
[GB.EVAL]
* BUG: Still fixing Gambas highlighting of space characters.
2021-02-15 19:26:29 +01:00
gambas
8360ee65eb Fix space characters highlighting again.
[GB.EVAL]
* BUG: Fix space characters highlighting again.
2021-02-15 16:15:18 +01:00
gambas
69623f1eea Fix how highlighting deals with spaces.
[GB.EVAL]
* BUG: Fix how highlighting deals with spaces.
2021-02-15 03:20:41 +01:00
gambas
1609a6c60a Fix automatic conversion of multi-dimensional arrays.
[INTERPRETER]
* BUG: Fix automatic conversion of multi-dimensional arrays.
2021-02-10 19:20:43 +01:00
gambas
5c8f4e1b68 Really fix compilation on 32-bits systems.
[INTERPRETER]
* BUG: Really fix compilation on 32-bits systems.
2021-02-10 15:20:04 +01:00
gambas
8ef319b7cc Fix string array search with special comparisons.
[INTERPRETER]
* BUG: Fix string array search with special comparisons.
2021-02-10 15:18:01 +01:00
gambas
072101e02a Fix compilation on 32-bits systems.
[INTERPRETER]
* BUG: Fix compilation on 32-bits systems.
2021-02-10 14:48:14 +01:00
gambas
e7898916e9 Replace the Array.Sorted property by explicit FindSorted(), ExistSorted()... methods.
[INTERPRETER]
* BUG: Replace the Array.Sorted property by explicit FindSorted(), ExistSorted()... methods.
2021-02-09 23:36:09 +01:00
gambas
0fd80f690d Array.Sorted is a new property that makes the Find() and Exist() methods use a binary search algorithm. In other words, it tells the interpreter that the array is sorted.
[INTERPRETER]
* NEW: Array.Sorted is a new property that makes the Find() and Exist() methods use a binary search algorithm. In other words, it tells the interpreter that the array is sorted.
* BUG: Object[].Find() now correctly takes the optional 'Start' argument in account.
2021-02-09 20:28:58 +01:00
gambas
95572fb040 Fix multi-dimensional arrays management.
[INTERPRETER]
* BUG: Fix multi-dimensional arrays management.
2021-02-09 02:19:39 +01:00
gambas
15135fe60b Raise a memory error if the size of an array element overflows. The maximum size is now 16 MB minus one byte.
[INTERPRETER]
* BUG: Fix initialization of multi-dimensional array.
* NEW: Raise a memory error if the size of an array element overflows. The maximum size is now 16 MB minus one byte.
2021-02-08 22:08:15 +01:00
gambas
991695e493 Array access is now about 15% faster.
[INTERPRETER]
* OPT: Array access is now about 15% faster.
2021-02-08 21:45:29 +01:00
gambas
47a9a6679b '#Include" is a new preprocessor reserved identifier. Fix preprocessor lines highlighting.
[COMPILER]
* NEW: '#Include" is a new preprocessor reserved identifier.
* BUG: Always raise a syntax error if a preprocessor line starts with an unknown reserved identifier.

[GB.EVAL]
* BUG: Fix preprocessor lines highlighting.
2021-02-06 17:47:32 +01:00
gambas
ab74b3195d Stop watching debugger file descriptor as soon as there is a read error.
[GB.DEBUG]
* BUG: Stop watching debugger file descriptor as soon as there is a read error.
2021-02-06 17:05:03 +01:00