Commit graph

6710 commits

Author SHA1 Message Date
bgermann
3685f21cbf [GB.TERM] Compatiblitity with NetBSD
[GB.TERM]
* NEW: Compatiblitity with NetBSD
2018-08-30 09:35:44 +02:00
bgermann
b1a12236ad Convert from statfs to more portable statvfs
[INTERPRETER]
* NEW: Convert from statfs to more portable statvfs
2018-08-29 23:59:11 +02:00
bgermann
9e98045363 [GB.PDF] Compile with C++ 11
[GB.PDF]
* BUG: Compile with C++ 11 which is needed by current poppler versions
2018-08-29 23:22:44 +02:00
bgermann
bb8106cebd Fix local variable conflict for older compilers
[GB.NCURSES]
* Fix local variable conflict for older compilers
2018-08-29 19:50:41 +02:00
bgermann
e74adab7c5 Use FreeBSD exp10() fix for all BSDs
[INTERPRETER]
* BUG: The exp10() function works on all BSDs now
2018-08-29 15:36:25 +02:00
bgermann
a3df769268 Use sys/ioctl.h instead of pty.h
pty.h is not needed because its functions are not used.
Use ioctl.h additionally to the already included termios.h to import the
implicitly used functions/constants.
2018-08-29 14:29:54 +02:00
bgermann
e6028806a0 Fix libltdl workaround for NetBSD 2018-08-29 14:18:33 +02:00
gambas
078a4fe68b Fix merge request !36 made by Bastian Germann.
[GB.CRYPT]
* BUG: Fix merge request !36 made by Bastian Germann.
2018-08-29 11:46:02 +02:00
Benoît Minisini
4ff6099b5e Merge branch 'crypt' into 'master'
Remove crypt.h

See merge request gambas/gambas!36
2018-08-29 09:42:15 +00:00
gambas
d47505114b Merge branch 'master' of gitlab.com:gambas/gambas 2018-08-29 11:23:37 +02:00
gambas
7a680d738b Correctly compile void function arguments.
[GB.JIT]
* BUG: Correctly compile void function arguments.
2018-08-29 11:22:56 +02:00
bgermann
f04492c9ac Remove crypt.h
gb.crypt does not need crypt.h because it only uses crypt functions from
unistd.h. On non-linux systems there is no crypt.h which causes autoconf
to fail.
2018-08-29 09:26:48 +02:00
Benoît Minisini
502244a23c Merge branch 'prefix' into 'master'
Changes to the build system

See merge request gambas/gambas!35
2018-08-29 01:11:22 +00:00
Bastian Germann
b6a00614ef Changes to the build system 2018-08-29 01:11:22 +00:00
gambas
2aad9c0625 Make the documentation on gui components work if gb.qt4 is not installed on the system. At least one GUI component must be present.
[DEVELOPMENT ENVIRONMENT]
* BUG: Make the documentation on gui components work if gb.qt4 is not installed on the system. At least one GUI component must be present.
* BUG: Fix the stylesheet of the offline documentation.
2018-08-29 03:06:36 +02:00
gambas
bde635a666 TextEditor: Automatic brace completion is more clever now.
[GB.FORM.EDITOR]
* NEW: TextEditor: Automatic brace completion is more clever now.
2018-08-28 17:07:35 +02:00
gambas
fc2cbe819a Rename 'ClassStat' class as '_ClassStat' to avoid a possible name collision.
[GB.JIT]
* NEW: Rename 'ClassStat' class as '_ClassStat' to avoid a possible name collision.
2018-08-28 17:05:11 +02:00
gambas
7d16436c5c Eof() now correctly works on file bigger than 4GB opened in direct mode.
[INTERPRETER]
* BUG: Eof() now correctly works on file bigger than 4GB opened in direct mode.
2018-08-27 23:57:30 +02:00
gambas
4145ccd2fa Add an option to tell if we want the debugging panel to be displayed automatically when the debugger starts or when something is printed on the console.
[DEVELOPMENT ENVIRONMENT]
* NEW: Add an option to tell if we want the debugging panel to be displayed automatically when the debugger starts or when something is printed on the console.
2018-08-26 09:08:49 +02:00
gambas
fe3717bc89 Merge branch 'master' of gitlab.com:gambas/gambas 2018-08-25 14:16:14 +02:00
gambas
8939790727 Farm client: The "Show old versions" checkbox is now correctly taken into account when showing softwares.
[DEVELOPMENT ENVIRONMENT]
* BUG: Farm client: The "Show old versions" checkbox is now correctly taken into account when showing softwares. An old version will not be hidden if it is actually installed.
2018-08-25 14:14:07 +02:00
Benoît Minisini
1b3a1480f7 Merge branch 'pkgconfig' into 'master'
Find 5 components' dependencies via pkg-config

See merge request gambas/gambas!34
2018-08-24 23:45:21 +00:00
bgermann
8b4eec26f4 Find 5 components' dependencies via pkg-config
[GB.COMPRESS.ZLIB]
* NEW: Find dependency via pkg-config

[GB.DB.SQLITE2]
* NEW: Find dependency via pkg-config

[GB.NCURSES]
* NEW: Find dependency via pkg-config

[GB.PCRE]
* NEW: Find dependency via pkg-config

[GB.SDL.SOUND]
* NEW: Find dependency via pkg-config
2018-08-24 23:50:47 +02:00
Benoît Minisini
60058fd9a5 Merge branch 'nowget' into 'master'
Replace wget with HttpClient

See merge request gambas/gambas!31
2018-08-23 18:04:02 +00:00
Benoît Minisini
f0dfa829e7 Merge branch 'master' into 'master'
Fix some minor issues found while packaging for Debian without Qt4

See merge request gambas/gambas!30
2018-08-23 18:02:12 +00:00
gambas
c2b2d7d624 If an unknown symbol is called through a parent class reference, the _unknown() method is not called and an error is raised if the unknown symbol exists in the actual child class.
[INTERPRETER]
* NEW: If an unknown symbol is called through a parent class reference, the _unknown() method is not called and an error is raised if the unknown symbol exists in the actual child class.
2018-08-23 12:22:30 +02:00
gambas
706a605cc3 Correctly restore the stack after calling a method through the interpreter, and handle null values as object values having a null address automatically.
[INTERPRETER]
* NEW: Creating a NULL value now clears the object address field so that it can be freely interpreted as a Object value with a null address by the JIT compiled code.

[GB.JIT]
* BUG: Correctly restore stack after calling a method through the interpreter.
2018-08-22 09:30:27 +02:00
gambas
7ab07bd95f Correctly handle optional object arguments.
[GB.JIT]
* BUG: Correctly handle optional object arguments.
2018-08-20 19:57:47 +02:00
gambas
7492efcc0e Always load the class before accessing a static variable, as it may not be ready.
[INTERPRETER]
* BUG: FIx JIT class loading API.

[GB.JIT]
* BUG: Always load the class before accessing a static variable, as it may not be ready.
2018-08-18 15:28:19 +02:00
gambas
07ccec7358 Compile correctly optional arguments initialization.
[GB.JIT]
* BUG: Compile correctly optional arguments initialization.
2018-08-18 12:03:44 +02:00
gambas
d371614662 Correctly compile conversion from object to boolean.
[GB.JIT]
* BUG: Correctly compile conversion from object to boolean.
2018-08-17 01:04:53 +02:00
gambas
979e22f6e9 Correctly load classes from archives other than the main project one during JIT compilation.
[INTERPRETER]
* NEW: When creating a new class, set its component immediately if we know the archive it comes from.

[GB.JIT]
* BUG: Correctly load classes from archives other than the main project one.
2018-08-16 01:50:45 +02:00
gambas
6d35875a56 Correctly raise exceptions on the number of arguments of function calls.
[GB.JIT]
* BUG: Correctly raise exceptions on the number of arguments of function calls.
2018-08-15 08:37:25 +02:00
gambas
0b341e7c91 Compile optional arguments correctly.
[GB.JIT]
* BUG: Compile optional arguments correctly.
2018-08-15 00:01:51 +02:00
gambas
ccce7ad1b7 Add an option to close the tabs with the middle mouse button instead of using little close buttons.
[DEVELOPMENT ENVIRONMENT]
* NEW: Add an option to close the tabs with the middle mouse button instead of using little close buttons.

[GB.FORM]
* NEW: TabPanel: The middle mouse button does not close tabs anymore. It is now a feature only implemented in the Workspace control.

[GB.FORM.MDI]
* NEW: Workspace: CloseWithMouse is a new property. If set, the workspace tabs little close buttons are hidden, and the workspace tabs can be closed with a middle mouse click.
2018-08-14 22:46:41 +02:00
gambas
e491a6759f Allow to compile with gmime 2.4.
[GB.MIME]
* NEW: Allow to compile with gmime 2.4.
2018-08-14 18:24:45 +02:00
gambas
0297c1bafa Load classes without running the _init method, so that the JIT behaviour is closer to the interpreter behaviour.
[INTERPRETER]
* NEW: Add a JIT API for loading classes without running the _init method.

[GB.JIT]
* BUG: Load classes without running the _init method, so that the JIT behaviour is closer to the interpreter behaviour.
2018-08-14 16:46:55 +02:00
gambas
c569a234be Don't leak memory when converting an object to a boolean and correctly pop the arguments from the stack when propagating an exception.
[GB.JIT]
* BUG: Don't leak memory when converting an object to a boolean.
* BUG: Correctly pop the arguments from the stack when propagating an exception.
2018-08-14 12:15:04 +02:00
gambas
ad16238574 Correctly compile subroutines that return an unknown datatype.
[GB.JIT]
* BUG: Correctly compile subroutines that return an unknown datatype.
2018-08-14 10:57:49 +02:00
gambas
3c11086207 Debug panel: Activate the horizontal scrollbar of the search result grid.
[DEVELOPMENT ENVIRONMENT]
* NEW: Debug panel: Activate the horizontal scrollbar of the search result grid.
2018-08-13 23:10:17 +02:00
gambas
698e5dd948 Fix access to objects that can be invalid.
[GB.JIT]
* BUG: Fix access to objects that can be invalid.
2018-08-13 23:01:27 +02:00
gambas
7a129a8d83 Add support fot date variables.
[GB.JIT]
* NEW: Add support fot date variables.
2018-08-13 22:55:01 +02:00
bgermann
4782611dbb Link gb.sdl.sound with libm
sound.c has exp and log calls.

[GB.SDL.SOUND]
* Link with libm
2018-08-13 22:43:57 +02:00
gambas
bc2c0490cf DesktopFile.FromMime() now follows the freedesktop search path specifications.
[GB.DESKTOP]
* BUG: DesktopFile.FromMime() now follows the freedesktop search path specifications.
2018-08-13 11:39:09 +02:00
gambas
ffa3cd0875 Correctly read pointer variables.
[GB.JIT]
* BUG: Correctly read pointer variables.
2018-08-13 00:36:33 +02:00
gambas
bdb60ecef7 Correctly compile long public constants.
[GB.JIT]
* BUG: Correctly compile long public constants.
2018-08-13 00:24:38 +02:00
gambas
9c1fa46558 Reading variants from memory is done correctly now.
[GB.JIT]
* BUG: Reading variants from memory is done correctly now.
2018-08-12 09:43:15 +02:00
gambas
a2123c7f27 Accesses to byte global variables are compiled correctly now.
[GB.JIT]
* BUG: Accesses to byte global variables are compiled correctly now.
2018-08-12 00:22:44 +02:00
gambas
244b02c1a5 Store the sqlite connection paths relative to the project folder, or the user home directory, if possible.
[DEVELOPMENT ENVIRONMENT]
* BUG: Store the sqlite connection paths relative to the project folder, or the user home directory, if possible.
* BUG: Fix a 'msgfmt' error that was displayed when the current language has not been yet translated.
2018-08-11 17:00:28 +02:00
gambas
0975e520db JIT: Handle function datatype by raising a type mismatch error.
[INTERPRETER]
* NEW: JIT: Add an API for throwing type mismatch errors.
* BUG: Raise a type mismatch error when converting a function to a variant. Don't panic anymore.

[GB.JIT]
* BUG: Handle function datatype by raising a type mismatch error.
2018-08-11 14:06:46 +02:00