Commit Graph

46986 Commits

Author SHA1 Message Date
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
Jonas Maebe
8e50695f78 * make the meaning of "string" in {$h+} mode the same as that of ansistring:
"type ansistring(CP_ACP)", rather than "type ansistring(sourcefilecodepage)"

git-svn-id: trunk@31847 -
2015-09-27 14:46:41 +00:00
nickysn
406d5b7b3d + implemented a win16 heap manager for the far data memory models, using the
global heap; TODO: allocate heap in blocks and perform suballocation for small
  memory blocks, because the number of global heap blocks is limited

git-svn-id: trunk@31846 -
2015-09-27 13:00:27 +00:00
blikblum
755a6cc776 Remove commented code in fillds demo commited by accident
git-svn-id: trunk@31845 -
2015-09-27 12:01:13 +00:00
blikblum
776534a43d Fix mem leak in InitiRecord
git-svn-id: trunk@31844 -
2015-09-27 12:01:05 +00:00
florian
53ea4fb7d4 * unify x86 peephole optimizer helpers
git-svn-id: trunk@31843 -
2015-09-27 09:36:39 +00:00
nickysn
3e2248f41a + implemented exporting of functions for the win16 target
git-svn-id: trunk@31842 -
2015-09-27 00:48:35 +00:00
blikblum
d144073299 Adapt demos programs to use sqlite3ds by default
git-svn-id: trunk@31841 -
2015-09-26 21:34:29 +00:00
blikblum
e4ec432012 Fix sqliteds compilation
git-svn-id: trunk@31840 -
2015-09-26 21:34:16 +00:00
blikblum
55ad9b69d0 Free row from begin item
git-svn-id: trunk@31839 -
2015-09-26 21:34:06 +00:00
blikblum
cc11bc4590 Fix Comparebookmarks properly handling nil parameters
git-svn-id: trunk@31838 -
2015-09-26 21:33:55 +00:00
blikblum
da100b43f7 Use actual item instead of cache item for edit
git-svn-id: trunk@31837 -
2015-09-26 21:33:43 +00:00
nickysn
c513cec740 - disallow mixing 'export' and 'interrupt' for the same procedure
git-svn-id: trunk@31836 -
2015-09-26 18:35:04 +00:00
nickysn
b26e10d53c + generate proper win16 prologue/epilogue for exported routines (we don't yet
actually export them from the .exe or .dll, but they can now be used as
  callbacks)
+ support win16 smart callbacks via the $K switch

git-svn-id: trunk@31835 -
2015-09-26 18:04:59 +00:00
nickysn
ae533e4c77 + made the $W switch control the FarProcsPushOddBP target switch in the i8086
compiler (BP7 compatibility) instead of controlling stack frame elimination
  (which isn't supported by the compiler on i8086 anyway, due to i8086's lack
  of support for stack relative addressing)

git-svn-id: trunk@31834 -
2015-09-26 15:41:44 +00:00
nickysn
e0aa6bf85f * the FarProcsPushOddBP target switch made local instead of global (BP7 compatibility)
git-svn-id: trunk@31833 -
2015-09-26 15:14:15 +00:00
nickysn
3a4afab681 * fixed a bug in the $targetswitch directive, which prevented target switches
from being turned off (they were turned on instead)

git-svn-id: trunk@31832 -
2015-09-26 13:36:51 +00:00
Jonas Maebe
2cf8e50771 * fixed unwanted disabling of a codepage set via -FcXXX/{$codepage XXX}
when {$modeswitch systemcodepage} gets disabled without having been
    enabled first (such as when initially setting the syntax mode)
    (mantis #28718)

git-svn-id: trunk@31831 -
2015-09-25 18:31:58 +00:00
Jonas Maebe
7c594b0288 + added support for using Clang as an assembler, and make it the default
for all non-ppc(32/64) Darwin platforms
   o pass the macosx-version-min/iphoneos-version-min to clang as an assembler,
     so that it properly sets this information starting with Xcode 7 (solves
     errors when targeting the iOS simulator, and warnings about object files
     being compiled for a different OS X version when targeting (Mac) OS X)
   o the old assembler is still selectable via -Aas-darwin (required with
     Xcode 3.1.x and older)
   o since the first Xcode version that shipped with Clang is Xcode 3.2, which
     is available for Mac OS X 10.6, most users should not encounter any issues
     with the new default (in fact, it fixes some tests for x86 because Clang
     supports some instructions that "as" doesn't). Clang does not support
     Stabs however, so -gs does require the use of -Aas-darwin

git-svn-id: trunk@31830 -
2015-09-25 18:31:54 +00:00
nickysn
624376b403 + handle properly win16 "odd bp" stack frames in get_caller_addr and get_caller_frame
git-svn-id: trunk@31829 -
2015-09-25 16:19:56 +00:00
nickysn
1c3a0864e8 + implemented win16 stderr via messageboxes similar to the way it is implemented for win32/win64 gui apps
git-svn-id: trunk@31828 -
2015-09-25 14:51:50 +00:00
pierre
938c797a0d Fix error in last commit opthandled -> opt_handled; Add FORCEAWK option to overrule AWK found in Makefile
git-svn-id: trunk@31827 -
2015-09-25 13:44:23 +00:00
lacak
33986a03d3 fcl-db: mysql: add missing mysql57conn.pas (MySQL 5.7 wrapper)
git-svn-id: trunk@31826 -
2015-09-25 04:51:57 +00:00
nickysn
aa883d0f85 + added the win16api driver support functions
git-svn-id: trunk@31825 -
2015-09-24 19:49:19 +00:00
nickysn
f71598a633 + added the win16api string formatting support functions
git-svn-id: trunk@31824 -
2015-09-24 19:09:25 +00:00
nickysn
5cb89fba9e + added the win16api comm support functions
git-svn-id: trunk@31823 -
2015-09-24 17:02:45 +00:00
nickysn
6767906755 + added the win16api sound support functions
git-svn-id: trunk@31822 -
2015-09-24 16:21:37 +00:00
nickysn
926d66b9f5 + added the win16api help support functions
git-svn-id: trunk@31821 -
2015-09-24 16:06:55 +00:00