Commit Graph

47013 Commits

Author SHA1 Message Date
nickysn
48d9daadb9 + init the dynlibs manager in the win16 system unit startup code
git-svn-id: trunk@31900 -
2015-10-01 12:37:30 +00:00
nickysn
8728cc0238 * updated the source dependencies of the win16 system unit in Makefile.fpc
git-svn-id: trunk@31899 -
2015-10-01 12:33:40 +00:00
joost
79dba1d74d * Fixed resolving files for all targets on creation of a source-archive
git-svn-id: trunk@31895 -
2015-09-30 18:02:46 +00:00
florian
c40240990e * popt386 uses now also all routines of aoptx86
git-svn-id: trunk@31894 -
2015-09-29 19:31:33 +00:00
nickysn
01257267b8 + win16 implementation of a dynlib manager in the system unit
git-svn-id: trunk@31893 -
2015-09-29 16:31:17 +00:00
nickysn
4b61981ad9 * changed the return type of GetProcAddress in the generic dynlibs interface to
FarPointer on i8086

git-svn-id: trunk@31892 -
2015-09-29 16:30:27 +00:00
nickysn
9955597bf1 * use the GetDOSEnvironment win16api function to obtain a pointer to the
environment in the win16 dos unit

git-svn-id: trunk@31891 -
2015-09-29 14:10:58 +00:00
michael
35a46aa5be * Applied patch from Ondrej to bring it in sync with bugreport version
git-svn-id: trunk@31890 -
2015-09-29 13:38:16 +00:00
nickysn
8aa5a6e63b + added a dos unit implementation for win16
git-svn-id: trunk@31889 -
2015-09-29 13:17:55 +00:00
nickysn
7f086bb154 * use a farpointer on i8086 in the getintvec and setintvec generic "do nothing"
implementation to match the interface declaration in dosh.inc

git-svn-id: trunk@31888 -
2015-09-29 13:16:56 +00:00
svenbarth
114dfe41a3 Fix for Mantis #28741.
pexpr.pas:
  * initialize srsym in the classrefdef case; it should not have let to problems, because it's only used if erroroutp1 is false which is only the case if the symbol is assigned, but better save then sorry...

git-svn-id: trunk@31887 -
2015-09-29 12:56:01 +00:00
yury
99615264c5 * typos.
git-svn-id: trunk@31886 -
2015-09-29 12:31:55 +00:00
michael
221ce7a44a * Added AdvandedIPC from Ondrey Pokorny
git-svn-id: trunk@31885 -
2015-09-29 10:48:09 +00:00
Jonas Maebe
2b01a7e2c6 * initialize errorp1 for classrefdef after r31856 (mantis #28741, but this
doesn't fix it as there are more problems)

git-svn-id: trunk@31884 -
2015-09-29 07:59:59 +00:00
Jonas Maebe
e25c5b809e * use cextended instead of clongdouble, so that the tests keeps compiling
for platforms where we don't support the "long double" type

git-svn-id: trunk@31883 -
2015-09-29 07:44:07 +00:00
Jonas Maebe
525685617c * unicode2ascii: give an internalerror when trying to convert to UTF-8, as
this routine does not support this (and isn't/shouldn't be used for that
    purpose in the compiler)

git-svn-id: trunk@31882 -
2015-09-28 22:15:00 +00:00
Jonas Maebe
05bf826342 + support UTF-8 in ascii2unicode(), this fixes the UTF-16 output of
resourcestring data .rsj files in case the source file is interpreted as
    UTF-8. Previously, the individual UTF-8 bytes were each stored in a
    separate widechar in the Json file (mantis #28717)

  * due to the fact that rstconv didn't use the cwstring unit on Unix, rstconv
    until now just concatenated the bytes stored in the widechars of the Json
    file on those platforms, i.e., the strings put in the resource file were
    byte for byte equal to what was in the source file. On Windows, these bytes
    were interpreted as individual widechars, converted to the
    DefaultSystemCodePage and then written. This means that for anything but
    ISO-8859-1 (where every widechar from #0000 to #0255 maps to #0 to #255),
    the output got corrupted.

    In order to keep compatibility with the old behaviour whereby rstconv wrote
    the resource strings using the same encoding as in the source file (except
    if the data got completely corrupted, in which case compatibility is
    useless), we now store all resourcestrings twice in the .rsj file: once as
    the exact byte sequence from the source file, and once (properly) encoded
    in UTF-16.

    By default, rstconv will use the byte string and just write that one to the
    resource file. Additionally, there is a new -p option that accepts a code
    page name (see rstconv -h for the list of supported names), which can be
    used to make rstconv use the UTF-16 version and convert that to the desired
    code page (as long as the system on which rstconv runs supports that
    codepage).

    And this also finally resolves mantis #6477.

git-svn-id: trunk@31881 -
2015-09-28 22:14:56 +00:00
Jonas Maebe
a1ed7cc162 * addending to r31831: disable cs_systemcodepage if the source file code page
is set via an UTF-8 BOM

git-svn-id: trunk@31880 -
2015-09-28 22:14:53 +00:00
Jonas Maebe
0ebee6a825 * enabled assembling via a pipe for clang
git-svn-id: trunk@31879 -
2015-09-28 22:14:50 +00:00
Jonas Maebe
fdf76bc606 * ascii2unicode: consistently use the cp parameter
git-svn-id: trunk@31878 -
2015-09-28 22:14:44 +00:00
blikblum
da66980766 Call inherited method in InternalPost (check for required fields)
git-svn-id: trunk@31877 -
2015-09-28 18:39:00 +00:00
blikblum
d4a8b7881b Use FieldValues in Lookup, allowing to retrieve multiple field values
git-svn-id: trunk@31876 -
2015-09-28 18:38:52 +00:00
svenbarth
e2be6f400f Fix for Mantis #28738.
pexpr.pas:
  * the gettypedef() overload should not have been commented... Note to self: don't test things during commits

git-svn-id: trunk@31875 -
2015-09-28 09:25:07 +00:00
nickysn
5f0905d9c7 - removed unnecessary zero fill of regs in CheckLFN in the win16 system unit
git-svn-id: trunk@31874 -
2015-09-28 00:17:53 +00:00
nickysn
25573b5927 + implemented randomize for win16
git-svn-id: trunk@31873 -
2015-09-28 00:12:59 +00:00
nickysn
2574c6304d + zero seg regs prior to use in the win16 system unit dir functions as well
git-svn-id: trunk@31872 -
2015-09-27 23:57:57 +00:00
nickysn
2f32a7b718 * only clear DS and ES instead of fillchar-ing the whole Registers record in
various places in the win16 rtl where int 21h is called

git-svn-id: trunk@31871 -
2015-09-27 23:52:33 +00:00
nickysn
eaf719a623 * win16 do_open: zero fill regs before attempting to open the file a second time
git-svn-id: trunk@31870 -
2015-09-27 23:42:22 +00:00
nickysn
bed89062d0 + dummy win16 mouse unit implementation
git-svn-id: trunk@31869 -
2015-09-27 23:35:57 +00:00
nickysn
f436987ca4 + implemented keyboard input in the win16 crt unit
git-svn-id: trunk@31868 -
2015-09-27 23:11:47 +00:00
nickysn
80333e8da6 * don't dequeue the key event in SysPollKeyEvent for win16
git-svn-id: trunk@31867 -
2015-09-27 23:00:39 +00:00
nickysn
dd4454716e + initial implementation of a win16 keyboard unit
git-svn-id: trunk@31866 -
2015-09-27 22:46:12 +00:00
yury
83ad80d41f * Added predefined ICU versions for newer Android version.
* Fixed search of unknown ICU versions.
* Do UTF-8 conversion by RTL if ICU can not be loaded.

git-svn-id: trunk@31865 -
2015-09-27 22:37:54 +00:00
yury
bbb1cae57f * Use "clongdouble" instead of "extended" in libc printf tests.
git-svn-id: trunk@31864 -
2015-09-27 21:14:04 +00:00
nickysn
9b0f509242 + initial implementation of a win16 crt unit, implemented on top of the video unit
git-svn-id: trunk@31863 -
2015-09-27 20:53:31 +00:00
florian
79619df936 + use the or instruction to compare 32 bit values with 0
git-svn-id: trunk@31862 -
2015-09-27 20:50:59 +00:00
florian
298cde6489 + initial code in aoptcpu for i8086: make use of lds/les
git-svn-id: trunk@31861 -
2015-09-27 20:50:57 +00:00
nickysn
ea76bcfbe3 + update CursorX and CursorY when setting the cursor pos in the video unit for win16
git-svn-id: trunk@31860 -
2015-09-27 20:31:51 +00:00
svenbarth
bb873c93af pexpr.pas:
* postfixoperators: generate specialize nodes in mode Delphi
  * factor: don't call postfixoperators() if returned node is a specialize node
  * sub_expr: handle specialize nodes
  * sub_expr: extract common code handling specializations in < and as/is into a nested function

git-svn-id: trunk@31859 -
2015-09-27 20:12:03 +00:00
nickysn
641ff7580e + initial (and incomplete) implementation of a video unit for win16
git-svn-id: trunk@31858 -
2015-09-27 19:58:07 +00:00
nickysn
02d6f7a2a4 - disabled the win16 target for all packages that don't compile on that platform
git-svn-id: trunk@31857 -
2015-09-27 19:32:44 +00:00
svenbarth
9dcfec8c63 pexpr.pas:
* extend handle_specialize_inline_specialization() with the ability to handle generic functions
  * have handle_factor_typenode() and postfixoperators() make use of this extension

git-svn-id: trunk@31856 -
2015-09-27 18:53:16 +00:00
nickysn
88e1e963a3 * fixed "data structure too large" error when compiling the video unit on a 16-bit cpu
git-svn-id: trunk@31855 -
2015-09-27 18:38:08 +00:00
marcus
5d6c959890 AROS Amiga, MorphOS: Added PPObject_, RasSize, MIDDLEUP, MIDDLEDOWN, Changed: Text() -> GfxText() unified, ACTION_WRITE, ACTION_READ, ReadArgs, TextLength
git-svn-id: trunk@31854 -
2015-09-27 17:43:27 +00:00
blikblum
8414d53e0e Use StrBufSize to calculate PChar length and properly escape NUL values inside strings. Fixes bug #26443
git-svn-id: trunk@31853 -
2015-09-27 17:00:15 +00:00
marcus
4a8feeff42 Amiga, MorphOS: Match SDKs for PolyDraw, PixelArray8, PixelLine8, WriteChunkyPixels
git-svn-id: trunk@31852 -
2015-09-27 16:48:04 +00:00
pierre
57bff01715 Add dummy function result after HandleError call inside fpc_sqr_real and fpc_trunc_real compilerproc to suppress warning
git-svn-id: trunk@31851 -
2015-09-27 16:47:24 +00:00
nickysn
4c8cea1d1a + implemented ChDir, MkDir, RmDir and GetDir for Win16
git-svn-id: trunk@31850 -
2015-09-27 15:47:25 +00:00
nickysn
f5c2ce9058 * fixes to the win16 stderr output
git-svn-id: trunk@31849 -
2015-09-27 15:17:59 +00:00
Jonas Maebe
84b47dc92c * fixed test on systems not using UTF-8 as defaultsystemcodepage. This test
was correct before the ansistrings with codepage support had been
    implemented, and by accident kept working afterwards on platforms that
    don't use UTF-8 as defaultsystemcodepage, but after r31831 it started
    failing. This commit fixes it again, in combination r31847 (by ensuring
    that the string data passed to ansistart/endtext is encoded in
    defaultsystemcodepage).

git-svn-id: trunk@31848 -
2015-09-27 14:46:44 +00:00