system.pp 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1999-2000 by Florian Klaempfl
  5. member of the Free Pascal development team
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. {$define PALMOS}
  13. {$ASMMODE DIRECT}
  14. unit {$ifdef VER1_0}syspalm{$else}system{$endif};
  15. {$I os.inc}
  16. Interface
  17. {Platform specific information}
  18. const
  19. LineEnding = #10;
  20. LFNSupport = false;
  21. DirectorySeparator = '/';
  22. DriveSeparator = ':';
  23. PathSeparator = ';';
  24. FileNameCaseSensitive = false;
  25. Type
  26. { type and constant declartions doesn't hurt }
  27. LongInt = $80000000..$7fffffff;
  28. Integer = -32768..32767;
  29. ShortInt = -128..127;
  30. Byte = 0..255;
  31. Word = 0..65535;
  32. { !!!!
  33. DWord = Cardinal;
  34. LongWord = Cardinal;
  35. }
  36. { The Cardinal data type isn't currently implemented for the m68k }
  37. DWord = LongInt;
  38. LongWord = LongInt;
  39. { Zero - terminated strings }
  40. PChar = ^Char;
  41. PPChar = ^PChar;
  42. { procedure type }
  43. TProcedure = Procedure;
  44. const
  45. { max. values for longint and int }
  46. MaxLongint = High(LongInt);
  47. MaxInt = High(Integer);
  48. { Must be determined at startup for both }
  49. Test68000 : byte = 0;
  50. Test68881 : byte = 0;
  51. { Palm specific data types }
  52. type
  53. Ptr = ^Char;
  54. var
  55. ExitCode : DWord;
  56. { this variables are passed to PilotMain by the PalmOS }
  57. cmd : Word;
  58. cmdPBP : Ptr;
  59. launchFlags : Word;
  60. implementation
  61. { mimic the C start code }
  62. function PilotMain(_cmd : Word;_cmdPBP : Ptr;_launchFlags : Word) : DWord;cdecl;public;
  63. begin
  64. cmd:=_cmd;
  65. cmdPBP:=_cmdPBP;
  66. launchFlags:=_launchFlags;
  67. asm
  68. bsr PASCALMAIN
  69. end;
  70. PilotMain:=ExitCode;
  71. end;
  72. {*****************************************************************************
  73. System Dependent Exit code
  74. *****************************************************************************}
  75. Procedure system_exit;
  76. begin
  77. end;
  78. begin
  79. ExitCode:=0;
  80. end.
  81. {
  82. $Log$
  83. Revision 1.4 2002-09-07 16:01:25 peter
  84. * old logs removed and tabs fixed
  85. }