Commit graph

430 commits

Author SHA1 Message Date
Benoît Minisini
7cc9986bda [INTERPRETER]
* OPT: Native array optimizations are better. For arrays with one 
  dimension, reading is about 70% faster than gambas2, and writing 40% 
  faster.
* OPT: Collection array accessors were optimized too. Reading is about 50%
  faster and writing 60% faster. Be careful: only the array accessors were
  optimized, not the full hash table access, which is the slower part of 
  the process.


git-svn-id: svn://localhost/gambas/trunk@1036 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-01-24 10:42:42 +00:00
Benoît Minisini
6ac9fbe05b [INTERPRETER]
* BUG: Fixed the allocation of static arrays.
* BUG: Array classes array accessors now correctly check the number of 
  their argument when the array has just one dimension.
* OPT: Native array classes array accessors were optimized. For one 
  dimension arrays, reading is about 50% faster and writing 25% faster.
  The gain is smaller for higher dimensions.


git-svn-id: svn://localhost/gambas/trunk@1035 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-01-24 01:36:20 +00:00
Benoît Minisini
ec7ab0c811 [CONFIGURATION]
* NEW: Support for installing control icons in native components.

[64 BITS]
* BUG: Fixed some uses of long datatype in the gb.qt.ext component, the 
  Splitter and the Container class of gb.qt.
* BUG: Fixed some declarations in the gb.net.curl component.
* NEW: Pointer[] is a new class that represents an array of Pointer values.
* BUG: All gb.qt, gb.gtk and gb.desktop methods that deal with X11 Window 
  identifiers now use Pointer and Pointer[] datatypes instead of Integer 
  and Integer[].
* BUG: The Embedder example was updated according to the change above.

[INTERPRETER]
* BUG: Fixed the static array management that was broken by the 64 bits
  changes.

[GB.DEBUG]
* BUG: Debug.Write now does nothing if Debug.Start has not been called.

[GB.GTK]
* BUG: Fixed the implementation of the Message class that was broken.
* BUG: Fixed a crash in the Watcher class.
* BUG: Fixed the Image.Flip() and Image.Mirror() methods.
* BUG: Fixed a potential crash in timer management.
* NEW: The GridView Select event was implemented.


git-svn-id: svn://localhost/gambas/trunk@1033 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-01-23 19:56:18 +00:00
Benoît Minisini
96f68f5ce4 [INTERPRETER]
* BUG: Passing arguments by reference really works now.


git-svn-id: svn://localhost/gambas/trunk@1021 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-01-20 14:02:37 +00:00
Laurent Carlier
b54fab2aee [EXAMPLES]
* BUG: Fix keypress handling in BeastScroll and 3DWebCam.



git-svn-id: svn://localhost/gambas/trunk@1019 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-01-20 10:22:36 +00:00
Benoît Minisini
a2173e5752 [INTERPRETER]
* NEW: Object.SetProperty and Object.GetProperty now can deal with 
  public variables. 

[COMPILER]
* BUG: A better error message for expressions that cannot be passed by
  reference.

git-svn-id: svn://localhost/gambas/trunk@1017 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-01-19 20:59:09 +00:00
Benoît Minisini
074e2f98c7 [INTERPRETER]
* NEW: Arguments passed by reference were implemented.

[COMPILER]
* NEW: Arguments passed by reference were implemented.


git-svn-id: svn://localhost/gambas/trunk@1016 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-01-19 17:52:05 +00:00
Benoît Minisini
530c729927 [CONFIGURATION]
* NEW: Bytecode version is now 2.99.0.

[EXAMPLES]
* BUG: Fixed the TextEdit example according to the new TextEdit properties.

[INTERPRETER]
* NEW: VarPtr() is a function that returns a pointer to the contents of a
  variable. Only numeric variable that are local, dynamic or static can be 
  used.
* BUG: Fixed the loading of classes whose some variables are Pointer.
  
[COMPILER]
* NEW: VarPtr() is a function that returns a pointer to the contents of a
  variable. Only numeric variable that are local, dynamic or static can be 
  used.

[GB.EVAL]
* NEW: VarPtr() cannot be used with Eval().

git-svn-id: svn://localhost/gambas/trunk@1014 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-01-19 01:36:38 +00:00
Benoît Minisini
9d6302d702 [INFORMER]
* BUG: Fixed the informer that was creating bad *.info files for native 
  components.

[GB.QT.EXT]
* NEW: TextEdit text properties were splitted in normal and rich text. Now
  you have TextEdit.Text that returns the text without the markups, and
  TextEdit.RichText that returns the text with the markups. 
  TextEdit.Selection has the two same properties for the selected text.


git-svn-id: svn://localhost/gambas/trunk@1012 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-01-18 21:37:35 +00:00
Benoît Minisini
f5383f78e0 [DEVELOPMENT ENVIRONMENT]
* NEW: Put the stack backtrace list to the right.

[INTERPRETER]
* BUG: Fixed the Pointer datatype management.

[COMPILER]
* BUG: Fixed the Pointer datatype management. The object file format has 
  changed consequently. But now it can be run indifferently on 32 bits or
  64 bits systems.


git-svn-id: svn://localhost/gambas/trunk@1011 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-01-18 13:43:10 +00:00
Benoît Minisini
4c02c6d338 ******** Merged /branches/64bits r918:1003 into /trunk
[CONFIGURATION]
* NEW: 64 bits port.

[EXAMPLES]
* BUG: Fixed the AnalogWatch example.

[WIKI CGI SCRIPT]
* NEW: Some little cosmetic changes.

[INTERPRETER]
* NEW: The extern function implementation has been redesigned and is now
  based on libffi, so that it works on 64 bits system. Because of a flaw in
  the compiler design, projects that use the Pointer datatype must be
  recompiled to be used on a 64 bits system. This flaw will be fixed in
  Gambas 3.
* OPT: Put some tables into read-only memory. About 1000 bytes are saved
  for each running interpreter, except the first one.
* BUG: Does not crash anymore if a component cannot be loaded.
* NEW: Spanish translation updated.
* NEW: A new interpreter API for returning a pointer.

[COMPILER]
* BUG: Correctly compiles LONG constants inside code.

[GB.DEBUG]
* BUG: Compiles and links the gb.debug components with the thread
  libraries.

[GB.DB.SQLITE3]
* BUG: Getting the primary index of a table without primary index is safe
  now.

[GB.GTK]
* BUG: Modified the GLib priority of watched descriptors, as the main loop 
  could enter in a loop in which user interface events were not managed.
* BUG: Message boxes use application title without crashing now.

[GB.OPENGL]
* BUG: Disable dead code.

[GB.QT.EXT]
* BUG: TextEdit.TextWidth and TextEdit.TextHeight were not declared as
  read-only properties.

[GB.XML.XSLT]
* BUG: XSLT class is now declared as being not creatable.


git-svn-id: svn://localhost/gambas/trunk@1006 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-01-17 21:39:26 +00:00
Daniel Campos
4f3014dc9a [GB.GTK]
* BUG: Modified the GLib priority of watched descriptors, as the main loop could enter in a loop in which user interface events were not managed



git-svn-id: svn://localhost/gambas/trunk@998 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-01-17 12:24:45 +00:00
Laurent Carlier
7cc7c5eaaa Remove a lot of OS_OPENBSD check, move a lot of strcpy to strlcpy, strcat to strlcat and sprintf to snprintf. Only few of them are left.
git-svn-id: svn://localhost/gambas/trunk@919 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-01-06 20:06:44 +00:00
Benoît Minisini
beba6d9435 [64 BITS]
* NEW: Continue on fixing the use of long datatype.


git-svn-id: svn://localhost/gambas/trunk@917 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-01-06 18:49:23 +00:00
Laurent Carlier
16fb7c8eb2 Revert changes in libltdl to avoid problems on future updates. (Back to revision 893)
git-svn-id: svn://localhost/gambas/trunk@916 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-01-06 15:44:14 +00:00
Benoît Minisini
72aabf1920 [CONFIGURATION]
* BUG: Try to detect correctly all X11 linking paramters.

[64 BITS]
* NEW: Start to remove all ambiguous datatypes.

[DEVELOPMENT ENVIRONMENT]
* NEW: The gambas2 project was renamed to gambas3.
* BUG: The completion and signature font sizes are now the default one.
* NEW: Add support for Basque language.

[WIKI CGI SCRIPT]
* BUG: The symbol pages work again, and inheritance between class belonging
  to different components now is taken into account correctly.

[SCRIPTER]
* NEW: The gbs2 project was renamed to gbs3.


git-svn-id: svn://localhost/gambas/trunk@914 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-01-05 14:07:21 +00:00
Laurent Carlier
19bf23a739 More work on OpenBSD port, it's need more work to be complete :-/
git-svn-id: svn://localhost/gambas/trunk@913 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-01-05 01:18:28 +00:00
Laurent Carlier
8a7e5a6c32 More work on OpenBSD portage:
- acinclude.m4: update libtool macros with libtool 1.5.24 ones, this seem to fix some problems
  with configure script under OpenBSD, Linux seems to be still working 8p
- gbx_library.c: Remove lt_dlopen_flag use, as it doesn't seem to be anymore available
  in libltdl. XX_LAZY seems to be the default behaviour if available.
- others: Replacement of strcpy() with strlcpy(), as strcpy isn't available because tag as
  non secure.
- Perhaps other changes !



git-svn-id: svn://localhost/gambas/trunk@909 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-01-03 20:44:46 +00:00
Laurent Carlier
89e1b5f9e3 Disable -ldl flag for OpenBSD
git-svn-id: svn://localhost/gambas/trunk@908 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-01-03 15:34:23 +00:00
Benoît Minisini
7506dd75d6 Chanlog update for 2.0
git-svn-id: svn://localhost/gambas/trunk@904 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-01-02 00:32:00 +00:00
Laurent Carlier
4f8fafb4fa More work on OpenBSD port, it's not working yet due to linking problem but core looks like compiling fine without too much complains.
git-svn-id: svn://localhost/gambas/trunk@903 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2007-12-31 22:38:56 +00:00
Jordi Sayol
6a5cc927f9 [DEVELOPMENT ENVIRONMENT]
* NEW: Catalan translation updated.

[DATABASE MANAGER]
* NEW: Catalan translation updated.

[WIKI CGI SCRIPT]
* NEW: Catalan translation updated.

[GB.FORM]
* NEW: Catalan translation updated.

[GB.FORM.MDI]
* NEW: Catalan translation updated.

[GB.FORM.DIALOG]
* NEW: Catalan translation updated.

[GB.DB.FORM]
* NEW: Catalan translation updated.



git-svn-id: svn://localhost/gambas/trunk@902 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2007-12-31 21:27:53 +00:00
Benoît Minisini
95ddd69889 [CONFIGURATION]
* NEW: The ./reconf script now uses autoreconf, so that the m4 directory is
  automatically taken into account.


git-svn-id: svn://localhost/gambas/trunk@901 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2007-12-31 16:12:09 +00:00
Laurent Carlier
72d82296ae Add support for OpenBSD in acinclude.m4
git-svn-id: svn://localhost/gambas/trunk@900 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2007-12-31 16:01:06 +00:00
Laurent Carlier
2313ac798d [GB.SDL.SOUND]
* BUG: Add local macro for libsdl check. Should fix problems when sdl development files are not installed.



git-svn-id: svn://localhost/gambas/trunk@899 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2007-12-31 15:19:15 +00:00
Laurent Carlier
8503ca8d38 [GB.SDL]
* BUG: Add local macro for libsdl check. Should fix problems when sdl development files are not installed.



git-svn-id: svn://localhost/gambas/trunk@898 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2007-12-31 15:06:15 +00:00
Benoît Minisini
22aa2dd78a * ChangeLog updated for 2.0.0
git-svn-id: svn://localhost/gambas/trunk@897 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2007-12-31 14:18:55 +00:00
Benoît Minisini
ba8c5ce52e [EXAMPLES]
* NEW: Adds the Fabien's 3DWebCam project as new example.


git-svn-id: svn://localhost/gambas/trunk@896 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2007-12-31 13:13:28 +00:00
Benoît Minisini
0111af05dc [CONFIGURATION]
* Removed the out-of-date README.HOW-TO-PACKAGE-GAMBAS.html

[WIKI CGI SCRIPT]
* NEW: Display "See Also" sections with just a title.


git-svn-id: svn://localhost/gambas/trunk@894 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2007-12-30 16:55:58 +00:00
Benoît Minisini
ba19f3c1dd * Copy https://gambas.svn.sourceforge.net/svnroot/gambas/2.0 to https://gambas.svn.sourceforge.net/svnroot/gambas/gambas
git-svn-id: svn://localhost/gambas/trunk@893 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2007-12-30 16:41:49 +00:00