Commit Graph

773 Commits

Author SHA1 Message Date
Jonas Maebe
d06ebc3fd1 * fix for web bug #1727 from Peter 2001-12-31 11:41:06 +00:00
Jonas Maebe
e27b13b0e4 * correctly check for 0-size dynarray in previous patch 2001-12-29 15:51:11 +00:00
Jonas Maebe
f0662a6990 * don't allocate memory when doing a setlength(dynarr,0) when dynarr is
already nil
2001-12-28 14:19:07 +00:00
peter
21a8c2cc8e * merged fixes from 1.0.x 2001-12-26 21:03:56 +00:00
michael
bec30ba1b5 + Added double2real function from main branch 2001-12-13 20:23:19 +00:00
carl
d98bcfc83b + SunOS target 2001-12-13 03:50:00 +00:00
peter
7484da248d * freemem(var) -> freemem(value) 2001-12-03 21:39:19 +00:00
Jonas Maebe
879d8ccb44 * fixed web bug #1707:
* tvarsym.getvaluesize doesn't return 0 anymore for dynarrays (found
       by Florian)
     * in genrtti, some more ppointer(data)^ tricks were necessary
2001-11-30 16:25:35 +00:00
michael
2de56ad75e * Fixed memory corruption with finalize() of ansistring in a class 2001-11-22 07:33:08 +00:00
Jonas Maebe
d8a3bfb576 * fixed writing of empty ansistring with specified width (merged) 2001-11-21 14:51:33 +00:00
carl
aa32c57d8d + same version as fixed branches :
+ BeOS line information
    * correct prototype with shortstring result type
    + relocation of frame according to processaddress
2001-11-19 02:45:10 +00:00
carl
6c657fe80e + don't print stack information if previous frame = 0 2001-11-19 02:40:24 +00:00
carl
502b31fce2 - no stack checking possible because used by lineinfo which
might get infinite recursion if stack limit reached
2001-11-19 00:31:07 +00:00
florian
67f6ce5348 * code of ansitr_concat improved 2001-11-17 23:58:12 +00:00
florian
5050f1ff66 * init and final code in genrtti.inc updated 2001-11-17 16:56:08 +00:00
florian
92b842342c * make cycle for win32 fixed 2001-11-17 10:29:48 +00:00
Jonas Maebe
1b89398cec * optimized fpc_val_sint_shortstr 2001-11-16 15:09:47 +00:00
florian
a931861ce1 * qword div qword for i386 improved 2001-11-15 00:07:42 +00:00
michael
d703757d27 + First working variant support 2001-11-14 23:00:16 +00:00
michael
2a27de0fb0 + Initial variant support 2001-11-14 22:59:11 +00:00
michael
2b235a902c + System unit implementation of variants 2001-11-08 20:59:10 +00:00
florian
f9ed2775c2 + beginning of variant dispatching 2001-11-08 16:16:54 +00:00
michael
2f52ba40e8 + Moved PathDelim,DriveDelim,PathSep to sysutilh 2001-11-07 14:59:20 +00:00
michael
2a04e66b42 + Added PathDelim,DriveDelim,PathSep 2001-11-07 13:52:37 +00:00
peter
52d1571d12 * moved locking of heap 2001-10-25 21:22:34 +00:00
peter
5d62342562 * criticalsection renamed to rtlcriticalsection for kylix compatibility 2001-10-23 21:51:02 +00:00
michael
e68b5a2ae4 + Removed defaultmode field from driver 2001-10-13 12:59:46 +00:00
peter
9d93d0d4e3 * pollkey fixes (merged) 2001-10-12 16:03:15 +00:00
michael
c957bff371 + Clearscreen now also clears oldvideobuf after screenupdate 2001-10-10 21:03:48 +00:00
michael
ab5bd73633 + Merge of Fixed PollKeyEvent - Pierres fix was not complete 2001-10-10 20:19:00 +00:00
carl
05a2276947 * bugfix #1639 (IsMultiThread varialbe setting) 2001-10-09 02:17:45 +00:00
michael
30ef883342 + Merged video mode selection/setting system 2001-10-06 22:28:24 +00:00
michael
bcf109febc + merged function setvideodriver 2001-10-04 20:51:56 +00:00
michael
2ea2c2115f * SetKeyBoardDriver now returns true if driver set - merged 2001-10-03 20:08:36 +00:00
peter
d4860bf49c * merged fixes 2001-09-30 21:08:58 +00:00
Jonas Maebe
fc6d300a95 * almost all second pass typeconvnode helpers are now processor independent
* fixed converting boolean to int64/qword
  * fixed register allocation bugs which could cause internalerror 10
  * isnode and asnode are completely processor indepent now as well
  * fpc_do_as now returns its class argument (necessary to be able to use it
    properly with compilerproc)
2001-09-29 21:32:46 +00:00
Jonas Maebe
d601ccd49b * fixed bug in dynarr_decr_ref I introduced with my previous fixes 2001-09-27 08:59:13 +00:00
Jonas Maebe
da09ad93c7 * fixed several bugs, most related to handling multi-dimensional
dynamical arrays
2001-09-26 14:07:25 +00:00
Jonas Maebe
c98f73e0d5 * fixed seekeof() so that it doesn't move the current possition in the
file anymore (merged)
  * seekeof() now only regards #26 as EOF marker if EOF_CTRLZ is defined
    (just like eof()) (merged)
  * very tiny optimization to read_array_as_pchar
2001-09-25 16:34:59 +00:00
michael
29c840668a + Merged driver support for mouse from fixbranch 2001-09-22 00:01:42 +00:00
michael
1321a73ce1 + Merged driver support from fixbranch 2001-09-21 21:33:35 +00:00
michael
a4202664da + Initial import to main branch from fixes branch 2001-09-21 21:30:51 +00:00
michael
148dbc6022 + Merged driver support from fixbranch 2001-09-21 19:50:18 +00:00
Jonas Maebe
a39cd8a580 * made multiplying, dividing and mod'ing of int64 and qword processor
independent with compilerprocs (+ small optimizations by using shift/and
    where possible)
2001-09-05 15:22:09 +00:00
Jonas Maebe
ed449defca + searchsystype() and searchsystype() functions in symtable
* changed ninl and nadd to use these functions
  * i386 set comparison functions now return their results in al instead
    of in the flags so that they can be sued as compilerprocs
  - removed all processor specific code from n386add.pas that has to do
    with set handling, it's now all done in nadd.pas
  * fixed fpc_set_contains_sets in genset.inc
  * fpc_set_in_byte is now coded inline in n386set.pas and doesn't use a
    helper anymore
  * some small fixes in compproc.inc/set.inc regarding the declaration of
    internal helper types (fpc_small_set and fpc_normal_set)
2001-09-04 11:38:54 +00:00
Jonas Maebe
f256a47f04 * compilerproc implementation of set addition/substraction/...
* changed the declaration of some set helpers somewhat to accomodate the
    above change
  * i386 still uses the old code for comparisons of sets, because its
    helpers return the results in the flags
  * dummy tc_normal_2_small_set type conversion because I need the original
    resulttype of the set add nodes
  NOTE: you have to start a cycle with 1.0.5!
2001-09-03 13:27:41 +00:00
Jonas Maebe
41a57028b9 * converted adding/comparing of strings to compileproc. Note that due
to the way the shortstring helpers for i386 are written, they are
    still handled by the old code (reason: fpc_shortstr_compare returns
    results in the flags instead of in eax and fpc_shortstr_concat
    has wierd parameter conventions). The compilerproc stuff should work
    fine with the generic implementations though.
  * removed some nested comments warnings
2001-08-30 15:43:14 +00:00
Jonas Maebe
06f9cd4c96 * some fixes in compilerprocs for chararray to string conversions
* conversion from string to chararray is now also done via compilerprocs
2001-08-29 19:49:03 +00:00
Jonas Maebe
fc92c3b336 + compilerproc implementation of most string-related type conversions
- removed all code from the compiler which has been replaced by
    compilerproc implementations (using {$ifdef hascompilerproc} is not
    necessary in the compiler)
2001-08-28 13:24:46 +00:00
Jonas Maebe
a6cfe4083a + tempcreate/ref/delete nodes (allows the use of temps in the
resulttype and first pass)
  * made handling of read(ln)/write(ln) processor independent
  * moved processor independent handling for str and reset/rewrite-typed
    from firstpass to resulttype pass
  * changed names of helpers in text.inc to be generic for use as
    compilerprocs + added "iocheck" directive for most of them
  * reading of ordinals is done by procedures instead of functions
    because otherwise FPC_IOCHECK overwrote the result before it could
    be stored elsewhere (range checking still works)
  * compilerprocs can now be used in the system unit before they are
    implemented
  * added note to errore.msg that booleans can't be read using read/readln
2001-08-23 14:28:35 +00:00