Commit Graph

38716 Commits

Author SHA1 Message Date
lacak
7a9a5ea6bf fcl-db: test:
use GetConnectionInfo(citServerType) to determine remote SQL server type and use this to correctly setup supported data types ("FieldtypeDefinitions" and "testValues").
Useful especially for testing TODBCConnection.

git-svn-id: trunk@22988 -
2012-11-16 06:10:05 +00:00
sergei
1aea22a6ca + Internal linker: generic and ELF-specific support for grouped sections, allow same symbol to be defined in several COMDAT groups.
* ELF linker: don't make unresolved weak symbols dynamic if linking statically (-Xt in command line).
* Now internal linker produces working executable for tw14265 also on i386-linux when compiling manually (still unable to locate required libraries when run from test suite).

git-svn-id: trunk@22987 -
2012-11-15 13:41:25 +00:00
lacak
82fd77d341 fcl-db: sqlite: call InitializeSQLite with SQLiteLibraryName (in same style like in DoInternalConnect)
to avoid exception when connection is already opened.

git-svn-id: trunk@22986 -
2012-11-15 09:30:17 +00:00
lacak
1fe0240029 fcl-db: mssql:
* implements GetConnectionInfo
* renames private method DBExecute to Execute (IMO slightly better name)
* reorders methods to reflex logical order in which they are called

git-svn-id: trunk@22985 -
2012-11-14 06:21:50 +00:00
Tomas Hajny
451d486c37 * add support for syncobjs under OS/2
git-svn-id: trunk@22984 -
2012-11-12 20:02:53 +00:00
Tomas Hajny
688c0a6f3c * avoid need of GetLastOSError under OS/2
git-svn-id: trunk@22983 -
2012-11-12 19:59:28 +00:00
Jonas Maebe
cb41d6355c * clarified -Cb explanation (mantis #23308)
git-svn-id: trunk@22982 -
2012-11-12 10:34:00 +00:00
lacak
56350aec8a fcl-db: sqlite: cleanup + formatting
(use already defined constant JulianEpoch instead of own;
 use UnicodeCompareStr instead of WideCompareStr)

git-svn-id: trunk@22981 -
2012-11-12 09:57:28 +00:00
joost
1698673744 * Make distclean should clean up for all known targets. This behavior waw broken since r18060
git-svn-id: trunk@22980 -
2012-11-11 21:28:29 +00:00
marco
f0fcd4647b * fix for mantis #22283, Wrong bit shift in ListView_GetCheckState (shl instead of shr)
git-svn-id: trunk@22979 -
2012-11-11 18:16:32 +00:00
joost
8168276912 * Only rebuild the fpmake executable if fpmake.pp is changed. With this change it is possible again to cross-compile after a normal compile without a make clean in between.
git-svn-id: trunk@22978 -
2012-11-11 13:04:52 +00:00
Jonas Maebe
8bf71af3b1 * fixed compatilation on Haiku Alpha4 (patch by Olivier Coursière,
mantis #23300)

git-svn-id: trunk@22969 -
2012-11-10 20:26:46 +00:00
Jonas Maebe
d9e67fc835 * don't add a separate high parameter for array-of-const parameters on the
JVM target (just like for open array parameters), since the array length
    is already encoded in the array itself there

git-svn-id: trunk@22968 -
2012-11-10 20:26:42 +00:00
florian
d67f31a0e1 * allow type parameters variables being passed to new/dispose, resolves #23270
git-svn-id: trunk@22963 -
2012-11-09 20:46:30 +00:00
sergei
49501413e1 + Support library grouping in internal linker script, use it to load C libraries.
git-svn-id: trunk@22962 -
2012-11-09 14:38:11 +00:00
sergei
8ff1d76239 + x86_64/cpuelf.pas: Support writing RELATIVE relocations separately from other ones.
+ i386/cpuelf.pas: Support R_386_TLS_IE and R_386_TLS_LE relocations.

git-svn-id: trunk@22961 -
2012-11-09 14:22:37 +00:00
lacak
2a7c9f0848 fcl-db: change var params to out in TParams.ParseSQL to reduce compiler hints about uninitialized variables.
git-svn-id: trunk@22960 -
2012-11-09 07:41:03 +00:00
Jonas Maebe
4aa05f5133 + support for automatically generating setters/getters for properties on the
JVM target, since Java bytecode itself has no support for properties and
    hence exposing properties to external Java code can only be done through
    getters/setters. Use the new parameters to do so:
      -CTautogetterprefix=XXX
      -CTautosetterprefix=YYY
    The getter/setter will get the same visibility as the property. If a
    getter/setter with the same naming convention was already specified for a
    property and this getter/setter is declared in the same class as the
    property, then the visibility of this existing getter/setter is
    modified and no new routine is generated.

    Newly generated getters/setters are virtual methods, because that is
    the only way in Java bytecode to allow redefining these getters/setters
    in child classes. However, that also means that using these switches can
    change the behvaviour of code, since normally the used property definition
    is only determined by the declared type of its associated class instance,
    and not by the actual instance type. The compiler will therefore warn when
    such an automatically generated getter/setter is overridden by another
    automatically generated getter/setter in a child class.

git-svn-id: trunk@22959 -
2012-11-08 20:18:08 +00:00
Jonas Maebe
1c32590294 + added search_struct_member_no_helper() to search a struct for a symbol
without looking inside helpers

git-svn-id: trunk@22958 -
2012-11-08 20:18:03 +00:00
Jonas Maebe
bc6f078247 * don't create the synthetic routines if any errors occurred, since that
will likely only cause more errors (or, in the worst case, internal
    errors)

git-svn-id: trunk@22957 -
2012-11-08 20:17:58 +00:00
Jonas Maebe
c4a55f5481 * store the "synthetic kind" information about procdefs in ppu files,
required by future patch

git-svn-id: trunk@22956 -
2012-11-08 20:17:53 +00:00
Jonas Maebe
5929ec5592 * turned getpropaccesslist, add_parameters and add_index_parameter into
methods of tpropertysym (refactoring)
  * turned code to copy the contents of a property into another one
    into a method of tpropertysym (refactoring)

git-svn-id: trunk@22955 -
2012-11-08 20:17:48 +00:00
Jonas Maebe
cf717c4b75 * use -iphone_os_min rather than -ios_version_min, because the former
(older) version of the parameter is still supported by current linker
    versions, but the older version isn't supported by older linker
    versions

git-svn-id: trunk@22954 -
2012-11-08 20:17:42 +00:00
marco
7af086c05d * make socket stuff compiling again. Package not 100% yet due to gtk1 dependencies.
git-svn-id: trunk@22953 -
2012-11-08 16:17:55 +00:00
michael
cbbf87a58f * Need FILE_WRITE_ATTRIBUTES for setfiledate (mantis #23290)
git-svn-id: trunk@22952 -
2012-11-08 14:25:15 +00:00
sergei
277200e7ae + ELF linker: Support writing RELATIVE dynamic relocations ahead of the rest, and their number in DT_REL[A]COUNT dynamic tag (still needs changes in CPU-specific code to function properly).
* TElfObjInput.LoadSymbols: ignore STT_SECTION symbols for sections that were ignored in LoadSections().
* TElfObjInput: changed symtabndx (index of .symtab/.dynsym section) into field and its type to unsigned.

git-svn-id: trunk@22951 -
2012-11-08 11:10:01 +00:00
michael
d1440c7483 * Patch from Christian Schiffler (Bug ID 22943) to fix missing dependency on fcl-base
git-svn-id: trunk@22950 -
2012-11-08 09:44:07 +00:00
michael
5f053be31d * Switched to using ansistring, because dynlibs use ansistrings
git-svn-id: trunk@22949 -
2012-11-07 23:08:31 +00:00
michael
d9511be84b * Updated makefiles
git-svn-id: trunk@22948 -
2012-11-07 22:08:18 +00:00
pierre
5ad752ab70 Avoid range check error in IDE by changing value of sfHasMemInfo constant to fit with longint value
git-svn-id: trunk@22947 -
2012-11-07 16:22:57 +00:00
michael
461ca6fa90 * Removed debug statements
git-svn-id: trunk@22946 -
2012-11-07 13:51:57 +00:00
michael
a3f7a7fdb4 * Avoid overflow when reading from streams > 2gb
git-svn-id: trunk@22945 -
2012-11-06 23:41:49 +00:00
Jonas Maebe
3a5b5f03d5 * only enable for Linux and Win32/Win64, since those are presumably the
platforms on which this package has been tested (it definitely won't work
    on darwin as is)

git-svn-id: trunk@22944 -
2012-11-06 23:14:16 +00:00
michael
9d7ba28cf7 * Initial version of libvlc units
git-svn-id: trunk@22943 -
2012-11-06 22:42:15 +00:00
lacak
70b030c9f1 fcl-db: mssql: very basic support for variant data type, rather than raising exception.
(as dbconvert does not support SYBVARIANT atm, use direct Move to move raw data into blob buffer)

git-svn-id: trunk@22941 -
2012-11-06 13:57:57 +00:00
michael
b24074841e * trivial patch from Laco
git-svn-id: trunk@22940 -
2012-11-06 13:40:50 +00:00
lacak
43375ef468 fcl-db: formatting
git-svn-id: trunk@22939 -
2012-11-06 09:29:22 +00:00
lacak
221ee477b2 fcl-db tests: unification of file names used (generated) during testing.
git-svn-id: trunk@22938 -
2012-11-06 08:32:41 +00:00
lacak
0893146a91 fcl-db test: improve testing of ftAutoInc. After rev.22935
(some databases allows updating of identity columns so test it)

git-svn-id: trunk@22937 -
2012-11-06 08:09:32 +00:00
svenbarth
fdf6b17421 rtl/linux/m68k/prt0.as:
correctly calculate and pass on the addresses for the parameters and the environment; this way parameters can now be used, but reading environment variables still does not seem to work...

Note: the other assembler files (especially cprt0.as) were not adjusted and might not work at all

git-svn-id: trunk@22936 -
2012-11-05 21:12:09 +00:00
ludob
35f1339404 sqldb: Modified ftAutoinc behavior slightly to match Delphi behavior and allow updating of ftAutoInc fields for those db backends that support it. Added support for odbc ReadOnly fields. Patch from Lacak2 Mantis #22531
git-svn-id: trunk@22935 -
2012-11-05 15:23:15 +00:00
reiniero
51c06b1180 * FCL-DB: cosmetic changes in comments
git-svn-id: trunk@22934 -
2012-11-05 07:00:12 +00:00
florian
761fcca4ec + is_dynamicstring
+ implement low/high for dynamic strings, resolves #15244 and #22936
+ basic support for $zerobasedstrings directive

git-svn-id: trunk@22933 -
2012-11-04 21:48:53 +00:00
florian
39aef35bdc * pass not only exception address but also frame to raise:
if an address is passed the compiler cannot know a good 
  value for the frame so it passed nil and no stack trace is printed, resolves #12528

git-svn-id: trunk@22932 -
2012-11-04 20:40:21 +00:00
svenbarth
1bc47815be m68k/cgcpu.pas, tcg64k.fixref:
* in the case of ref.base + ref.symbol always add the base to the index; with this the compiler now cycles for Coldfire

git-svn-id: trunk@22931 -
2012-11-04 20:29:22 +00:00
svenbarth
a4f390e4d9 m68k/cgcpu.pas, tcg64f68k:
+ a_op64_reg_reg: add support for "NEG" and "NOT" of 64-bit values
  + a_op64_const_reg: make sure that we know whether a NEG or NOT with a constant is performed

git-svn-id: trunk@22930 -
2012-11-04 20:27:01 +00:00
florian
bc4a8ac63e + constant postfixoperator_tokens
+ check for postfix operators after string contants, resolves #23136

git-svn-id: trunk@22929 -
2012-11-04 19:21:19 +00:00
svenbarth
2038a607ac cg64f32.pas, tcg64f32.a_load64_*_cgpara:
* since m68k is 1) a big endian system and 2) a system without a fixed stack (thus we use a push-equivalent) we need to swap the order of the hi and lo longwords of a 64-bit value when passing it to a function

git-svn-id: trunk@22928 -
2012-11-04 19:12:57 +00:00
florian
b58273fdeb * fix memory leak of video unit as proposed by Michael Karst, resolves #22876
git-svn-id: trunk@22927 -
2012-11-04 18:42:47 +00:00
florian
a523d81b87 * fix sincos also for x86-64-linux
git-svn-id: trunk@22926 -
2012-11-04 18:02:20 +00:00