Commit graph

1201 commits

Author SHA1 Message Date
Benoît Minisini
74f930e0b6 [INTERPRETER]
* BUG: Make the interpreter compile on 64 bits OS.


git-svn-id: svn://localhost/gambas/trunk@2973 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-27 21:27:42 +00:00
Benoît Minisini
3412ce6442 [CONFIGURATION]
* NEW: Object file format has changed, so bytecode version has been 
  incremented, and all projects must be recompiled. Yes, again!

[INTERPRETER]
* OPT: Optimizations in comparison operators.
* OPT: Optimize symbol lookup tables.

[COMPILER]
* OPT: Optimize symbol lookup tables.

[GB.EVAL]
* BUG: Gambas source code is correctly highlighted again.
* NEW: Quoted identifiers (those between '{' and '}') are highlighted more 
  intelligently now.


git-svn-id: svn://localhost/gambas/trunk@2971 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-27 13:51:09 +00:00
Benoît Minisini
1f592094a6 [CONFIGURATION]
* NEW: Bytecode version has been increased, and so all projects must be 
  recompiled.

[INTERPRETER]
* OPT: Objects that do not raise events do not allocate the event 
  management structure anymore. That save four pointers by object.
* NEW: Structure management is done, and embedded (static) structures are
  handled too.
* BUG: Static array management was fixed.
* NEW: All functions synonymous whose name ends with a question mark have 
  been removed.

[COMPILER]
* OPT: Some optimization again.
* BUG: EXTERN declarations compile again.

[GB.DB.SQLITE2]
* BUG: Fix a misuse of GB.NewString().


git-svn-id: svn://localhost/gambas/trunk@2970 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-26 22:01:28 +00:00
Laurent Carlier
09ed25e356 [GB.COMPRESS.ZLIB]
* BUG: Fix compilation warning about _LARGEFILE64_SOURCE redefinition.


git-svn-id: svn://localhost/gambas/trunk@2969 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-26 20:04:32 +00:00
Laurent Carlier
3b2f4ce2ae [GB.DB.ODBC]
* BUG: Fix compilations warning.

Use SQLLEN type instead of SQLINTEGER type.


git-svn-id: svn://localhost/gambas/trunk@2968 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-26 19:56:15 +00:00
Laurent Carlier
cb2e6d7bd5 [GB.SDL]
* OPT: Code cleanup, use glew instead of internal functions.


git-svn-id: svn://localhost/gambas/trunk@2967 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-26 07:09:11 +00:00
Benoît Minisini
85576a5871 [GB.DB.MYSQL]
* BUG: Fix the use of GB.NewString() API.

[GB.NET.SMTP]
* BUG: Send a CR+LF and not just a LF before sending mime part body.


git-svn-id: svn://localhost/gambas/trunk@2966 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-25 13:49:17 +00:00
Benoît Minisini
b0a0c52af0 [INTERPRETER]
* NEW: More work on structure support.
* BUG: Fix optimization in error management.

[COMPILER]
* OPT: More optimizations. The Gambas 3 compiler is faster to compile the 
  Gambas 3 IDE than the Gambas 2 compiler to compile the Gambas 2 IDE, 
  which is smaller!
* NEW: Do not compute variable position and size, as it is done by the 
  interpreter anyway.

[GB.EVAL]
* NEW: Use the same optimizations as the compiler in the parser.

[GB.XML.RPC]
* BUG: The component compiles again.



git-svn-id: svn://localhost/gambas/trunk@2964 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-25 11:19:00 +00:00
Laurent Carlier
0bee2e02dd [GB.SDL]
* BUG: Properly free allocations.


git-svn-id: svn://localhost/gambas/trunk@2962 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-24 09:56:14 +00:00
Laurent Carlier
e4836e99d6 [GB.SDL]
* BUG: Do not forget to ref/unref the font.



git-svn-id: svn://localhost/gambas/trunk@2961 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-24 09:01:25 +00:00
Benoît Minisini
48f6a6a309 [INTERPRETER]
* BUG: L'API GB.ReturnNewString() doit pouvoir retourner une chaîne vide. 
  Dans ce cas elle le transforme en un GB.ReturnNull().


git-svn-id: svn://localhost/gambas/trunk@2960 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-23 18:59:11 +00:00
Benoît Minisini
2215ca1b08 [DEVELOPMENT ENVIRONMENT]
* BUG: Correctly reset the breakpoint list when opening a project.


git-svn-id: svn://localhost/gambas/trunk@2959 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-23 18:57:25 +00:00
Laurent Carlier
9510ec8d21 [GB.SDL]
* NEW: Loading font through Font.Load() method and displaying it
       with Draw.Text() method
* NEW: Draw.Rotate() and Draw.Scale() to respectivly rotate and scale
       images and fonts when displaying them.
* NEW: Draw.ForeColor() affect image displayed too.
* OPT: Some optimizations. 


git-svn-id: svn://localhost/gambas/trunk@2958 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-23 15:27:56 +00:00
Benoît Minisini
4a544c567a [INTERPRETER]
* BUG: Use GB.ReturnNewZeroString() instead of GB.ReturnNewString() now. 
  All components using the old syntax should be fixed now.
* NEW: Start to manage structures.


git-svn-id: svn://localhost/gambas/trunk@2957 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-23 11:07:14 +00:00
Benoît Minisini
41a002012a [COMPILER]
* BUG: Reserved functions following the READ keyword are correctly detected 
  again.


git-svn-id: svn://localhost/gambas/trunk@2956 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-22 21:56:42 +00:00
Benoît Minisini
dffc0cbaa8 [GB.EVAL]
* NEW: Fix the error management the same way as in the interpreter.


git-svn-id: svn://localhost/gambas/trunk@2955 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-22 20:41:11 +00:00
Benoît Minisini
ed041dc7d0 [COMPILER]
* BUG: Forgot to add the source file that generates the reserved keywords 
  analyzer.


git-svn-id: svn://localhost/gambas/trunk@2954 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-22 19:35:18 +00:00
Benoît Minisini
117f2ac635 [INTERPRETER]
* NEW: New GB.NewZeroString() API to create a Gambas string from a 
  null-terminated string. Components were modified to use it.
* OPT: Many optimizations everywhere.

[COMPILER]
* OPT: Many optimizations. The compiler should be noticeably faster.


git-svn-id: svn://localhost/gambas/trunk@2953 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-22 18:02:34 +00:00
Benoît Minisini
8e1604e59d [CONFIGURATION]
* NEW: The bytecode version has been incremented, as the object file format 
  has changed.

[DEVELOPMENT ENVIRONMENT]
* BUG: Handle static arrays in automatic completion.

[INTERPRETER]
* BUG: Handle public static arrays correctly.

[COMPILER]
* NEW: Handle structures, and write them inside object files.
* NEW: Class options (EXPORT, CREATE...) can only be written at the 
  beginning of the source file now.
* BUG: Fix some use of uninitialized values.
* BUG: Correctly write public static arrays in *.info files.
* NEW: Do not support old OPEN syntax anymore.


git-svn-id: svn://localhost/gambas/trunk@2952 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-20 23:23:39 +00:00
Benoît Minisini
74e8fc7fed [INTERPRETER]
* OPT: Many branch prediction optimizations.


git-svn-id: svn://localhost/gambas/trunk@2951 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-19 20:18:23 +00:00
Benoît Minisini
25ad3928cc [CONFIGURATION]
* NEW: Detect PowerPC architecture.

[INTERPRETER]
* OPT: As old static arrays have been removed, a new little optimization 
  is possible in array reading and writing functions.


git-svn-id: svn://localhost/gambas/trunk@2950 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-19 15:05:45 +00:00
Benoît Minisini
a2850ebc91 [CONFIGURATION]
* BUG: Do not compile database manager anymore, it has been deprecated.
* BUG: Compile the gb.dbus component.

[INTERPRETER]
* NEW: Pointer is a real datatype now.
* NEW: Static arrays came back. They are now like real array classes, 
  except that they are not resizable.
* NEW: IsPointer() is a new function that tells if an expression is a 
  pointer.
* NEW: All XXXX?() function synonymous were removed. Use the IsXXXX() 
  version instead.
* NEW: Remove now useless source files.

[COMPILER]
* NEW: Static arrays came back, with actually the same syntax as before.

[EXAMPLES]
* BUG: Fix the examples according to the new array syntax.



git-svn-id: svn://localhost/gambas/trunk@2949 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-19 12:43:57 +00:00
David Villalobos Cambronero
9ccdbce7dd [GB.FROM]
* NEW: Spanish translation updated.

git-svn-id: svn://localhost/gambas/trunk@2948 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-17 21:55:56 +00:00
David Villalobos Cambronero
75758d32ca git-svn-id: svn://localhost/gambas/trunk@2947 867c0c6c-44f3-4631-809d-bfa615b0a4ec 2010-05-17 21:54:24 +00:00
Benoît Minisini
ce64eaa189 [DEVELOPMENT ENVIRONMENT]
* BUG: The DrawingArea.Transparent property has been removed, do not use it 
  anymore!


git-svn-id: svn://localhost/gambas/trunk@2946 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-17 11:52:53 +00:00
Benoît Minisini
a8efb8045f [INTERPRETER]
* NEW: Support for "static" arrays is finally removed.

[COMPILER]
* NEW: Support for "static" arrays is finally removed.



git-svn-id: svn://localhost/gambas/trunk@2945 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-14 21:30:54 +00:00
Benoît Minisini
ca37913578 [DEVELOPMENT ENVIRONMENT]
* BUG: Search string is correctly highlighted in all cases now.

[WEB SITE MAKER]
* NEW: German translation made by Stefan Lang.

[COMPILER]
* NEW: The 'New' keyword is now mandatory when declaring array variables 
  with dimensions. The IDE and component source code were modified 
  according to that change.

[GB.QT4.EXT]
* BUG: Search strings are correctly highlighted in editors with no syntax 
  highlighting.


git-svn-id: svn://localhost/gambas/trunk@2944 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-14 21:17:04 +00:00
Benoît Minisini
ae06242603 [COMPILER]
* BUG: Translated strings can be splitted on several lines like normal 
  strings now.


git-svn-id: svn://localhost/gambas/trunk@2943 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-14 11:51:49 +00:00
Benoît Minisini
2fd1ea3b59 [INTERPRETER]
* BUG: Correctly detect when being run as 'gbr3'.


git-svn-id: svn://localhost/gambas/trunk@2942 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-10 11:20:47 +00:00
Benoît Minisini
a1c3fa1617 [INTERPRETER]
* NEW: Change the semantic of Eof(). Now, if the stream is in blocking 
  mode, then Eof() will wait for the data before testing if something can 
  be read on the stream.
* BUG: Correctly initialize the stream flag that tells that data is always 
  available.

[COMPILER]
* BUG: Correctly raise an error when the INPUT or OUTPUT keywords are used
  with the PIPE instruction.

[GB.FORM]
* NEW: ColorChoose.ShowColorMap is a new property that allows to hide or 
  show the colormap.

[GB.QT4]
* BUG: Correctly disable Qt automatic completion in the ComboBox control.


git-svn-id: svn://localhost/gambas/trunk@2940 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-08 20:17:29 +00:00
Benoît Minisini
a11213a59c [GB.GTK]
* BUG: It's better without the debugging messages.


git-svn-id: svn://localhost/gambas/trunk@2939 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-08 15:47:49 +00:00
Benoît Minisini
3002ca88cf [GB.GTK]
* BUG: Fix a memory leak when loading an image without transparency.


git-svn-id: svn://localhost/gambas/trunk@2938 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-08 15:36:10 +00:00
Benoît Minisini
c61aa8d978 [DEVELOPMENT ENVIRONMENT]
* NEW: Support for enumerations.
* BUG: Clearing project history works again.

[COMPILER]
* NEW: Support for enumerations.


git-svn-id: svn://localhost/gambas/trunk@2935 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-05 20:58:55 +00:00
Benoît Minisini
1727304958 [DEVELOPMENT ENVIRONMENT]
* NEW: Shift+Enter disables automatic insertion of control structure 
  instructions.

[GB.FORM]
* BUG: Use images instead of pictures to draw little arrows in SidePanel 
  and MenuButton controls, so that it works with gb.gtk.

[GB.GTK]
* BUG: Found a woarkaround for sometimes slow as hell GTK+ image scaling 
  algorithm.
* BUG: Embedded windows correctly raise Open, Show and Hide events again.

[GB.QT4]
* BUG: Fix a bug in CheckBox creation that corrupted memory.


git-svn-id: svn://localhost/gambas/trunk@2934 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-05 14:26:07 +00:00
Benoît Minisini
148b6fa965 [DEVELOPMENT ENVIRONMENT]
* NEW: Default snippets are now immutable.


git-svn-id: svn://localhost/gambas/trunk@2933 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-03 22:56:52 +00:00
Benoît Minisini
ccf9bb3c50 [DEVELOPMENT ENVIRONMENT]
* NEW: Better code fragments.


git-svn-id: svn://localhost/gambas/trunk@2932 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-03 22:15:00 +00:00
Benoît Minisini
24f12621eb [DEVELOPMENT ENVIRONMENT]
* NEW: Code snippet configuration in the option dialog.
* NEW: Automatic insertion of control structures.

[GB.SETTINGS]
* NEW: The Settings class can now load settings files located inside the 
  project.

[GB.QT4.EXT]
* BUG: Selected text is now correctly deleted in block mode in the Editor 
  class.


git-svn-id: svn://localhost/gambas/trunk@2931 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-03 21:22:50 +00:00
Benoît Minisini
a010d693d3 [DEVELOPMENT ENVIRONMENT]
* NEW: Some fixes in code snippets.
* NEW: Raise the automatic completion of special methods only when three 
  characters were typed.


git-svn-id: svn://localhost/gambas/trunk@2930 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-03 12:30:10 +00:00
Benoît Minisini
98c0d81aad [CONFIGURATION]
* BUG: Fix the creation of the gbw3 symbolic link.

[DEVELOPMENT ENVIRONMENT]
* BUG: Fix an error in arrangement icon management.
* NEW: Merge all form editor toolbars.
* NEW: Support for code snippets. Type "fo" and TAB to see it. Not yet
  finished.

[INTERPRETER]
* NEW: Standard format for numbers now displays all the decimal digits.

[GB.QT4.EXT]
* BUG: Fix a possible crash in Editor selection management.


git-svn-id: svn://localhost/gambas/trunk@2929 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-03 11:46:02 +00:00
Benoît Minisini
1faa45e317 [COMPILER]
* BUG: Correctly detect self-referenced components.


git-svn-id: svn://localhost/gambas/trunk@2928 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-03 10:19:13 +00:00
Benoît Minisini
a4ec140d8a [GB.QT4.EXT]
* BUG: Fix some little problems in block selection/insertion mode.


git-svn-id: svn://localhost/gambas/trunk@2926 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-04-29 18:48:43 +00:00
Benoît Minisini
9bc6316917 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix display of arrangement icon again in the form editor.
* NEW: Two new toolbar buttons in the form editor to center selected 
  controls either horizontally or vertically.


git-svn-id: svn://localhost/gambas/trunk@2925 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-04-29 16:42:17 +00:00
Benoît Minisini
d1873301d0 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix the display of arrangement icons.
* OPT: Keep a reference on the root control is the form editor.
* BUG: Loading recent files should never crash anymore now.
* BUG: Start fixing project creation.

[INTERPRETER]
* BUG: Don't load a component if its name is the same as the main project.

[GB.QT4]
* BUG: Mouse buttons properties work again during a MouseRelease event.


git-svn-id: svn://localhost/gambas/trunk@2924 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-04-29 12:54:45 +00:00
Benoît Minisini
8d7b99daed [GB.FORM.STOCK]
* BUG: Forgot to add the .component file.


git-svn-id: svn://localhost/gambas/trunk@2923 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-04-28 21:39:06 +00:00
Benoît Minisini
32a0c4f54e [GB.QT4]
* BUG: Hidden menubar is not visible anymore.


git-svn-id: svn://localhost/gambas/trunk@2922 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-04-28 11:58:43 +00:00
Fabien Bodard
7c3cb5d029 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix a little bug


git-svn-id: svn://localhost/gambas/trunk@2921 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-04-28 06:51:30 +00:00
Benoît Minisini
cc6dfc0e33 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix and enhance Gambas 2 project conversion.

[GB.QT4]
* BUG: Allow control resizing whatever the arrangement of its container, 
  provided that its Ignore property is set.


git-svn-id: svn://localhost/gambas/trunk@2920 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-04-28 00:17:12 +00:00
Benoît Minisini
dab2e24446 [DEVELOPMENT ENVIRONMENT]
* BUG: CTRL+F and CTRL+R now correctly takes the current selected text as 
  search string in all cases.

[GB.GTK]
* NEW: The DrawingArea.Transparent has been removed.

[GB.QT4]
* NEW: The DrawingArea.Transparent has been removed.
* NEW: Do not resize the width (or the height) of a control if the parent 
  container controls it during arrangement.
* BUG: Remove a debugging message.
* BUG: Try to make controls non-opaque as much as possible, so that styles 
  having gradients like Oxygen are correctly displayed.


git-svn-id: svn://localhost/gambas/trunk@2919 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-04-27 21:05:15 +00:00
Benoît Minisini
618df42b55 [GB.QT4]
* BUG: Remove the popupmenu hack, it triggers menu using the Escape key as 
  a shortcut, and it seems not to be useful anymore.


git-svn-id: svn://localhost/gambas/trunk@2918 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-04-26 22:43:53 +00:00
David Villalobos Cambronero
09a7da93e2 git-svn-id: svn://localhost/gambas/trunk@2917 867c0c6c-44f3-4631-809d-bfa615b0a4ec 2010-04-26 14:02:40 +00:00