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
sergei
f4023ef49e
- Removed outdated VER2_0 defines
...
git-svn-id: trunk@19513 -
2011-10-19 11:39:59 +00:00
pierre
d3e50e9aa8
* Values outside signed 32-bit can only be assigned to a 64-bit register in one instruction, not to memory
...
git-svn-id: trunk@19512 -
2011-10-19 10:16:08 +00:00
paul
f5d2c3a446
tests: fix test for unixes
...
git-svn-id: trunk@19511 -
2011-10-19 06:42:51 +00:00
paul
c6ca9e5091
compiler:
...
- add helper function getansistringcodepage which returns explicitly set codepage or 0 in other case
- add helper function getansistringdef which return a def with explicitly set codepage or cansistringtype in other case
- change tstoreddef.createnai constructor to allow set codepage in constructor
- don't convert string constants to rawbytestring. if string constant already has a codepage - preserve it or convert to ansistring codepage (delphi compatible)
- don't perform string conversion from ansistring to strings with explicitly set codepage (by directive or by compiler switch) and vice versa (delphi compatible)
+ test which covers most of the cases
git-svn-id: trunk@19510 -
2011-10-19 02:45:52 +00:00
paul
212b14a46b
rtl: set string codepage for all cases in fpc_AnsiStr_Concat
...
git-svn-id: trunk@19509 -
2011-10-19 01:06:04 +00:00
marco
94e03df0e1
* Applied patch from Lacak2 that improved compare() functionality for
...
values with inequal length. Mantis #20505
git-svn-id: trunk@19508 -
2011-10-18 20:21:34 +00:00
marco
5955d90a40
* pass fieldnamequotechars to proxy, mantis #20507
...
git-svn-id: trunk@19507 -
2011-10-18 15:58:16 +00:00
sergei
a32fdc3ae6
+ Added a simple helper tcg.g_call, intended to replace allocallcpuregisters+a_call_name+deallocallcpuregisters sequence which is used all over the place.
...
* Refactored code generation for tcgonnonde and tcgtryexceptnode, simplifying both compiler and generated code. Merged compilerprocs called in sequence into larger ones (fpc_popobjectstack+fpc_destroyexception -> fpc_doneexception, fpc_popsecondobjectstack+fpc_destroyexception+fpc_reraise -> fpc_raise_nested).
git-svn-id: trunk@19506 -
2011-10-18 15:46:15 +00:00
pierre
95ea87d797
* Fix tar option for OpenBSD
...
git-svn-id: trunk@19505 -
2011-10-17 09:24:19 +00:00
pierre
5f77ff8a18
* Do not define FPC_HAS_UNDERSCORE_PREFIX for i386 OpenBSD anymore
...
git-svn-id: trunk@19504 -
2011-10-17 09:11:12 +00:00
sergei
9b2614684e
* Return values of get_caller_addr and get_caller_frame was undefined for nil argument.
...
Moreover, these function have nothing to do with assembler at all.
git-svn-id: trunk@19502 -
2011-10-16 13:18:21 +00:00
sergei
8e41ecfd54
* Made a stupid mistake in r19460: restoring rbp from rbp-relative reference will obviously crash. This went unnoticed however, because PASCALMAIN does not return and wrong code is never executed. Fixed by storing rbp in non-volatile register instead of local var.
...
git-svn-id: trunk@19501 -
2011-10-16 12:38:47 +00:00
florian
80b5100bf6
* don't check array ranges for being constant in generic declarations, resolves #20028
...
git-svn-id: trunk@19500 -
2011-10-15 21:28:19 +00:00
florian
2887065c9d
* forgotten test for last commit
...
git-svn-id: trunk@19499 -
2011-10-15 20:30:17 +00:00
florian
3323f1b3ea
* use sra instead of srl when doing overflow checking on sparc, resolves #20396
...
git-svn-id: trunk@19498 -
2011-10-15 20:26:59 +00:00
florian
ace6bfd4e9
* check environment variable LOCALAPPDATA on windows as a possible cache location for instantfpc
...
git-svn-id: trunk@19497 -
2011-10-15 17:43:12 +00:00
marco
f005d71110
* propagate ixDescending in bufdataset. Patch by Hert van Zwietering, Mantis #20043
...
git-svn-id: trunk@19496 -
2011-10-15 16:20:12 +00:00
marco
43e9ffca3b
* add bufdataset to test framework, Mantis #20081 , patch by bigchimp
...
git-svn-id: trunk@19495 -
2011-10-15 16:09:54 +00:00
Jonas Maebe
293f09e41d
* corrected test (only "overload" differences between interface/
...
implementation should cause compilation to fail)
git-svn-id: trunk@19494 -
2011-10-15 15:46:34 +00:00
Jonas Maebe
2423105956
* mark dbf unit as deprecated because abandoned by maintainer, along with a
...
deprecation message that mentions the sourceforge forum where help may
still be found
git-svn-id: trunk@19493 -
2011-10-15 15:00:54 +00:00
Jonas Maebe
d8b008b0b0
* require that "overload" is present in the interface if it's used in the
...
implementation (Delphi-compatible in case multiple overloads exist in
the current unit, and in other cases avoids compiler crashes in case
of circular implementation dependencies)
* ignore other symbol options (deprecated, legacy, platform, ...) as far as
the interface crc is concerned to avoid trouble in case they appear in the
implementation but not in the interface (to prevent compiler crashes)
git-svn-id: trunk@19492 -
2011-10-15 14:47:45 +00:00
florian
73a084d662
* fixes bootstrapping with 2.6.0
...
git-svn-id: trunk@19491 -
2011-10-15 12:42:33 +00:00
Jonas Maebe
5122411409
* mark strcopy/strlcopy as "overload" in the interface of the strings unit
...
for overloading with sysutils versions (fixes r19488)
git-svn-id: trunk@19490 -
2011-10-15 12:32:21 +00:00
marco
91f8ee8b89
* improve mapping of db type char to relative new ftfixedchar fieldtype. + tests. Mantis #20483 , patch by Lacak2
...
git-svn-id: trunk@19489 -
2011-10-15 12:06:19 +00:00