Commit graph

2430 commits

Author SHA1 Message Date
Benoît Minisini
ca5fb092df [GB.EVAL]
* BUG: Eval() correctly returns a value again.


git-svn-id: svn://localhost/gambas/trunk@4112 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-09 00:29:06 +00:00
David Villalobos Cambronero
00716c0a9d [DEVELOPMENT ENVIROMENT]
* NEW: Spanish translation updated.

git-svn-id: svn://localhost/gambas/trunk@4111 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-09 00:06:11 +00:00
Benoît Minisini
2232c61703 [INTERPRETER]
* BUG: Fix a crash in stack backtrace management.


git-svn-id: svn://localhost/gambas/trunk@4110 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-08 22:04:52 +00:00
Benoît Minisini
f17878075b [CONFIGURATION]
* NEW: Switch version to 2.99.4.

[INTERPRETER]
* OPT: Optimize a little case insensitive string comparison. Hash table
  code is consequently faster.

[GB.SDL]
* NEW: Comment old Cursor class implementation.


git-svn-id: svn://localhost/gambas/trunk@4109 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-08 20:23:15 +00:00
Benoît Minisini
7923377850 [INTERPRETER]
* OPT: A little optimization in string allocation.
* OPT: Optimize returning from a function.
* OPT: A little optimization in conditonal jump.


git-svn-id: svn://localhost/gambas/trunk@4108 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-08 20:08:33 +00:00
Laurent Carlier
f15115ca84 [GB.SDL]
* BUG: Disable Cursor handling, ad it's buggy and incomplete. Only default cursor is available.


git-svn-id: svn://localhost/gambas/trunk@4107 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-08 19:20:50 +00:00
Benoît Minisini
0ab71b28bf [INTERPRETER]
* OPT: Don't use glibc memcmp() to compare strings. My own routine is a 
  little faster according to valgrind.
* OPT: The UTF-8 String class routines Left(), Mid() and Right() have been 
  optimized. The positions of the first 256 characters of the last string 
  processed by the String class are cached.
* OPT: Some native methods can be called like any other native subroutines.
  But that can be used only inside the interpreter, not in a component.
* OPT: The '&' operator is faster now when it takes two arguments only (the
  most frequent case).


git-svn-id: svn://localhost/gambas/trunk@4106 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-08 16:01:36 +00:00
Benoît Minisini
67ecd4b00a [INTERPRETER]
* NEW: New syntax for GB.AddString() and GB.ExtendString() interpreter API.
  Do not pass the string by reference anymore.
* NEW: GB.AddChar() is a new API for adding just a char to a string.

[GB.DB.SQLITE2]
* BUG: Fix ignored system call return values.

[GB.DB.SQLITE3]
* BUG: Fix ignored system call return values.

[GB.DB.NET]
* BUG: Fix ignored system call return values.

[GB.V4L]
* BUG: Remove some unused local variables.


git-svn-id: svn://localhost/gambas/trunk@4105 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-07 19:43:11 +00:00
Benoît Minisini
3840aa7985 [INTERPRETER]
* OPT: Optimize some string functions by not using arguments passed by 
  reference.
* OPT: Integrate the "=" operator function into the main execution loop to
  save one function call.
* OPT: Optimize string comparison functions on x86 and x64_64 architectures
  by comparing eight bytes in one shot.


git-svn-id: svn://localhost/gambas/trunk@4104 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-07 12:38:29 +00:00
Benoît Minisini
1ab9a64c99 [DEVELOPMENT ENVIRONMENT]
* NEW: When inserting an existing module, class, form... the file view
  automatically show hidden files so that the ".src" directory inside 
  Gambas projects is always visible.

[GB.FORM]
* NEW: DirView.Settings is a new property that allows the Settings class to
  automatically save or restore settings through its Read and Write 
  methods.
* BUG: Fix the management of the ShowHidden property in FileView.
* BUG: Fix how FileView settings are saved and restored.


git-svn-id: svn://localhost/gambas/trunk@4103 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-07 01:58:03 +00:00
Benoît Minisini
070f4dff00 [GB.FORM.MDI]
* BUG: Workspace with bottom orientation correclty shows its tabbar again.


git-svn-id: svn://localhost/gambas/trunk@4102 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-07 00:34:28 +00:00
Benoît Minisini
2b2d3e448f [DEVELOPMENT ENVIRONMENT]
* BUG: When converting a Gambas 2 project, do not try to convert symbolic
  links.


git-svn-id: svn://localhost/gambas/trunk@4101 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-06 21:07:55 +00:00
Benoît Minisini
bf1c0c2cda [INTERPRETER]
* BUG: Really fix the way Trim() handle null strings. Now there is no 
  memory leaks anymore.


git-svn-id: svn://localhost/gambas/trunk@4100 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-06 20:47:26 +00:00
Benoît Minisini
19d536a912 [DEVELOPMENT ENVIRONMENT]
* OPT: Project items contents is loaded from disk only if the project items
  is visible.

[WIKI CGI SCRIPT]
* BUG: Symbol syntax for array writing has been fixed.

[EXAMPLES]
* NEW: Update example project titles.
* NEW: AnalogWatch has been rewritten with the Paint class.

[GB.FORM]
* BUG: FileView works correctly again.


git-svn-id: svn://localhost/gambas/trunk@4099 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-06 18:31:30 +00:00
Benoît Minisini
acae4c3277 [DEVELOPMENT ENVIRONMENT]
* BUG: Now just print a warning when creating the project directory icon is
  impossible.
* BUG: Fix the other warning messages so that they are printed the same 
  way.


git-svn-id: svn://localhost/gambas/trunk@4098 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-06 13:58:21 +00:00
Benoît Minisini
455dafa639 [INTERPRETER]
* BUG: DateAdd() does not raise an overflow error anymore when used on a
  time value.


git-svn-id: svn://localhost/gambas/trunk@4096 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-06 11:05:01 +00:00
Benoît Minisini
37894ac0db [INTERPRETER]
* BUG: Fix a bug in type transitivity in Trim().


git-svn-id: svn://localhost/gambas/trunk@4095 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-06 02:32:34 +00:00
Jordi Sayol
a5254d6268 [DEVELOPMENT ENVIRONMENT]
* NEW: Update Catalan tips


git-svn-id: svn://localhost/gambas/trunk@4094 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-05 20:15:34 +00:00
Benoît Minisini
d16a433b3e [DEVELOPMENT ENVIRONMENT]
* BUG: Ignore ValueBox.MaxLength property when converting a Gambas 2 form.


git-svn-id: svn://localhost/gambas/trunk@4093 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-05 20:06:35 +00:00
Benoît Minisini
7a03d0ebfb [DEVELOPMENT ENVIRONMENT]
* BUG: Fix desktop detection in the system information dialog.
* BUG: Recent projects are correctly filtered now the second time the 'open
  project dialog' is opened.

[WIKI CGI SCRIPT]
* BUG: Fix the TODO page when showing which symbols have no documentation.

[GB.FORM]
* BUG: FileView now ignores unreadable directories.

[GB.FORM.MDI]
* NEW: Action.ConfigureToolbar has been hidden as Action._ConfigureToolbar.

[GB.GTK]
* NEW: Action.Register has been hidden as Action._Register.

[GB.QT4]
* NEW: Action.Register has been hidden as Action._Register.


git-svn-id: svn://localhost/gambas/trunk@4092 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-05 19:57:05 +00:00
Benoît Minisini
721c80fd98 [GB.NET.CURL]
* BUG: Really fix compilation on old versions of libcurl.


git-svn-id: svn://localhost/gambas/trunk@4091 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-05 19:21:26 +00:00
Jordi Sayol
54c5fdcbe8 [DEVELOPMENT ENVIRONMENT]
* NEW: Catalan translation updated.

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

[GB.REPORT]
* NEW: Updated Catalan translation.

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

[EXAMPLES]
* NEW: Updated WebBrowser Catalan translation.
* NEW: Updated TreeView Catalan translation.



git-svn-id: svn://localhost/gambas/trunk@4090 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-05 19:12:20 +00:00
Laurent Carlier
1c4c80dd35 [GB.NET.CURL]
* BUG: Add missing error opcodes in old curl libraries.

CNet.c:136: error: ‘CURLE_FTP_PRET_FAILED’ undeclared here (not in a
function)
CNet.c:139: error: ‘CURLE_FTP_BAD_FILE_LIST’ undeclared here (not in a
function)
CNet.c:140: error: ‘CURLE_CHUNK_FAILED’ undeclared here (not in a
function)
make[4]: *** [CNet.lo] Errore 1



git-svn-id: svn://localhost/gambas/trunk@4089 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-05 11:31:18 +00:00
Benoît Minisini
8cb4217952 [DEVELOPMENT ENVIRONMENT]
* BUG: When hitting F11 to show the console, the console parent tab is now
  automatically made visible.
* BUG: When converting a Gambas 2 project, the IDE now checks that the
  project is not already opened somewhere else, and does not leave the 
  backup project locked if the conversion has succeeded.


git-svn-id: svn://localhost/gambas/trunk@4088 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-05 00:56:30 +00:00
Benoît Minisini
dc2318698a [COMPILER]
* BUG: Fix compilation of function calls having more than 32 ByRef 
  arguments.


git-svn-id: svn://localhost/gambas/trunk@4087 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-04 23:20:53 +00:00
Benoît Minisini
c738b0284e [GB.NET.CURL]
* NEW: A lot of code clean-up.


git-svn-id: svn://localhost/gambas/trunk@4086 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-04 20:17:56 +00:00
Benoît Minisini
e08a2e5a0b [GB.NET.CURL]
* BUG: Disable pointless constants inherited from gb.net Net class.
* NEW: Disable other error code constants.


git-svn-id: svn://localhost/gambas/trunk@4085 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-04 14:08:54 +00:00
Benoît Minisini
06aab3aa0a [GB.NET.CURL]
* NEW: Curl.ErrorText is a new property that returns the error string 
  associated with the error code returned by the curl library. If 
  Curl.Status is positive, then a null string is returned.
* BUG: Disable error code constants for unsupported curl features.


git-svn-id: svn://localhost/gambas/trunk@4084 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-04 13:39:33 +00:00
Benoît Minisini
de28acb52b [GB.NET.CURL]
* NEW: Update CURL error codes and add some missing constants.


git-svn-id: svn://localhost/gambas/trunk@4083 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-04 13:14:28 +00:00
Benoît Minisini
2901c85ea7 [GB.NET]
* NEW: Remove the Net.MaxPathLength constant.


git-svn-id: svn://localhost/gambas/trunk@4082 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-04 09:45:44 +00:00
Benoît Minisini
db816a04e2 [WIKI CGI SCRIPT]
* NEW: Do not use the cache anymore.

[EXAMPLES]
* BUG: Fix some form layout in the Database example.

[GB.DB.FORM]
* BUG: DataBrowser is correctly updated now when its DataSource changes.


git-svn-id: svn://localhost/gambas/trunk@4081 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-04 02:08:04 +00:00
Benoît Minisini
5b853ba5f3 [INTERPRETER]
* NEW: Quote comma in Html$().

[GB.WEB]
* NEW: Response.SetCookie() has a new optional argument to set if the 
  cookie is "HttpOnly".
* NEW: Session cookies are now automatically "HttpOnly".


git-svn-id: svn://localhost/gambas/trunk@4079 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-03 09:52:28 +00:00
Benoît Minisini
ce3c5d7e53 [INTERPRETER]
* BUG: The previous Write new feature really works now.


git-svn-id: svn://localhost/gambas/trunk@4078 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-03 01:55:51 +00:00
Benoît Minisini
47ed274add [INTERPRETER]
* NEW: Write instruction can write a bunch of bytes from a pointer address.


git-svn-id: svn://localhost/gambas/trunk@4077 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-03 01:45:52 +00:00
Benoît Minisini
2afe7d8f6b [DEVELOPMENT ENVIRONMENT]
* NEW: Some cosmetic changes in system information dialog and tips dialog.


git-svn-id: svn://localhost/gambas/trunk@4076 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-02 16:44:20 +00:00
Radek Fryšták
8385b604a3 [DEVELOPMENT ENVIRONMENT]
* NEW: Update czech translation
* NEW: Update czech tips


git-svn-id: svn://localhost/gambas/trunk@4075 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-02 09:36:04 +00:00
Benoît Minisini
0f8eb4ed65 [GB.EVAL]
* OPT: Use an intermediate string buffer when analyzing a line of code.


git-svn-id: svn://localhost/gambas/trunk@4074 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-01 18:50:07 +00:00
Benoît Minisini
0c6a0e39c5 [GB.QT4]
* OPT: Optimizations in the Action property management.

[GB.GTK]
* OPT: Optimizations in the Action property management.


git-svn-id: svn://localhost/gambas/trunk@4073 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-01 14:19:34 +00:00
Benoît Minisini
8ff148431c [INTERPRETER]
* BUG: Fix FOR...NEXT loops for Single and Float datatypes.


git-svn-id: svn://localhost/gambas/trunk@4072 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-01 11:46:32 +00:00
Benoît Minisini
a21a408a78 [EXAMPLES]
* NEW: New StarField example made by Laurent Carlier.


git-svn-id: svn://localhost/gambas/trunk@4071 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-01 00:59:00 +00:00
Benoît Minisini
52552bd548 [DEVELOPMENT ENVIRONMENT]
* NEW: Add a project filter in the recent project list of the welcome 
  dialog.

[GB.REPORT]
* BUG: Fix a typo mistake in ReportVBox class.


git-svn-id: svn://localhost/gambas/trunk@4070 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-01 00:39:54 +00:00
Benoît Minisini
69c6c265d4 [GB.SDL.SOUND]
* BUG: Do not stop watching a file descriptor if it is not watched at
  component exit.


git-svn-id: svn://localhost/gambas/trunk@4069 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-08-31 23:56:33 +00:00
Benoît Minisini
44a657ac51 [INTERPRETER]
* BUG: Fix FOR...NEXT loop with Byte, Short and Single datatypes.
* BUG: FOR...NEXT loop optimization now works correctly if the step sign
  changes.


git-svn-id: svn://localhost/gambas/trunk@4068 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-08-31 23:42:46 +00:00
Benoît Minisini
b452559b5d [INTERPRETER]
* BUG: When checking inheritance, ignore the case of the "_new" special 
  method name.

[GB.REPORT]
* BUG: Fix some bad method overrides.


git-svn-id: svn://localhost/gambas/trunk@4067 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-08-31 02:35:54 +00:00
Benoît Minisini
2df008159f [INTERPRETER]
* NEW: The LIKELY() and UNLIKELY() macros do nothing now, as it seems that
  recent CPUs are better than humans for branch prediction.
* BUG: Error.Backtrace is accurate now.


git-svn-id: svn://localhost/gambas/trunk@4066 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-08-31 02:28:48 +00:00
Benoît Minisini
f4854267bf [GB.DESKTOP]
* NEW: Support for LXDE in Desktop.OpenTerminal().


git-svn-id: svn://localhost/gambas/trunk@4065 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-08-30 23:52:15 +00:00
Benoît Minisini
252895cdc6 [WEB SITE MAKER]
* BUG: Fix PayPal link.
* BUG: Fix default font in style sheets.

[INTERPRETER]
* BUG: Now an inherited method checks that it has the same signature as the
  parent method. This check is not done for a native class inherting 
  another native class. C/C++ programmers are supposed to know what they 
  are doing. :-)

[GB.DB.FORM]
* BUG: Rename all Refresh() methods as Update() in all controls, so that 
  the Refresh() method inherited from Control is not badly overridden.
* NEW: Change the way DataView chooses the height of a row.

[GB.GTK]
* NEW: Control.Refresh() now takes no argument.
* NEW: DrawingArea.Refresh() keeps taking four optional arguments 
  describing the sub-rectangle to refresh.

[GB.QT4]
* NEW: Control.Refresh() now takes no argument.
* NEW: DrawingArea.Refresh() keeps taking four optional arguments 
  describing the sub-rectangle to refresh.


git-svn-id: svn://localhost/gambas/trunk@4064 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-08-30 23:50:38 +00:00
Benoît Minisini
97616dcc18 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix "delete container only" and "embed into container" functions in
  the form editor.
* NEW: Add a filter in the "recent" tab of the "open project" dialog.


git-svn-id: svn://localhost/gambas/trunk@4063 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-08-30 19:25:40 +00:00
Benoît Minisini
6390707515 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix the "Gambas web site" button tooltip in the help browser.


git-svn-id: svn://localhost/gambas/trunk@4062 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-08-30 09:28:52 +00:00
Benoît Minisini
f6f0fc743f [DEVELOPMENT ENVIRONMENT]
* BUG: Fix bad project file links in the help browser.

[GB.QT4.WEBKIT]
* BUG: Raise the Error event later, so that setting the URL property during
  its event handler works correctly.


git-svn-id: svn://localhost/gambas/trunk@4061 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-08-30 00:52:40 +00:00