Commit Graph

734 Commits

Author SHA1 Message Date
florian
caee5e33c8 * fixed some bugs in setlength 2000-12-01 23:30:00 +00:00
Jonas Maebe
de0a78a66e * fix for web bug #1210 from Peter (merged) 2000-11-23 13:14:02 +00:00
Jonas Maebe
eeec1b6882 * fix for web bug #1265 by Peter (merged) 2000-11-23 11:41:56 +00:00
Jonas Maebe
0d5167e124 * fixed bug for val when processing -2147483648 and low(int64) (merged) 2000-11-17 17:01:23 +00:00
Jonas Maebe
75ad22bf64 * support for range checking when converting from 64bit to something
smaller (32bit, 16bit, 8bit)
  * fixed range checking between longint/cardinal and for array indexing
    with cardinal (values > $7fffffff were considered negative)
2000-11-13 14:47:46 +00:00
marco
abfa37b122 * Renamefest 2000-11-13 13:40:03 +00:00
florian
5da658c6db * interfaces basically running 2000-11-12 23:23:34 +00:00
peter
24b631132e * ptr returns farpointer 2000-11-11 16:12:01 +00:00
florian
b3c53b4f55 * Finalize to int_finalize renamed 2000-11-09 17:50:12 +00:00
florian
f79644d9ca + AfterConstruction and BeforeDestruction implemented
+ TInterfacedObject implemented
2000-11-07 23:42:21 +00:00
peter
676d01dff6 * removed some warnings 2000-11-06 23:17:15 +00:00
florian
9882598ab6 * another fix 2000-11-06 22:03:12 +00:00
florian
49881f1aec * another fix for interfaces 2000-11-06 21:52:21 +00:00
peter
2660e94c5f * removed some warnings 2000-11-06 21:35:59 +00:00
Tomas Hajny
f46989cf51 + common FExpand introduced 2000-11-06 20:36:17 +00:00
peter
94c1f86d79 * changed ver1_0 defines to temporary defs 2000-11-06 20:34:24 +00:00
florian
8dc903fc3b * fixed linker errors 2000-11-04 17:52:46 +00:00
florian
5c645814dc * fixed some out declarations 2000-11-04 17:31:50 +00:00
florian
747f3d9552 + interfaces support 2000-11-04 16:28:55 +00:00
Jonas Maebe
5fb68eeb52 * renamed strlenint to longint since 1.0 doesn't know that type 2000-10-23 16:15:40 +00:00
florian
fc777c9970 * setlength export declaration for 1.0.2 fixed 2000-10-23 14:00:59 +00:00
florian
1a2851eb47 * a lot of small changes:
- setlength is internal
     - win32 graph unit extended
     ....
2000-10-21 18:20:17 +00:00
peter
0ddba9e6cd * fixed concatting of source and include filenames (merged) 2000-10-14 21:55:07 +00:00
peter
b8461475c8 * FPC_BREAK_ERROR added 2000-10-13 12:04:03 +00:00
michael
619dac6c93 + Merged from fixbranch 2000-10-01 13:17:35 +00:00
sg
9048ff6354 * Added 'RaiseProc': A user-definable callback procedure which gets
called whenever an exception is being raised
2000-09-30 07:38:07 +00:00
marco
194b9f2958 * FreeBSD adjustments patched in from fixes branch 2000-09-11 14:53:14 +00:00
peter
a06bc54ee9 * fixed chararray to ansistring (merged) 2000-08-29 18:39:42 +00:00
Jonas Maebe
48292584ae * clear inoutres in traceexit before writing anything (to avoid an RTE
when writing the heaptrc output when a program didn't handle ioresult)
    (merged from fixes branch)
2000-08-24 09:01:07 +00:00
Jonas Maebe
1a8c7b1d27 * fixed bug in setlength (it sometimes read after the end of the heap)
and small improvement to ansistring_to_chararray conversion (merged
    from fixes branch)
2000-08-24 07:37:21 +00:00
michael
bfdac9385b + Implemented loading of dynamical libraries 2000-08-18 19:15:34 +00:00
florian
66cbbfb910 + initial revision 2000-08-17 07:29:39 +00:00
michael
7aa1e88a5d + Added some delphi compatibility types 2000-08-13 17:55:14 +00:00
Jonas Maebe
2f3239d61c + setallpalette hook
+ setallpalette implemented for standard vga and VESA 2.0+
2000-08-12 12:27:13 +00:00
marco
e817560f04 * fixes for val(int64 or qword) to ansistring 2000-08-09 19:31:18 +00:00
Jonas Maebe
3aab08cba8 + FPC_STR_TO_CHARARRAY routine necessary for string -> chararray
conversions fix (merged fropm fixes branch)
2000-08-09 11:29:01 +00:00
sg
65e50beb55 * Implemented WideString helper functions (but they are not tested yet
due to the lack of full compiler support for WideString/WideChar!)
2000-08-08 22:12:36 +00:00
sg
6fcf8dcda3 * Added declarations for WideString utility functions 2000-08-08 22:11:45 +00:00
peter
1a0277d7b0 * smallatheapptr undef and other cleanup (merged) 2000-08-08 19:22:46 +00:00
peter
3c7d8f0db1 * merged setvideostate patch 2000-08-05 18:34:47 +00:00
Jonas Maebe
8bce8284d3 * the defaulthooks are reset if setmode() fails at any point (merged
from fixes branch)
2000-08-01 06:03:32 +00:00
Jonas Maebe
afec990176 * fixed web bug1069
* fixed similar (and other) problems in val() for int64 and qword
    (both merged from fixes branch)
2000-07-28 12:29:49 +00:00
sg
6f6c4f720a * Resolved CVS conflicts for TObject.MethodAddress patch 2000-07-22 14:52:01 +00:00
florian
4d5f0c2331 + in_typeinfo_x added 2000-07-19 20:03:19 +00:00
michael
586c4cea50 + Conditionals fixed 2000-07-14 10:33:09 +00:00
michael
650fbb86aa + removed logs 2000-07-13 11:32:24 +00:00
michael
e7aca136a1 + Initial import 2000-07-13 06:29:38 +00:00
peter
0f6ce09f13 * initernmodenumber is now renumbered at the end of AddMode() it
also sets hi/lo for the driver
2000-07-09 07:21:14 +00:00
sg
2aca65148b * Fixed TObject.FieldAddress 2000-07-08 21:27:42 +00:00
Jonas Maebe
b506dc4514 * forgot to remove some non-working experimental code from last
commit :(
2000-07-08 13:00:08 +00:00
sg
ed29399154 * FieldAddress now returns immediately if name='' 2000-07-08 07:24:24 +00:00
Jonas Maebe
732f06de57 * fixed problem that occurred if the graphmode was initialized with
a new graphdriver, but then setgraphmode was called with as
    parameter the result of getGraphMode (since that one returns an
    old-style modenumber)
2000-07-08 06:24:21 +00:00
pierre
1d1b4bcb53 * correct last commit error 2000-07-07 19:22:27 +00:00
marco
f5fd205ab5 * Changed move (var source;var dest) to move (const source;var dest) 2000-07-07 18:23:41 +00:00
Jonas Maebe
ffbedb6ec9 * changed precision for extended back (otherwise strreal2.pp in
tests/test failed)
2000-07-07 18:03:08 +00:00
Jonas Maebe
575f6c0d6d * fixed setgraphmode together with the new graphdrivers 2000-07-07 17:29:30 +00:00
florian
aa3e0fbe87 * fixed writing of comp and extended: the precision of comp was to little
while it was too high for extended
2000-07-06 21:09:45 +00:00
Jonas Maebe
011a187da3 * final fixes for linux support (graphdriver value of the modes
is now also not modified anymore)
2000-07-05 13:07:48 +00:00
Jonas Maebe
c88da249b4 * added internModeNumber to modeinfo type to fix Linux compatibility
with -dnewmodes code
2000-07-05 11:25:20 +00:00
pierre
f3b853f096 * Change Code to var param in ValAnsiUnsignedInt function 2000-07-04 07:57:46 +00:00
sg
e9d1212ea8 * Implemented TObject.FieldAddress 2000-06-29 16:32:50 +00:00
Jonas Maebe
8d2b35c5ef * released -dnewmodes 2000-06-27 13:37:04 +00:00
Jonas Maebe
71184303bd * setviewport was sometimes called with parameters from the previous
active mode, either directly from setgraphmode or from
    setbkcolor
2000-06-23 19:56:37 +00:00
peter
618dd3c91c * added tkint64,tkqword constants 2000-06-22 20:04:07 +00:00
peter
aae7c24beb * moved islibrary,isconsole,ismulithread to systemh as they are
os independent
2000-06-22 18:39:14 +00:00
peter
57c538267c * removed notes 2000-06-22 18:36:18 +00:00
michael
bc8a454afd + Modifications for exception support in sysutils. Mainly added
RaiseList function.
2000-06-22 18:05:56 +00:00
pierre
9fd7ba963e * no bufpos reset on flush for fminput 2000-06-21 22:27:50 +00:00
michael
9fee5cffce + Corrected GetSocketOptions 2000-06-19 13:31:46 +00:00
Jonas Maebe
206ea5435c * fixed newHighMode constant 2000-06-19 08:57:52 +00:00
carl
35c60dfa09 + added modes for Atari/Amiga and bit depth also 2000-06-19 01:18:49 +00:00
carl
4f6d5d6715 * bugfix of comments with tp.
+ Added Amiga/Atari graphics modes
2000-06-19 01:18:19 +00:00
peter
d87a8dd637 * detectmode between ifdef 2000-06-18 18:41:18 +00:00
Jonas Maebe
c0910ded8c * changed maxint -> maxsmallint (range error because of objpas mod
somewhere)
2000-06-18 14:59:39 +00:00
Jonas Maebe
2d01b922b6 * release memory of newmodeinfo in graphexitproc 2000-06-18 08:11:53 +00:00
Jonas Maebe
6cb27b64e6 + added missing detectMode stuff for -dnewmodes 2000-06-18 06:11:20 +00:00
Jonas Maebe
27186c9639 * new platform independent mode handling (between -dnewmodes) 2000-06-17 19:09:22 +00:00
sg
9475e81082 * The string translation is now deactivated by default on all platforms. 2000-06-17 11:16:07 +00:00
sg
de9fead4bd * The text functions can now convert the character sets of the given
strings. By default, for GO32V2 there is no conversion, and for all
  other platforms the strings are converted from ANSI to DOS-ASCII.
2000-06-16 17:06:08 +00:00
michael
b319315b4c + Fixed all constants so they match compiler defined constants 2000-06-14 08:52:05 +00:00
peter
b4c4d9d1a3 * UniqueAnsiString -> UniqueString for Delphi compatibility 2000-06-11 07:02:30 +00:00
Jonas Maebe
7a5240c730 * calling a graph function when initgraph is not yet called now prints
a nice error message instead of giving a Run Time Error
2000-06-07 07:33:42 +00:00
pierre
72c8dbfa43 * StabOfs for OS2 changed, hopefully correct now 2000-06-05 13:04:11 +00:00
marco
9a4a837f04 * added some constants for getsocketoptions under a linux define.
Allows server example to work ok.
2000-06-02 17:30:43 +00:00
pierre
2f715a886a * disable check in Exit and Error code 2000-05-23 20:35:41 +00:00
pierre
ed2dab7b31 * avoid problems with Range Check 2000-05-23 20:34:26 +00:00
Jonas Maebe
d75d13eda1 * CloseSock is now a dummy (it called system.close, but this doesn't
make any sense since itself can only be called by system.close) This
    caused an endless loop with my last changes where the mode of a
    textrec is set to fmClosed only after the closeFunc() has been called.
2000-05-22 12:38:51 +00:00
peter
bb008db4bc * use freemem without size 2000-05-18 17:04:48 +00:00
peter
0194d7a616 * fixed reallocmem with double removing from heap_mem_root list
* fixed reallocmem getmem/freemem count, now both are increased and
    the _size8 counts are also increased
2000-05-18 17:03:27 +00:00
michael
b8e6272f62 + Fixed ClassNameIs so it is case insensitive 2000-05-16 08:06:14 +00:00
florian
a319c0e73c * TVarRec with Int64/QWord stuff extended 2000-05-14 18:47:53 +00:00
florian
53b5415c5e * TVarRec with In64/QWord stuff extended 2000-05-14 18:46:54 +00:00
peter
2c081cf333 * export function so ppl can use it in their own programs 2000-05-08 13:23:46 +00:00
pierre
3930cc5818 * Use saveregisters for PushExcept.. 2000-05-04 12:25:53 +00:00
pierre
a3434cc825 * fix for bug report 929 2000-04-27 15:35:50 +00:00
peter
ebbf2e578f * backtraces for exceptions are now only generated from the place of the
exception
  * frame is also pushed for exceptions
  * raise statement enhanced with [,<frame>]
2000-04-24 11:11:50 +00:00
pierre
e574245b0e fix for heap problem 2000-04-20 15:29:15 +00:00
pierre
ab1254da22 * disable stack check in lineinfo 2000-04-20 13:03:41 +00:00
Jonas Maebe
b02682c7c5 * fixed registerbgifont (webbug 847) 2000-04-16 08:45:48 +00:00
pierre
f1ab3ebad2 + get longer backtrace when redirected to file 2000-04-14 12:17:12 +00:00
pierre
addf7fc302 * reset funcstab when changing object 2000-04-12 11:15:06 +00:00
pierre
e9f1439f5a + ReturnNilIfGrowHeapFails used in objects unit
to handle TMemoryStream out of memory properly
    as MaxAvail is not a good test anymore.
2000-04-07 21:10:35 +00:00
pierre
062604c406 * fix for extended constants 2000-04-06 11:51:47 +00:00
florian
b8faf9a8a3 * some more procedures can be now hooked by the OS specific implementation 2000-04-02 12:13:36 +00:00
florian
548f14e16d * halt in the finalization statement of a unit lead to an endless loop; fixed 2000-04-02 09:39:25 +00:00
Jonas Maebe
d9c608a373 + $maxfpuregisters 0 for i386 in systemh (to avoid requiring too much
empty FPU registers for sysstem routines
  * fixed bug in str_real when using 0
  * str_real now doesn't call exp() anymore at runtime, so it should
    require less free FPU registers now (and be slightly faster)
2000-03-26 11:36:28 +00:00
florian
fe462795f6 * introduce a DrawBitmapCharHoriz procedure variable to accelerate output on
win32
2000-03-24 18:16:32 +00:00
florian
8a700b7568 * ClearViewPort fixed 2000-03-24 13:01:15 +00:00
Jonas Maebe
17c623dc25 * changed a lot of "if fm.mode = fmClosed then" to case statements,
because if f is not yet initialized, the mode is invalid and can
    contain another value even though the file is closed
  + check if a file is open in writeln_end (caused crash if used on
    not opened files)
2000-03-24 10:26:18 +00:00
pierre
799ed3311f * fix for OS/2 hopefully 2000-03-23 22:00:08 +00:00
Jonas Maebe
7e63fc9d28 * fixed more bugs due to inexact nature of FPU 2000-03-21 12:00:30 +00:00
alex
043d981e00 * added os_types unit 2000-03-20 18:39:13 +00:00
alex
cb860d32dc added central unit for OS dependent types. 2000-03-20 15:50:13 +00:00
Tomas Hajny
a61493db4c + added support for EMX 2000-03-19 18:10:41 +00:00
peter
2d6a92f17e * graph unit include is now independent and the dependent part
is now in graph.pp
  * ggigraph unit for linux added
2000-03-19 11:20:12 +00:00
peter
2a4b2adc65 * strdispose uses freemem(pointer) and resets pointer to nil 2000-03-19 08:40:14 +00:00
peter
9920510f64 * length check for readnumeric 2000-03-19 08:36:41 +00:00
Jonas Maebe
f62ff5df66 * strdispose now uses dispose instead of freemem(strlen()+1) 2000-03-18 15:43:05 +00:00
sg
65506db2eb * Fix for ClearViewportDefault: The width and the height of the rectangle
it filled has been one pixel too high.
2000-03-18 10:45:07 +00:00
Jonas Maebe
49b6de7c9e * fixed declaration of val_int64 (removed destsize parameter)
* fixed val_int64 and val_qword so they reject invalid input
    (u >= base)
  * when reading a number, invalid input is removed from the input
    buffer (+ it should be faster as well)
2000-03-17 21:27:56 +00:00
Jonas Maebe
df004d997b * fixed rounding bugs with certain formatting parameters in str_real
* fixed tbs0218 so it compares both results only until max precision
2000-03-17 20:20:33 +00:00
sg
1ce21b9e8e * Use linux unit under Linux 2000-03-17 13:28:54 +00:00
michael
54f9bbd99b + Added constants and types for Delphi compatibility 2000-03-14 10:20:18 +00:00
pierre
dafcbea824 + HandleErrorAddrFrame 2000-03-14 07:31:57 +00:00
peter
11d7a573df * concat free blocks in main freelist 2000-03-13 21:22:28 +00:00
pierre
4bbbb33cf1 * small fixes 2000-03-10 13:45:31 +00:00
pierre
6d213ac89b * avoid problems if sbrk returns negative values 2000-03-10 12:41:21 +00:00
Jonas Maebe
4cb3f54367 * writemode was not set to normalput during clearviewport (and it uses hline) 2000-03-08 14:20:14 +00:00
daniel
c711189ead + Added is_object method to Tobject. It is similar to the is operator. 2000-03-06 20:15:32 +00:00
Jonas Maebe
02ec1d0d3b * fixed rounding problem when writing out single/double type vars 2000-03-05 09:41:05 +00:00
Jonas Maebe
c535d675f5 * sign was not written in some cases 2000-03-02 07:35:57 +00:00
peter
66ea55dd7c * removed warnings/notes 2000-02-27 14:40:40 +00:00
Jonas Maebe
51bbb51a06 * fix for lost precision because sometimes the correction value was
larger than the number to be corrected
  * incompatibility with TP's output fixed
2000-02-26 18:53:11 +00:00
Jonas Maebe
0b02714817 + new str_real which is completely TP compatible regarding output
format and which should have no rounding errors anymore
2000-02-26 15:49:40 +00:00
florian
2eb62408ae * disabled FIXED data type per default 2000-02-15 14:36:57 +00:00
Jonas Maebe
ba7b10c01d + new, faster fillpoly from Thomas Schatzl
* some logging commands in vesa.inc disabled
2000-02-12 13:39:19 +00:00
peter
20105af42c * fixed bug with reallocmem to use the wrong size when copying the
data to the new allocated pointer
2000-02-10 13:59:35 +00:00
florian
17f8a06883 + helper routine for <int64> mod <in64> added 2000-02-09 22:19:24 +00:00
florian
e22cb380d4 + popsecondobjectstack added 2000-02-09 22:16:50 +00:00
peter
6b66a55cd6 * truncated log 2000-02-09 16:59:28 +00:00
peter
6c15031ffd * moved halt to system.inc
* syslinux doesn't use direct asm anymore
2000-02-09 12:17:51 +00:00
pierre
abfb61c7d0 * fix for directories included in stabsinfo 2000-02-08 15:23:02 +00:00
peter
06edc7aa14 * use backtracestrfunc() 2000-02-07 10:42:44 +00:00
florian
a8e85eb3a9 * small typo for go32 fixed 2000-02-06 22:13:42 +00:00
peter
0cf7314799 * linux elf support 2000-02-06 19:14:22 +00:00
peter
78cb6bfa89 * lineinfo unit added which uses stabs to get lineinfo for backtraces 2000-02-06 17:19:22 +00:00
florian
d3b00ca358 * popobjectstack is now a function 2000-02-06 17:17:57 +00:00
sg
4e5b164c36 * For Linux, "/" is added to the bgipath instead of "\" if this character
isn't already there.
2000-02-06 01:47:15 +00:00
peter
d19710a9ad * fixed tracereallocmem which supplied the wrong size for tryresize 2000-02-02 11:13:15 +00:00
peter
6bbb440811 * fixed internal_memavail counting for tryresizemem 2000-02-02 11:12:29 +00:00