Commit Graph

38734 Commits

Author SHA1 Message Date
nickysn
b3d86072b8 * updated ptcpas fpmake.pp
git-svn-id: trunk@23006 -
2012-11-17 21:08:34 +00:00
nickysn
e616d0b7f0 * updated ptcpas to 0.99.13
git-svn-id: trunk@23005 -
2012-11-17 19:03:53 +00:00
nickysn
504b2bc544 * fixed hermes author and license info - it's a full library translation and not just header translation, the original author is Christian Nentwich and the license of the pascal version is modified LGPL (changed from LGPL with Christian's permission)
git-svn-id: trunk@23004 -
2012-11-17 18:11:35 +00:00
nickysn
0d6c36d980 * updated hermes fpmake.pp
git-svn-id: trunk@23003 -
2012-11-17 17:49:50 +00:00
nickysn
7d0b209349 * updated hermes
git-svn-id: trunk@23002 -
2012-11-17 17:28:29 +00:00
joost
316717a710 * Re-generated all the Makefile.fpcs from the packages. So they are almost all the same now.
git-svn-id: trunk@23001 -
2012-11-17 00:18:50 +00:00
sergei
186cbaaf18 * Ansistring versions of MkDir,ChDir,RmDir: make a full copy of argument string. This is necessary because underlying implementations can modify directory separators in argument, causing crash if argument resides in read-only memory. This is also consistent with shortstring variants of same procedures.
git-svn-id: trunk@23000 -
2012-11-16 18:27:55 +00:00
sergei
2c011312db * Changed TElf32Header and TElf64Header definitions, making them look closer to canonical ones (first 16 bytes are a single array field, addressable via EI_xx indices).
git-svn-id: trunk@22999 -
2012-11-16 17:05:06 +00:00
lacak
4aa8b2cef7 fcl-db: tests: MS SQL Server and Sybase do not support dates before 1753 for their DATETIME data type so do not try insert these dates into test tables.
(MS SQL 2008 introduced DATETIME2, which support full range of years 0000-9999).

git-svn-id: trunk@22998 -
2012-11-16 13:36:53 +00:00
lacak
544c7d8dbb fcl-db: add support for ftFixedWideChar and ftWideMemo into xmldatapacketreader.
git-svn-id: trunk@22997 -
2012-11-16 12:59:57 +00:00
reiniero
ccead0db7b * fcl-db: forgot rename in {$IFNDEF Win64} section in r22993
git-svn-id: trunk@22996 -
2012-11-16 12:54:22 +00:00
lacak
ffefefc1dc fcl-db: when moving odd number bytes from blob stream into widestring allocate sufficient space. (f.e. if Len=1 then Len div 2 = 0)
git-svn-id: trunk@22995 -
2012-11-16 12:37:53 +00:00
masta
e370303fda Add unsigned versions of ntohl and htonl
All systems i know of define ntohl and htonl to use unsigned 32bit
types. To keep backward compatibility for now I've added overloaded
versions so the impact on existing code is a small as possible. But I've
marked the signed versions as deprecated.

The code will now also use SwapEndian which is available as optimized
versions on some platforms.

git-svn-id: trunk@22994 -
2012-11-16 12:37:07 +00:00
reiniero
02bccda89e fcl-db: cosmetic change due to new variable names too similar to existing ones in r22988
git-svn-id: trunk@22993 -
2012-11-16 11:17:21 +00:00
michael
4ecfde31e1 * Prevent Move from freeing an associated object if OwnsObjects=True (reported on sourceforge)
git-svn-id: trunk@22992 -
2012-11-16 11:04:44 +00:00
pierre
29609ee37b * Regenerated with trunk compiled fpcmake (adds missing supproted targets like x86_64-netbsd)
git-svn-id: trunk@22991 -
2012-11-16 09:33:04 +00:00
lacak
9e5c31331e fcl-db: tests: add more information to be able find point where test fails.
git-svn-id: trunk@22990 -
2012-11-16 08:43:39 +00:00
lacak
e8b2ae1112 fcl-db: tests: More descriptive error messages.
git-svn-id: trunk@22989 -
2012-11-16 07:11:07 +00:00
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