Commit Graph

30237 Commits

Author SHA1 Message Date
blikblum
d2117f9285 * Set ReturnCode value after a call to ExecSqlList
git-svn-id: trunk@12972 -
2009-03-28 15:20:32 +00:00
ivost
ca45377a86 * fixed calling convention of some mysql functions (maybe there are more wrong)
git-svn-id: trunk@12971 -
2009-03-27 22:38:06 +00:00
joost
9938d57233 * Initial implementation of FastCgi support
git-svn-id: trunk@12970 -
2009-03-27 22:33:27 +00:00
joost
b4a8ae3637 Patch from Graeme Geldenhuys to fix a compiler-hint
git-svn-id: trunk@12969 -
2009-03-27 21:35:49 +00:00
yury
d779e1e587 * Patch by Paul Ishenin for wince's commctrl.
git-svn-id: trunk@12967 -
2009-03-27 17:55:29 +00:00
ivost
6e0f22ce5e * fixed call of mysql_library_init in TryInitializeMysql
git-svn-id: trunk@12966 -
2009-03-27 02:38:57 +00:00
joost
24d3fb02ce * Patch from Hwang Weng Sun to allow more then 128 fields in a SQLDA structure, bug #13340
git-svn-id: trunk@12965 -
2009-03-26 16:51:03 +00:00
daniel
7084dd4192 * Apply patch written by Jonas in bug report 13362 to make the gpm
unit handle EINTR situations.

git-svn-id: trunk@12964 -
2009-03-23 22:20:56 +00:00
Jonas Maebe
757abc620a * comparing tdatetime variant values has to happen without an epsilon,
as all bits of the double value encode date/time information
    (mantis #13110)

git-svn-id: trunk@12962 -
2009-03-23 17:00:58 +00:00
michael
f641281a7e * Patch from Sergei Gorelkin:
+ added TXPathBinaryNode as a common ancestor for binary operations;
  + TXPathBooleanOpNode now handles only 'and' and 'or' operators,
    the purpose is to not evaluate the second argument if the result can
    be determined by the first argument;
  * Comparison operations moved to TXPathCompareNode and fixed
    to support INFs and NANs correctly;
  * Fixed TranslateWideString() that was not deleting characters;
  * Fixed 'substring-after' function so its result is empty when argument
    string does not contain the pattern;
  * Fixed 'round' funcion so it complies to the specs;
  * Completed implementation of 'substring' function (but surrogate pairs
    are not handled yet);
  * Mask exInvalidOp and exZeroDivide FPU exceptions while evaluating
    expressions, this ensures correct calculations with respect to INFs
    and NANs.
  + Added testsuite for xpath

git-svn-id: trunk@12961 -
2009-03-23 08:37:51 +00:00
Jonas Maebe
40247d2d87 * give an error when the typeinfo() function is called for an enumeration
whose base is not 0, or that has jumps in its value range (manits #9551)

git-svn-id: trunk@12960 -
2009-03-22 20:54:49 +00:00
Jonas Maebe
0698678f86 * renamed tw13345y.pp to uw13345y because it's a unit (otherwise its
object file is not available for linking when tw13345x is recompiled)

git-svn-id: trunk@12959 -
2009-03-22 20:52:45 +00:00
Jonas Maebe
6a813b8e7b * fixed rounding error in DateTimeToUnix (mantis #12894 and #12936)
* fixed errors in Inc*() routines regarding skipping the black
    home in the data-time continuum around 0, and the same for the
    *Between() functions
  + tests, test...

git-svn-id: trunk@12958 -
2009-03-22 18:26:34 +00:00
Jonas Maebe
1c2d2ae481 * fixed SimpleRoundTo() function (mantis #10159)
git-svn-id: trunk@12957 -
2009-03-22 16:29:54 +00:00
Jonas Maebe
624a7be9b1 * fixed internal error when a subscripted object is used in a property
(mantis #12756)

git-svn-id: trunk@12956 -
2009-03-22 16:21:06 +00:00
Jonas Maebe
6f4637b32a * do not do anything when writing to a t(custom)memorystream if the current
position is negative (patch by Collin Western, mantis #13318)

git-svn-id: trunk@12955 -
2009-03-22 15:53:16 +00:00
Jonas Maebe
5cf4ab7642 * always initialize/finalize global refcounted variables in units, also
when they are not used in the unit where they are defined (since they
    may be used elsewhere, discovered while analyzing mantis #13345)

git-svn-id: trunk@12954 -
2009-03-22 15:41:13 +00:00
michael
647fe5f237 * Fixed visibility of TDaemonDefs.FOwner
git-svn-id: trunk@12953 -
2009-03-22 12:27:59 +00:00
joost
ad7f4a1f24 * Use ExeSearch instead of FileSearch to find compiler/command executable
git-svn-id: trunk@12952 -
2009-03-22 10:08:24 +00:00
joost
0721235ab3 * Use ExeSearch instead of FileSearch to find process executable
git-svn-id: trunk@12951 -
2009-03-22 10:05:25 +00:00
joost
c1a83273f7 * Use ExeSearch instead of FileSearch to find command executable
git-svn-id: trunk@12950 -
2009-03-22 10:04:46 +00:00
joost
d4d733b173 * Use ExeSearch instead of FileSearch to find fpc executable
git-svn-id: trunk@12949 -
2009-03-22 10:04:04 +00:00
joost
d4c2a35c75 * Use ExeSearch instead of FileSearch to find compiler executable
git-svn-id: trunk@12948 -
2009-03-22 10:03:03 +00:00
joost
51b49d324e * Implemented function ExeSearch
git-svn-id: trunk@12947 -
2009-03-22 10:02:24 +00:00
joost
2c7d05d210 * Added ImplicitCurrentDir : Boolean = True parameter to FileSearch
git-svn-id: trunk@12946 -
2009-03-22 09:35:48 +00:00
joost
bfae5e097d * When IsSuperUser is true, use the GlobalUnitDir instead of the
LocalUnitDir. Just like that the GlobalInstallDir is passed to fpmake.

git-svn-id: trunk@12945 -
2009-03-22 09:21:42 +00:00
Jonas Maebe
a7e02c7948 * check validity of calling conventions specified using {$calling x}
(previously, this was only checked for calling conventions specified
     as a procedure directive)

git-svn-id: trunk@12944 -
2009-03-21 21:21:45 +00:00
Jonas Maebe
0d219154f3 * FPCMacOSAll -> MacOSAll
git-svn-id: trunk@12943 -
2009-03-21 21:20:29 +00:00
Jonas Maebe
0e6f9dc688 * only use calling conventions supported on all platforms
git-svn-id: trunk@12942 -
2009-03-21 20:56:28 +00:00
joost
4cc2015f8b * Fixed a security issue. Do not try to run an executable named fpc in the current directory, but only search for it in the path
git-svn-id: trunk@12941 -
2009-03-21 17:36:35 +00:00
Jonas Maebe
d61a09debf * assigment -> assignment in explanation of warning about uninitialized
variables

git-svn-id: trunk@12940 -
2009-03-21 16:15:20 +00:00
Jonas Maebe
b5494c534c * handle EsockEINTR for fpaccept and fpconnect
git-svn-id: trunk@12939 -
2009-03-21 16:11:08 +00:00
marco
9f3adee38e * lockcount property exposes flocks, Delphi compatibility verified. Mantis 8380
git-svn-id: trunk@12938 -
2009-03-21 12:16:05 +00:00
ivost
819e7d0913 fixed bug: xsdTryNextString returned allways true
git-svn-id: trunk@12937 -
2009-03-21 11:34:44 +00:00
ivost
e9928658b5 * added namespace testing function
git-svn-id: trunk@12936 -
2009-03-21 11:06:07 +00:00
michael
2abc422035 * ValidateContainer should call ValidateInsert
git-svn-id: trunk@12935 -
2009-03-21 09:26:48 +00:00
michael
8cf5d9abf2 * Patch from Sergei Gorelkin
* TXPathUnionNode.Evaluate: fixed two crashes. The object returned by
    TXPathVariable.AsNodeSet is owned by that TXPathVariable and should
    not be explicitly destroyed. Also TXPathVariable should not be
    released if its AsNodeSet result will be used later.

  * TXPathLocationPathNode.Evaluate/EvaluateStep:

    - fixed crash in axisFollowing case branch (caused by wrong variable
      being used in the loop).
    - rewrote axisPreceding branch so it builds the result node list in
      correct (document) order.
    - Fixed predicate match condition that was always evaluating as True.

  * TXPathScanner.ParseLocationPath: modified so it never returns nil.
    This fixes crash in cases when '/' or '//' are used otherwise than
    the whole expression (e.g. 'string(/)').

  * Replaced manual searching in TList by calls to IndexOf() in two
    places.

git-svn-id: trunk@12934 -
2009-03-20 20:09:55 +00:00
Jonas Maebe
36668a6ec5 * don't emit "include file search paths" for stabs since they don't exist
(and hence those directories were interpreted as source files themselves)
  + added -gostabsabsincludes option to make the compiler store absolute
    paths to include files in Stabs debugging information (since no
    search paths are used). This is not the default because it breaks
    when only the base path of an entire source tree changes (relative
    paths, which are the previous behaviour and the current default,
    work fine, but the absolute paths don't anymore; this can happen
    with shared network drives, and possibly with distros shipping
    external .dbg files)

git-svn-id: trunk@12933 -
2009-03-20 18:35:17 +00:00
Jonas Maebe
bf7c9361f6 * delay effect of {$calling x} until switches are flushed (mantis #12985)
git-svn-id: trunk@12932 -
2009-03-20 16:27:56 +00:00
Jonas Maebe
c04e9e36f7 * set alignment for 0-byte sized entities to 1 instead of to 0
git-svn-id: trunk@12931 -
2009-03-20 16:26:06 +00:00
Jonas Maebe
fe773871d6 * EINTR handling...
git-svn-id: trunk@12930 -
2009-03-20 13:03:14 +00:00
Jonas Maebe
803e78ff8c * and more ESysEINTR and fpwaitpid fixing
git-svn-id: trunk@12929 -
2009-03-19 22:51:41 +00:00
Jonas Maebe
590f4d2efc - deleted (old 1.0.x compatibility file)
git-svn-id: trunk@12928 -
2009-03-19 22:38:05 +00:00
Jonas Maebe
d79161a01a * and yet more ESysEINTR handling
git-svn-id: trunk@12927 -
2009-03-19 22:20:39 +00:00
Jonas Maebe
483b3b4a30 * more ESysEINTR handling
git-svn-id: trunk@12926 -
2009-03-19 22:01:09 +00:00
Jonas Maebe
08865be30e * fixed a bunch of cases where ESysEINTR wasn't handled
* call fpexit instead of halt when fpexec fails (the (v)forked child
    would otherwise close down a bunch of resources of the parent)
  * use vfork instead of fork on Darwin and Solaris (faster)
  * fixed indentation (use "svn diff -x -w" to see the important
    differences)

git-svn-id: trunk@12925 -
2009-03-19 21:53:54 +00:00
Jonas Maebe
8b53f8c41a * fixed a bunch of cases where ESysEINTR wasn't handled
git-svn-id: trunk@12924 -
2009-03-19 21:46:12 +00:00
Jonas Maebe
7fa0b94f36 * fixed unix version of tprocess.waitonexit (use unix.waitprocess so all
corner cases are properly handled) (mantis #11797)

git-svn-id: trunk@12923 -
2009-03-19 20:14:57 +00:00
Jonas Maebe
3844b9b325 + univint dependencies on Darwin for packages using custapp after r12921
git-svn-id: trunk@12922 -
2009-03-19 17:33:30 +00:00
Jonas Maebe
477b4d1f8b * implemented TApplication.GetExename() using CoreFoundation api's
for 32 bit Darwin platforms (we don't have a 64 bit clean interface
    for CoreFoundation yet) instead of using the (unreliable) paramstr(0)
    (mantis #13327)

git-svn-id: trunk@12921 -
2009-03-19 17:32:06 +00:00