Commit Graph

39460 Commits

Author SHA1 Message Date
paul
5157304998 rtl: build fpwidestring for the same platforms as character unit
git-svn-id: trunk@23801 -
2013-03-12 03:23:08 +00:00
paul
032b241c6b rtl: fpwidestring - fix length of UnicodeStrings after UTF8ToUnicode. UTF8ToUnicode returns length + 1 for zero byte which is not needed for UnicodeString.
git-svn-id: trunk@23800 -
2013-03-12 03:14:22 +00:00
paul
e379daaf9c compiler, rtl: move cpXXXX.pas files from compiler to RTL\charmaps directory and cleanup them, enable charmaps building for the majority of targets
git-svn-id: trunk@23799 -
2013-03-12 01:35:25 +00:00
paul
3682fddc49 compiler: minor optimization of tscannerfile.recordtoken
git-svn-id: trunk@23798 -
2013-03-12 01:32:07 +00:00
svenbarth
5399fd6664 Regenerated fpmkunitsrc.inc after r23793
git-svn-id: trunk@23794 -
2013-03-11 20:48:23 +00:00
svenbarth
c6d9b56dbb Fix a problem with fppkg: the function FixPath is declared in fpmkunit and pkgglobals with different semantics. Now recently the fpmkunit was added to one of the fppkg units which resulted in the unit using fpmkunit's implementation instead of the one from pkgglobals. Because of list fppkg no longer worked correctly if paths without trailing path delimiter were used in the configuration files. To prevent further problems a new overloaded version was added with combined semantics of both original functions and these were deprecated.
fpmkunit/src/fpmkunit.pp:
	+ add FixPath overload with an AIsDir argument that appends a trailing path delimiter if missing (basically the behavior of pkgglobals.FixPath)
	* deprecate FixPath with only one parameter, but let it call the new overload
	* adjust all calls to FixPath depending on the context (most calls are directories, so the new behavior is a nice addition)
fppkg/src/pkgglobals.pp:
	* deprecate FixPath and let it call the FixPath variant from pkgglobals
fppkg/src/pkgoptions.pp:
	* adjust all calls to FixPath according to context

git-svn-id: trunk@23793 -
2013-03-11 20:44:46 +00:00
michael
03e605e0a2 * Patch from Michael Fuchs to fix mem leakn (bug ID 23247)
git-svn-id: trunk@23790 -
2013-03-11 15:26:12 +00:00
lacak
3658b939cb fcl-db: mssql: small extending (like in others sqldb/sonnections) schema information returned using SetSchemaInfo call. System tables and functions used should be compatible with MS SQL and also with Sybase.
git-svn-id: trunk@23789 -
2013-03-11 09:48:42 +00:00
florian
2c7b34cda1 * don't apply cse on static variables being regable
git-svn-id: trunk@23785 -
2013-03-10 20:29:52 +00:00
florian
c2baf7b4c0 Merge r23058
git-svn-id: trunk@23776 -
2013-03-10 16:37:57 +00:00
florian
c0d4f189e9 * and takes three operands
git-svn-id: trunk@23775 -
2013-03-10 16:16:50 +00:00
florian
be81b89147 * fix bugs in previous commit
git-svn-id: trunk@23774 -
2013-03-10 14:33:10 +00:00
florian
086ae4b999 Merge r22905 and r22906
git-svn-id: trunk@23773 -
2013-03-10 10:45:34 +00:00
Jonas Maebe
51cdef698f * fixed definition of GLHandleARB for Darwin (patch by lks, mantis #23975)
git-svn-id: trunk@23772 -
2013-03-10 10:29:08 +00:00
Jonas Maebe
f00d9f6f84 * correct dlopen flag values for Darwin (patch by lks, mantis #23979)
git-svn-id: trunk@23771 -
2013-03-10 10:22:43 +00:00
paul
d51da3ad58 rtl: enable collations building for win64
git-svn-id: trunk@23770 -
2013-03-10 09:56:01 +00:00
paul
8c0234f871 utils: enable unicode utils build for win64 target
git-svn-id: trunk@23769 -
2013-03-10 09:52:41 +00:00
paul
23c9578137 rtl: setup DefaultSystemCodepage when fpwidestring is included on unixes
git-svn-id: trunk@23768 -
2013-03-10 06:42:50 +00:00
paul
02e0269764 rtl: a patch to cleanup a fixes to key forming functions from Inoussa (mantis #0022909)
git-svn-id: trunk@23767 -
2013-03-10 06:27:03 +00:00
sergei
5e46732bc8 + One more missing call to unget_para (MIPS-specific)
git-svn-id: trunk@23766 -
2013-03-10 04:08:43 +00:00
marco
fc02f5c7f7 * another minor problem found with -CR
git-svn-id: trunk@23765 -
2013-03-09 23:54:13 +00:00
marco
cb55b2d2cf * another small bug caught by -CROriot
git-svn-id: trunk@23763 -
2013-03-09 23:37:59 +00:00
marco
39670e3454 * fixed 3 problems in fcl-passrc found when searching why fcl.chm
didn't build for 2.6.2
   1. The nested function in findmemberancestors didn't set result.
       Possibily sleeping bug triggered by -gttt
   2. TPasmodule.Getelement crashed for some classes loaded from .xct
         (code assuming they were pasmodule derivatives)
         This probably touches a deeper lying problem where the 
	 (new) classtree doesn't validate nodetypes properly, and loaded
	 classes end up as modules in one or the other overview
   3. *Visibility functions had an out parameter that was not set
	 in all cases. Changed to VAR. (see mail fpc-devel from today).
         Another -gttt sleeper bug.
    
  (2) probably was the main problem of the initial crash.

git-svn-id: trunk@23760 -
2013-03-09 22:07:33 +00:00
florian
21c154d60a Merged r22903
git-svn-id: trunk@23757 -
2013-03-09 20:56:07 +00:00
florian
08bf826334 Merges 22828,22829
git-svn-id: trunk@23756 -
2013-03-09 20:49:57 +00:00
paul
fe8503b8c1 utils: enable unicode utils compilation on linux
git-svn-id: trunk@23752 -
2013-03-09 17:48:38 +00:00
paul
ce6b3b7ee3 utils: add parse-collations.sh script
git-svn-id: trunk@23750 -
2013-03-09 16:53:14 +00:00
paul
087510b775 utils: fix dependencies of unicode utils, enable compilation on darwin
git-svn-id: trunk@23749 -
2013-03-09 16:39:07 +00:00
paul
ab8c293a36 utils: add unicode utils from Inoussa (part of mantis #0022909)
git-svn-id: trunk@23748 -
2013-03-09 15:53:44 +00:00
svenbarth
364a874623 Addendum to 23746: use FPC_FULLVERSION instead of FPC_VERSION/FPC_RELEASE
git-svn-id: trunk@23747 -
2013-03-09 15:45:24 +00:00
svenbarth
b298483bb8 Allow compilation of the compiler with 2.6.x again on Unix systems.
compiler.pas:
	check for "FPC_VERSION>2 or FPC_RELEASE>6" before using unixcp

git-svn-id: trunk@23746 -
2013-03-09 15:33:13 +00:00
Jonas Maebe
1244cdff70 * don't treat bitpacked arrays of subranges of char that can be represented
using less than 8 bits per element the same as regular char arrays as far
    as automatic type conversions are concerned (they have to be explicitly
    packed/unpacked) (mantis #24013)

git-svn-id: trunk@23739 -
2013-03-09 10:37:30 +00:00
reiniero
76e6fff302 * sqldb: Firebird/Interbase: now Win64 SEH is enabled (r23732),
revert BLOB workaround in r20633 as it slows down blob handling
  (for all platforms even).

git-svn-id: trunk@23738 -
2013-03-09 07:41:35 +00:00
marco
48a8509097 * fix for #23915, use inheritsfrom instead of classtype = xxx because
more types now have derivatives. As suggested by Daniel Gaspary.

git-svn-id: trunk@23734 -
2013-03-08 22:38:34 +00:00
marco
744d45714d * added missing baudrates that were in 7.x already. Patch by Graeme, Mantis #23992
git-svn-id: trunk@23733 -
2013-03-08 22:26:40 +00:00
sergei
2caa05ccd1 * Make Win64 SEH support enabled by default. If necessary to disable, compiler should be cycled with OPT=-dDISABLE_WIN64_SEH. Mantis #24012.
git-svn-id: trunk@23732 -
2013-03-08 16:58:05 +00:00
paul
b9a33b2b0a rtl: enabled collations building for win32 target
git-svn-id: trunk@23731 -
2013-03-08 15:25:49 +00:00
paul
7a0b112e56 rtl: add FPC Independent Unicode String Manager from Inoussa (mantis #0022909)
git-svn-id: trunk@23730 -
2013-03-08 15:23:20 +00:00
paul
fc0bab5844 rtl: possible fix compilation of charset.pp on 64 bit
git-svn-id: trunk@23729 -
2013-03-08 13:50:21 +00:00
ludob
bb735aa7e5 sqldb: implemented TCustomConnection.Close(ForceClose : Boolean = False);
git-svn-id: trunk@23728 -
2013-03-08 13:15:53 +00:00
paul
43e0116f61 compiler: update charset, cruemap and cpXXX.pas files from Inoussa (part of issue #0022909)
git-svn-id: trunk@23727 -
2013-03-08 13:10:39 +00:00
paul
1481a6a066 compiler: rename cp1252, cp1253 pp files to pas for consistency
git-svn-id: trunk@23726 -
2013-03-08 12:25:18 +00:00
marco
9f53738142 * fill in purpose of the unit in comment, updated copyright
git-svn-id: trunk@23725 -
2013-03-08 09:18:26 +00:00
lacak
1533aff2cc fcl-db: bufdataset: when index is added set IndexDefs.Updated to false to signal, that FIndexDefs and FIndexes are not synchronized. This allow next call to IndexDefs.Update (which tests Updated) do synchronization.
git-svn-id: trunk@23723 -
2013-03-08 07:34:23 +00:00
svenbarth
c7f1569156 Up to now TSQLite3Connection used the variable SQLiteLibraryName to control the name of the SQLite library to use. The sqlite3dyn unit also contains a variable to control the library to use: SQLiteDefaultLibrary. To avoid potential confusion the variable from sqlite3dyn will be used from now on.
packages/fcl-db/src/sqldb/sqlite3/sqlite3conn.pp:
	* Declare SQLiteLibraryName as an absolute alias for SQLiteDefaultLibrary and deprecate it with an approbiate hint
	* TSQLite3Connection.DoInternalConnect & GetConnectionInfo: use SQLiteDefaultLibrary instead of SQLiteLibraryName

git-svn-id: trunk@23708 -
2013-03-07 21:11:40 +00:00
svenbarth
da7b24e242 Avoid multiple threadvar lookups when querying the current TThread. Inspired by Michael Schnell.
rtl/objpas/classes/classes.inc, TThread.GetCurrentThread:
	* instead of checking CurrentThreadVar and reading it again afterwards we read it first into Result and check this value; this way we have one read access in the normal case and one read and one write access in the worst case

git-svn-id: trunk@23706 -
2013-03-07 20:15:32 +00:00
Jonas Maebe
3cde2b2d84 * fixed check for bitpacked accesses (mantis #24007)
git-svn-id: trunk@23705 -
2013-03-07 15:44:41 +00:00
pierre
eeae77bfc2 Fix wrong cursor pos for 64 bit systems, hopefully fixes bug report 23957
git-svn-id: trunk@23704 -
2013-03-07 13:55:55 +00:00
lacak
2cfcf32725 fcl-db: odbc: enable 64bit support (use SQLLEN, SQLULEN instead of SQLINTEGER, SQLUINTEGER) after ODBC header file was updated for 64 bit support in rev.23702
git-svn-id: trunk@23703 -
2013-03-07 09:17:52 +00:00
michael
94e021157b * Windows 64-bit patches from Laco
git-svn-id: trunk@23702 -
2013-03-07 08:57:18 +00:00