Commit Graph

35214 Commits

Author SHA1 Message Date
paul
60de075ebe rtl: initialize CodePage field of ReadStr/WriteStr Text variables
git-svn-id: trunk@19567 -
2011-10-31 07:07:24 +00:00
paul
435b72bcb1 compiler: check left node to be ord const diring widechar/unicodechar to shortstring before executing the code related to tordconstn()
git-svn-id: trunk@19566 -
2011-10-31 07:00:38 +00:00
paul
8feb3806b8 tests: adapt test for codepage aware strings
git-svn-id: trunk@19565 -
2011-10-31 05:49:37 +00:00
paul
b8589d98cc compiler: Don't allow duplicate property/procedure identifiers inside object declaration. The code which allowed this for delphi mode was initially written based on invalid test from mantis #0009176. Fixes bug #0020580.
git-svn-id: trunk@19564 -
2011-10-31 05:35:40 +00:00
paul
f685d67647 compiler: correctly traverse record fields while generating record constant (bug #0020594)
git-svn-id: trunk@19563 -
2011-10-31 02:54:19 +00:00
florian
6b4a5c3cf6 * default arm-linux to linux eabi, oabi is basically dead
git-svn-id: trunk@19562 -
2011-10-30 21:33:21 +00:00
florian
5d4607f65a * ignore errors in setlength parsing inside a generic functin, resolves #20557
git-svn-id: trunk@19561 -
2011-10-30 19:22:55 +00:00
sekelsenmat
2df900652e fpvectorial is now moved to lazarus/components/fpvectorial
git-svn-id: trunk@19560 -
2011-10-30 16:42:46 +00:00
florian
5fd5770059 * load/write loadnodeflags from/to ppu
git-svn-id: trunk@19559 -
2011-10-30 16:15:54 +00:00
florian
6ec0f2549a * factored load node flags out of node flags to gain space
+ implemented iso mode mod, resolves #17685

git-svn-id: trunk@19558 -
2011-10-30 15:14:21 +00:00
florian
d6e429e871 * .lpi version update
git-svn-id: trunk@19557 -
2011-10-30 14:24:03 +00:00
joost
65b7c1b515 * Same change as in r19552 for all other packages compiled with fpmake
git-svn-id: trunk@19553 -
2011-10-28 13:10:26 +00:00
joost
58a9e40e88 * Take INSTALL_BASEDIR into account on make install, this is used by rpm-building
git-svn-id: trunk@19552 -
2011-10-28 12:54:50 +00:00
joost
14ec31daff * On go32v2, fppkg does not depend on fcl-net
git-svn-id: trunk@19551 -
2011-10-28 11:43:30 +00:00
paul
62b4ef3d1a compiler: don't create a parasymtable for property if property has no parameters
git-svn-id: trunk@19550 -
2011-10-28 01:38:55 +00:00
sekelsenmat
aaabc35058 Disables compiling fpvectorial
git-svn-id: trunk@19549 -
2011-10-27 18:55:11 +00:00
paul
5c00cdf40d rtl: correct ifdef for a code which assigns a codepage to textrec to use FPC_HAS_CPSTRING
git-svn-id: trunk@19548 -
2011-10-27 01:24:00 +00:00
florian
72425b49c9 * fixes bootstrapping with upcoming 2.6.x
git-svn-id: trunk@19547 -
2011-10-26 19:26:10 +00:00
sergei
6a3fe72de9 + Support .rva directive in AT&T reader. Put it into base class because it generally applies to all targets with COFF output, but enabled for Windows targets only (others need additional testing).
+ Support .seh_handlerdata directive in Win64.

git-svn-id: trunk@19546 -
2011-10-25 15:18:47 +00:00
paul
b7185a554c rtl:
- replace ifndef ver2_4 with ifdef FPC_HAS_CPSTRING for places with TextRec.CodePage access
  - convert codepages for Read and Write text file operations

git-svn-id: trunk@19545 -
2011-10-25 08:40:49 +00:00
paul
ef0c4a1e5c rtl: fix fpc_AnsiStr_To_AnsiStr source codepage check (less conversions should be done now from AnsiString type to the same codepage strings)
git-svn-id: trunk@19544 -
2011-10-25 07:57:31 +00:00
paul
e08c68f308 rtl: set codepages for TextRec field when Text file is opened + update this field for standard IO files when cwstring is used
git-svn-id: trunk@19543 -
2011-10-25 06:27:54 +00:00
paul
1ccf16358c rtl: init widestring and unitcodestring managers before initialization of Standard IO files (stdin,stdout,stderr)
git-svn-id: trunk@19542 -
2011-10-25 02:29:29 +00:00
paul
2254dad68a rtl: add SetTextCodePage, GetTextCodePage functions which set/get TTextRec.CodePage field
git-svn-id: trunk@19541 -
2011-10-25 02:16:34 +00:00
paul
e46e2c3ebd compiler, rtl: extend TextRec record with CodePage field
git-svn-id: trunk@19540 -
2011-10-25 02:09:57 +00:00
paul
270fb09e87 rtl: add WideStringManager.GetStandardCodePageProc method to retrieve system ansi and console code pages
git-svn-id: trunk@19539 -
2011-10-25 01:39:11 +00:00
paul
3e29f0b179 rtl: make cwstring.pp dependent of dynlibs, load iconvctl dynamically
git-svn-id: trunk@19538 -
2011-10-25 01:25:23 +00:00
Jonas Maebe
9ee27c1606 * support for iOS-specific location of "localtime" time zone file
(problem reported at http://blogs.embarcadero.com/ao/2011/10/20/39180 )

git-svn-id: trunk@19537 -
2011-10-24 19:24:57 +00:00
marco
4d00966be2 * reverted earlier change to logeventype on Michael's request.
git-svn-id: trunk@19536 -
2011-10-24 08:06:14 +00:00
marco
7daf8a19c2 * added ltnone logtype. Mantis #20544
git-svn-id: trunk@19535 -
2011-10-24 07:48:51 +00:00
florian
85b52cf8c3 - remove packed directive from jwapsapi.pas, partly resolves #20525
+ test from bug report
- remove $A+ from jedi include header: $A+ makes no sense for api headers, the records should be layouted with $packrecords c, second part to resolve #20525

git-svn-id: trunk@19533 -
2011-10-23 14:47:15 +00:00
florian
3c0256bd7b * patch by Ludo Brands to fix #20481: GetFileType cannot be used on windows to determine if a handle is a console handle because the function does not distinguish between consoles and printers, resolves #20481
git-svn-id: trunk@19532 -
2011-10-23 14:20:00 +00:00
olivier
dbaf153163 * revert part of r19256. While this declaration seems not consistent with
Haiku headers, it avoid some segmentation faults with threaded programs.

git-svn-id: trunk@19531 -
2011-10-22 23:12:20 +00:00
michael
4faff70448 * Patch from Ludo Brands to fix compilation (bug 20537)
git-svn-id: trunk@19530 -
2011-10-22 11:51:22 +00:00
Jonas Maebe
01b980a462 * added "inc" extension to {$i winiconv}
git-svn-id: trunk@19529 -
2011-10-22 08:59:07 +00:00
Jonas Maebe
2b63a7d66f * fixed compilation on darwin/arm after r19522
* replaced defined(arm) with defined(cpuarm) checks (cleaner)

git-svn-id: trunk@19528 -
2011-10-22 08:40:37 +00:00
Tomas Hajny
80d08fd5be * InstantFPC built only for some targets rather than all
git-svn-id: trunk@19527 -
2011-10-21 22:36:49 +00:00
olivier
07eed52fd8 * fix some pthread declarations probably inherited from the BeOS port.
Finally fix a deadlock when launching Lazarus with thread support.

git-svn-id: trunk@19526 -
2011-10-21 22:24:03 +00:00
pierre
7d867d16bc Fix problem with QueryHook leading to crashes
git-svn-id: trunk@19525 -
2011-10-21 16:19:32 +00:00
Jonas Maebe
a228b211c4 * allow local type definitions for "file of xx" component types
(mantis #20527)

git-svn-id: trunk@19524 -
2011-10-21 15:00:21 +00:00
paul
110119e398 compiler: use globalsymtable for units to store ansistring replacement def (fixes bug #0020529)
git-svn-id: trunk@19523 -
2011-10-21 06:09:24 +00:00
paul
5d7d143300 rtl: transliterate characters if possible intead of replacing them with "?" chars while converting between codepages
git-svn-id: trunk@19522 -
2011-10-21 03:23:23 +00:00
Tomas Hajny
3b3f1ac8a5 * additional case insensitive platforms
git-svn-id: trunk@19521 -
2011-10-20 23:32:33 +00:00
Tomas Hajny
2724a93195 * fixes for additional non-unix platforms
git-svn-id: trunk@19520 -
2011-10-20 23:30:31 +00:00
paul
c1866d5c17 compiler:
- don't pass CP_NONE encoding to internal functions. They handled it as 0 encoding. This will optimize the generated code a bit.
  - convert all king of string/char/pchar constants to local ansistring def if they needs to be passed to rawbytestring type. They should not get a CP_NONE codepage (delphi compatible)
  - don't convert left and right arguments of string concatenation to ansistring type if they are already ansistrings but with different codepage - RTL already handles different codepages in concat routine
  - fix resultdef for ansistring concatenations inside assignments - return def of left assignment operand if it is already ansistring - this reduces amount of unneeded condepage conversions since concat functions can return result in any desired codepage
rtl: remove CP_NONE comparisions from most of RTL functions, replace 0 constant with CP_ACP
tests: add test to check various conversions to RawByteString type

git-svn-id: trunk@19519 -
2011-10-20 09:25:51 +00:00
marco
22f98e3259 * aspell enabled for windows, patch from Barlone, Mantis #20521
git-svn-id: trunk@19518 -
2011-10-19 20:31:20 +00:00
sergei
e2d43fcb30 - tcgonnode: don't store exception object in temp if it is not used.
- tcgtryexceptnode: don't generate code to decrease/compare exception reason if not necessary.

git-svn-id: trunk@19517 -
2011-10-19 20:28:41 +00:00
marco
047cff3944 * Initial (var)binary field support for mysql and sqlite, patch by Lacak2,
Mantis #20513

git-svn-id: trunk@19516 -
2011-10-19 15:11:08 +00:00
marco
4703b63c19 * IShellFolder2.columnstart -> IShellFolder2.columnstate, as per Mantis #20519
git-svn-id: trunk@19515 -
2011-10-19 14:59:59 +00:00
sergei
964eb8772a * Fixed tcallnode.expectloc for x87 floating-point results
git-svn-id: trunk@19514 -
2011-10-19 11:42:02 +00:00