Jonas Maebe
d80d3f36d2
* fixed crash when writing a currency value with a specified number
...
of fractional digits in case it's not the last value of the
write(ln) statement (mantis #10920 )
git-svn-id: trunk@10421 -
2008-03-02 10:22:25 +00:00
Jonas Maebe
b8e904f531
+ also test "pointer + integer" constant evaluation
...
git-svn-id: trunk@10420 -
2008-03-02 09:58:29 +00:00
Jonas Maebe
22f02977ca
* fixed warnings now that "longint or cardinal" gives a 64 bit result
...
(part of r10418, forgot to commit)
git-svn-id: trunk@10419 -
2008-03-02 09:44:14 +00:00
Jonas Maebe
97f4c0a130
* call taddnode.simplify at the very end of taddnode.pass_typecheck, so
...
it doesn't have to duplicate any type checking code, and so constant
expressions get the same resultdefs as non-constant expressions
* properly fixed resultdef determination of "set + setelementn" (follows
same rules now as "set + set")
* also convert "longint or/xor cardinal" to int64 (needed for correct
results with negative numbers and Delphi-compatible) + test
* extended 64-to-32 type conversion simplification to also handle
or/xor nodes (so if the result is typecasted back to 32 bit, the
evaluation can still be done entirely in 32 bit). These changes also
enable that optimization in some extra cases (not just anymore for
expressions containing only uint32)
git-svn-id: trunk@10418 -
2008-03-01 20:48:50 +00:00
florian
288fb08f09
+ more implements tests
...
git-svn-id: trunk@10417 -
2008-03-01 20:41:28 +00:00
florian
1b4071d930
+ first test for implements through classes
...
git-svn-id: trunk@10416 -
2008-03-01 20:35:09 +00:00
florian
5826b9bdad
+ define cpunodefaultint
...
git-svn-id: trunk@10415 -
2008-03-01 20:31:56 +00:00
florian
bc0586139a
* copyright and description fixed
...
git-svn-id: trunk@10414 -
2008-03-01 20:22:18 +00:00
florian
d83722076f
* fixed implements for interfaces
...
+ tests for implements through interface
git-svn-id: trunk@10413 -
2008-03-01 20:20:49 +00:00
Jonas Maebe
2722b5b381
* fixed overflow checking for $8000000000000000 in generic int64 mul
...
routine (constants >high(int64) are currently always interpreted as
int64 (and thus < 0) by the compiler if there is no explicit typecast)
git-svn-id: trunk@10412 -
2008-03-01 19:38:19 +00:00
Jonas Maebe
dbc7e36007
+ added {$linkframework Carbon} to FPCMacOSAll so -k"-framework Carbon" is
...
not longer needed when using that unit
- removed the same statement from the Mac OS X graph unit (since it uses
FPCMacOSAll)
git-svn-id: trunk@10411 -
2008-03-01 17:22:57 +00:00
marco
117062ed34
* wininet added.
...
git-svn-id: trunk@10410 -
2008-03-01 17:06:07 +00:00
marco
4047d76279
win32finddataa
...
git-svn-id: trunk@10409 -
2008-03-01 16:38:55 +00:00
Jonas Maebe
900f7bd16d
* fixed external declaration of FPCMacOSXGraphMain
...
git-svn-id: trunk@10408 -
2008-03-01 13:26:14 +00:00
Jonas Maebe
0cd1029cdf
* rewrote the setup code using {$pascalmainname x} so you can
...
use this graph unit like any other (instead of having to put all
code in a separate function and then calling StartGraphProgram
with the address of this function as parameter)
git-svn-id: trunk@10407 -
2008-03-01 13:07:12 +00:00
Jonas Maebe
86f90d8ac1
+ support for setting the name of "main" (-XM command line parameter) in
...
the code using {$pascalmainname x} + storing it in the ppu file
(and give a warning if it's overridden multiple times + test)
git-svn-id: trunk@10406 -
2008-03-01 13:05:01 +00:00
Jonas Maebe
e1ec2834df
* increase/decrease refcount of interface value parameters on procedure
...
entry/exit (mantis #10897 )
* fixed tinterface2 which crashed after this change. It also crashed under
Kylix: you cannot assign the result of an interfaced class to a class
instance variable and then use it both as an interface (refcounted) and
as class (non-refcounted)
git-svn-id: trunk@10405 -
2008-03-01 10:25:27 +00:00
marco
d89b92f639
* patch 10090 + imgconv now also writes pnm
...
git-svn-id: trunk@10404 -
2008-02-29 21:11:44 +00:00
michael
d25c28eaf4
* Patch from Laurent (wile64@gmail.com) to read CMYK files
...
git-svn-id: trunk@10402 -
2008-02-28 18:22:12 +00:00
marco
2df6010386
* bug #10909 copy paste fixes in daemon support (stop/pauze)
...
git-svn-id: trunk@10401 -
2008-02-28 13:28:32 +00:00
Jonas Maebe
a2beae0e11
* use more generic set type boundaries for constant sets with one
...
element in Delphi mode (fixes mantis #10890 , but requires more
thorough changes in nadd.pas for proper fixing)
git-svn-id: trunk@10399 -
2008-02-27 21:17:13 +00:00
marco
4d6f2fb914
* fix for bug #10899
...
git-svn-id: trunk@10397 -
2008-02-27 19:34:18 +00:00
Jonas Maebe
59ca0153e7
* moved transformation of "mul by power-of-2" to shl from type check
...
pass to pass 1 (where most optimizing transformations are located,
and because the way it's written it goes wrong if left and right are
a constant, and I'm working on moving the simplify code after the
typechecking code so the resulttype for constant and non-constant
expressions can be the same)
git-svn-id: trunk@10396 -
2008-02-27 15:56:40 +00:00
Jonas Maebe
179b840cea
* also adjust constsetlo when parsing a constant set in Delphi mode
...
git-svn-id: trunk@10395 -
2008-02-27 15:42:49 +00:00
peter
f9b80919e1
* basic work for checksum on packages to detect if recompile
...
is needed. Checksum is currently based on the system time
git-svn-id: trunk@10394 -
2008-02-26 22:46:42 +00:00
joost
bf5bba3f0e
* Tests for Set- and GetFieldValues
...
git-svn-id: trunk@10392 -
2008-02-26 21:36:52 +00:00
Jonas Maebe
ef4b238989
* lineinfo and lnfodwrf depend on inc/exeinfo.pp
...
+ add fake dependency of lnfodwrf on lineinfo to avoid those two
units being compiled together, because then inc/exeinfo.pp can
also be compiled twice at the same time which leads to trouble
if -ap isn't used
(part of r10329, forgot to commit)
git-svn-id: trunk@10386 -
2008-02-25 15:40:13 +00:00
florian
c424f27291
* patch by C Western for #10883
...
git-svn-id: trunk@10385 -
2008-02-24 20:00:08 +00:00
florian
65e9ad8591
+ test for implements with alias
...
git-svn-id: trunk@10384 -
2008-02-24 19:43:50 +00:00
joost
3bb5a786eb
* Do not depend on TDataset.DataEvent when setting up the test-data
...
git-svn-id: trunk@10383 -
2008-02-24 13:21:16 +00:00
florian
6c53785e3a
* first part of implements clean up and fixing
...
git-svn-id: trunk@10382 -
2008-02-24 11:05:46 +00:00
Jonas Maebe
7433e0ef89
* replaced a trunc() with an int() call (because its result is compared
...
with a float as well)
git-svn-id: trunk@10375 -
2008-02-21 13:18:56 +00:00
Jonas Maebe
469452b0ba
* avoid check being wrongly "optimized" away (left and right
...
side were convered to int64, after which the expression was
considered to be never true)
git-svn-id: trunk@10372 -
2008-02-20 21:27:32 +00:00
Jonas Maebe
db34ed44e4
* fixed an {$ifndef cpu64bitalu} which had to be {$ifndef cpu64bitaddr}
...
git-svn-id: trunk@10371 -
2008-02-20 20:08:03 +00:00
Jonas Maebe
638fc56489
* rlwnm_ -> rlwnm.
...
git-svn-id: trunk@10368 -
2008-02-20 11:50:12 +00:00
Jonas Maebe
417b5dcfda
+ internal round/trunc support for ppc970 using fctid/fctidz
...
* a_fctw_ -> a_fctiw_
git-svn-id: trunk@10367 -
2008-02-20 11:49:15 +00:00
Jonas Maebe
1cdf575657
+ test for previous commit
...
git-svn-id: trunk@10363 -
2008-02-19 20:24:22 +00:00
Jonas Maebe
e9108ed51c
* fixed skipping of character after number of errors to report in
...
parsing of -Se<xxx> string (mantis #10849 )
git-svn-id: trunk@10362 -
2008-02-19 20:20:26 +00:00
joost
3a3657f925
* Do not pass Self to TDataset.SetDataEvent directly. Just to be sure that setting it to something else will not give any problems. (bug 9503)
...
git-svn-id: trunk@10361 -
2008-02-19 19:32:52 +00:00
joost
c64fea89b7
* Patch from Luiz Americo for bug #10777
...
git-svn-id: trunk@10357 -
2008-02-18 22:42:55 +00:00
daniel
3540c400dc
* Fix read/write enum on cpu's requiring alignment: Call 'align' the proper way.
...
git-svn-id: trunk@10351 -
2008-02-17 21:43:39 +00:00
joost
203331cc3a
* Fixed bug #8464
...
git-svn-id: trunk@10350 -
2008-02-17 21:14:26 +00:00
joost
af564e4da5
* Fix+test bug #10345
...
git-svn-id: trunk@10349 -
2008-02-17 20:52:16 +00:00
Almindor
141defd182
* fix aspell runtime error in windows if no library (register keys) are present
...
git-svn-id: trunk@10348 -
2008-02-17 17:04:15 +00:00
joost
7a114d46c1
* Set the FFirstRecBuf of the default index to nil when the dataset is closed. (Fixes test TestExceptOnsecClose)
...
git-svn-id: trunk@10347 -
2008-02-17 14:19:46 +00:00
joost
d176f7a417
* Set the default alignment of TNumericFields to taRightJustify. (Patch from Jesus Reyes, bug #9456 )
...
git-svn-id: trunk@10346 -
2008-02-16 22:43:30 +00:00
joost
0fcaf1f671
* Patch from Martin Schreiber to fix AV when using postgres 7.x
...
git-svn-id: trunk@10345 -
2008-02-16 22:34:49 +00:00
joost
983e723262
* Implemented Port property (bug 10533)
...
git-svn-id: trunk@10344 -
2008-02-16 22:07:44 +00:00
joost
c5aa15f41b
Patch from Luiz Americo:
...
* Replace StrPas by String
* Removes unnecessary code
* Format surrounding code
git-svn-id: trunk@10342 -
2008-02-16 21:18:18 +00:00
joost
c48fe41781
* Patch from Jesus Reyes to set a default for ParseSQL (bug 10798)
...
git-svn-id: trunk@10341 -
2008-02-16 21:08:54 +00:00