globtype.pas 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616
  1. {
  2. Copyright (c) 1998-2002 by Florian Klaempfl, Pierre Muller
  3. Global types
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  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. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  15. ****************************************************************************
  16. }
  17. unit globtype;
  18. {$i fpcdefs.inc}
  19. interface
  20. const
  21. maxidlen = 127;
  22. type
  23. { TCmdStr is used to pass command line parameters to an external program to be
  24. executed from the FPC application. In some circomstances, this can be more
  25. than 255 characters. That's why using Ansi Strings}
  26. TCmdStr = AnsiString;
  27. TPathStr = AnsiString;
  28. {$ifdef symansistr}
  29. TSymStr = AnsiString;
  30. {$else symansistr}
  31. TSymStr = ShortString;
  32. {$endif symansistr}
  33. PSymStr = ^TSymStr;
  34. { Integer type corresponding to pointer size }
  35. {$ifdef cpu64bitaddr}
  36. PUint = qword;
  37. PInt = int64;
  38. {$endif cpu64bitaddr}
  39. {$ifdef cpu32bitaddr}
  40. PUint = cardinal;
  41. PInt = longint;
  42. {$endif cpu32bitaddr}
  43. {$ifdef cpu16bitaddr}
  44. PUint = word;
  45. PInt = Smallint;
  46. {$endif cpu16bitaddr}
  47. { Natural integer register type and size for the target machine }
  48. {$ifdef cpu64bitalu}
  49. AWord = qword;
  50. AInt = Int64;
  51. Const
  52. AIntBits = 64;
  53. {$endif cpu64bitalu}
  54. {$ifdef cpu32bitalu}
  55. AWord = longword;
  56. AInt = longint;
  57. Const
  58. AIntBits = 32;
  59. {$endif cpu32bitalu}
  60. {$ifdef cpu16bitalu}
  61. AWord = Word;
  62. AInt = Smallint;
  63. Const
  64. AIntBits = 16;
  65. {$endif cpu16bitalu}
  66. {$ifdef cpu8bitalu}
  67. AWord = Byte;
  68. AInt = Shortint;
  69. Const
  70. AIntBits = 8;
  71. {$endif cpu8bitalu}
  72. Type
  73. PAWord = ^AWord;
  74. PAInt = ^AInt;
  75. { target cpu specific type used to store data sizes }
  76. ASizeInt = PInt;
  77. ASizeUInt = PUInt;
  78. { type used for handling constants etc. in the code generator }
  79. TCGInt = Int64;
  80. { This must be an ordinal type with the same size as a pointer
  81. Note: Must be unsigned! Otherwise, ugly code like
  82. pointer(-1) will result in a pointer with the value
  83. $fffffffffffffff on a 32bit machine if the compiler uses
  84. int64 constants internally (JM) }
  85. TConstPtrUInt = AWord;
  86. { Use a variant record to be sure that the array if aligned correctly }
  87. tdoublerec=record
  88. case byte of
  89. 0 : (bytes:array[0..7] of byte);
  90. 1 : (value:double);
  91. end;
  92. textendedrec=record
  93. case byte of
  94. 0 : (bytes:array[0..9] of byte);
  95. 1 : (value:extended);
  96. end;
  97. pconstset = ^tconstset;
  98. tconstset = set of 0..255;
  99. { Switches which can be changed locally }
  100. tlocalswitch = (cs_localnone,
  101. { codegen }
  102. cs_check_overflow,cs_check_range,cs_check_object,
  103. cs_check_io,cs_check_stack,
  104. cs_checkpointer,cs_check_ordinal_size,
  105. cs_generate_stackframes,cs_do_assertion,cs_generate_rtti,
  106. cs_full_boolean_eval,cs_typed_const_writable,cs_allow_enum_calc,
  107. cs_do_inline,cs_fpu_fwait,cs_ieee_errors,
  108. cs_check_low_addr_load,
  109. { mmx }
  110. cs_mmx,cs_mmx_saturation,
  111. { parser }
  112. cs_typed_addresses,cs_strict_var_strings,cs_refcountedstrings,
  113. cs_bitpacking,cs_varpropsetter,cs_scopedenums,cs_pointermath,
  114. { macpas specific}
  115. cs_external_var, cs_externally_visible,
  116. { jvm specific }
  117. cs_check_var_copyout
  118. );
  119. tlocalswitches = set of tlocalswitch;
  120. { Switches which can be changed only at the beginning of a new module }
  121. tmoduleswitch = (cs_modulenone,
  122. { parser }
  123. cs_fp_emulation,cs_extsyntax,cs_openstring,
  124. { support }
  125. cs_support_goto,cs_support_macro,
  126. cs_support_c_operators,
  127. { generation }
  128. cs_profile,cs_debuginfo,cs_compilesystem,
  129. cs_lineinfo,cs_implicit_exceptions,cs_explicit_codepage,
  130. { linking }
  131. cs_create_smart,cs_create_dynamic,cs_create_pic,
  132. { browser switches are back }
  133. cs_browser,cs_local_browser,
  134. { target specific }
  135. cs_executable_stack
  136. );
  137. tmoduleswitches = set of tmoduleswitch;
  138. { Switches which can be changed only for a whole program/compilation,
  139. mostly set with commandline }
  140. tglobalswitch = (cs_globalnone,
  141. { parameter switches }
  142. cs_check_unit_name,cs_constructor_name,cs_support_exceptions,
  143. cs_support_c_objectivepas,
  144. { units }
  145. cs_load_objpas_unit,
  146. cs_load_gpc_unit,
  147. cs_load_fpcylix_unit,
  148. cs_support_vectors,
  149. { debuginfo }
  150. cs_use_heaptrc,cs_use_lineinfo,
  151. cs_gdb_valgrind,cs_no_regalloc,cs_stabs_preservecase,
  152. { assembling }
  153. cs_asm_leave,cs_asm_extern,cs_asm_pipe,cs_asm_source,
  154. cs_asm_regalloc,cs_asm_tempalloc,cs_asm_nodes,
  155. { linking }
  156. cs_link_nolink,cs_link_static,cs_link_smart,cs_link_shared,cs_link_deffile,
  157. cs_link_strip,cs_link_staticflag,cs_link_on_target,cs_link_extern,cs_link_opt_vtable,
  158. cs_link_opt_used_sections,cs_link_separate_dbg_file,
  159. cs_link_map,cs_link_pthread,cs_link_no_default_lib_order,
  160. cs_link_native
  161. );
  162. tglobalswitches = set of tglobalswitch;
  163. { global switches specific to debug information }
  164. tdebugswitch = (ds_none,
  165. { enable set support in dwarf debug info, breaks gdb versions }
  166. { without support for that tag (they refuse to parse the rest }
  167. { of the debug information) }
  168. ds_dwarf_sets,
  169. { use absolute paths for include files in stabs. Pro: gdb }
  170. { always knows full path to file. Con: doesn't work anymore }
  171. { if the include file is moved (otherwise, things still work }
  172. { if your source hierarchy is the same, but has a different }
  173. { base path) }
  174. ds_stabs_abs_include_files,
  175. { prefix method names by "classname__" in DWARF (like is done }
  176. { for Stabs); not enabled by default, because otherwise once }
  177. { support for calling methods has been added to gdb, you'd }
  178. { always have to type classinstance.classname__methodname() }
  179. ds_dwarf_method_class_prefix
  180. );
  181. tdebugswitches = set of tdebugswitch;
  182. { global target-specific switches }
  183. ttargetswitch = (ts_none,
  184. { for the JVM target: generate integer array initializations via string
  185. constants in order to reduce the generated code size (Java routines
  186. are limited to 64kb of bytecode) }
  187. ts_compact_int_array_init
  188. );
  189. ttargetswitches = set of ttargetswitch;
  190. { adding a new entry here requires also adding the appropriate define in
  191. systemh.inc (FK)
  192. }
  193. tfeature = (
  194. f_heap,f_init_final,f_rtti,f_classes,f_exceptions,f_exitcode,
  195. f_ansistrings,f_widestrings,f_textio,f_consoleio,f_fileio,
  196. f_random,f_variants,f_objects,f_dynarrays,f_threading,f_commandargs,
  197. f_processes,f_stackcheck,f_dynlibs,f_softfpu,f_objectivec1,f_resources
  198. );
  199. tfeatures = set of tfeature;
  200. type
  201. { optimizer }
  202. toptimizerswitch = (cs_opt_none,
  203. cs_opt_level1,cs_opt_level2,cs_opt_level3,
  204. cs_opt_regvar,cs_opt_uncertain,cs_opt_size,cs_opt_stackframe,
  205. cs_opt_peephole,cs_opt_asmcse,cs_opt_loopunroll,cs_opt_tailrecursion,cs_opt_nodecse,
  206. cs_opt_nodedfa,cs_opt_loopstrength,cs_opt_scheduler
  207. );
  208. toptimizerswitches = set of toptimizerswitch;
  209. { whole program optimizer }
  210. twpoptimizerswitch = (
  211. cs_wpo_devirtualize_calls,cs_wpo_optimize_vmts,
  212. cs_wpo_symbol_liveness
  213. );
  214. twpoptimizerswitches = set of twpoptimizerswitch;
  215. type
  216. { Used by ARM / AVR to differentiate between specific microcontrollers }
  217. tcontrollerdatatype = record
  218. controllertypestr, controllerunitstr: string[20];
  219. interruptvectors:integer;
  220. flashbase, flashsize, srambase, sramsize, eeprombase, eepromsize: dword;
  221. end;
  222. const
  223. OptimizerSwitchStr : array[toptimizerswitch] of string[10] = ('',
  224. 'LEVEL1','LEVEL2','LEVEL3',
  225. 'REGVAR','UNCERTAIN','SIZE','STACKFRAME',
  226. 'PEEPHOLE','ASMCSE','LOOPUNROLL','TAILREC','CSE',
  227. 'DFA','STRENGTH','SCHEDULE'
  228. );
  229. WPOptimizerSwitchStr : array [twpoptimizerswitch] of string[14] = (
  230. 'DEVIRTCALLS','OPTVMTS','SYMBOLLIVENESS'
  231. );
  232. DebugSwitchStr : array[tdebugswitch] of string[22] = ('',
  233. 'DWARFSETS','STABSABSINCLUDES','DWARFMETHODCLASSPREFIX');
  234. TargetSwitchStr : array[ttargetswitch] of string[19] = ('',
  235. 'COMPACTINTARRAYINIT');
  236. { switches being applied to all CPUs at the given level }
  237. genericlevel1optimizerswitches = [cs_opt_level1];
  238. genericlevel2optimizerswitches = [cs_opt_level2];
  239. genericlevel3optimizerswitches = [cs_opt_level3];
  240. { whole program optimizations whose information generation requires
  241. information from all loaded units
  242. }
  243. WPOptimizationsNeedingAllUnitInfo = [cs_wpo_devirtualize_calls];
  244. featurestr : array[tfeature] of string[12] = (
  245. 'HEAP','INITFINAL','RTTI','CLASSES','EXCEPTIONS','EXITCODE',
  246. 'ANSISTRINGS','WIDESTRINGS','TEXTIO','CONSOLEIO','FILEIO',
  247. 'RANDOM','VARIANTS','OBJECTS','DYNARRAYS','THREADING','COMMANDARGS',
  248. 'PROCESSES','STACKCHECK','DYNLIBS','SOFTFPU','OBJECTIVEC1','RESOURCES'
  249. );
  250. type
  251. { Switches which can be changed by a mode (fpc,tp7,delphi) }
  252. tmodeswitch = (m_none,m_all, { needed for keyword }
  253. { generic }
  254. m_fpc,m_objfpc,m_delphi,m_tp7,m_mac,m_iso,
  255. {$ifdef fpc_mode}m_gpc,{$endif}
  256. { more specific }
  257. m_class, { delphi class model }
  258. m_objpas, { load objpas unit }
  259. m_result, { result in functions }
  260. m_string_pchar, { pchar 2 string conversion }
  261. m_cvar_support, { cvar variable directive }
  262. m_nested_comment, { nested comments }
  263. m_tp_procvar, { tp style procvars (no @ needed) }
  264. m_mac_procvar, { macpas style procvars }
  265. m_repeat_forward, { repeating forward declarations is needed }
  266. m_pointer_2_procedure, { allows the assignement of pointers to
  267. procedure variables }
  268. m_autoderef, { does auto dereferencing of struct. vars }
  269. m_initfinal, { initialization/finalization for units }
  270. m_default_ansistring, { ansistring turned on by default }
  271. m_out, { support the calling convention OUT }
  272. m_default_para, { support default parameters }
  273. m_hintdirective, { support hint directives }
  274. m_duplicate_names, { allow locals/paras to have duplicate names of globals }
  275. m_property, { allow properties }
  276. m_default_inline, { allow inline proc directive }
  277. m_except, { allow exception-related keywords }
  278. m_objectivec1, { support interfacing with Objective-C (1.0) }
  279. m_objectivec2, { support interfacing with Objective-C (2.0) }
  280. m_nested_procvars, { support nested procedural variables }
  281. m_non_local_goto, { support non local gotos (like iso pascal) }
  282. m_advanced_records, { advanced record syntax with visibility sections, methods and properties }
  283. m_isolike_unary_minus, { unary minus like in iso pascal: same precedence level as binary minus/plus }
  284. m_systemcodepage, { use system codepage as compiler codepage by default, emit ansistrings with system codepage }
  285. m_final_fields, { allows declaring fields as "final", which means they must be initialised
  286. in the (class) constructor and are constant from then on (same as final
  287. fields in Java) }
  288. m_default_unicodestring { makes the default string type in $h+ mode unicodestring rather than
  289. ansistring; similarly, char becomes unicodechar rather than ansichar }
  290. );
  291. tmodeswitches = set of tmodeswitch;
  292. { Win32, OS/2 & MacOS application types }
  293. tapptype = (
  294. app_none,
  295. app_native,
  296. app_gui, { graphic user-interface application}
  297. app_cui, { console application}
  298. app_fs, { full-screen type application (OS/2 and EMX only) }
  299. app_tool, { tool application, (MPW tool for MacOS, MacOS only)}
  300. app_arm7,
  301. app_arm9,
  302. app_bundle { dynamically loadable bundle, Darwin only }
  303. );
  304. { interface types }
  305. tinterfacetypes = (
  306. it_interfacecom,
  307. it_interfacecorba,
  308. it_interfacejava
  309. );
  310. { currently parsed block type }
  311. tblock_type = (
  312. bt_none, { not assigned }
  313. bt_general, { default }
  314. bt_type, { type section }
  315. bt_const, { const section }
  316. bt_const_type, { const part of type. e.g.: ": Integer = 1" }
  317. bt_var, { variable declaration }
  318. bt_var_type, { type of variable }
  319. bt_except, { except section }
  320. bt_body { procedure body }
  321. );
  322. { Temp types }
  323. ttemptype = (tt_none,
  324. { free temp location, can be reused for something else }
  325. tt_free,
  326. { temp location that will be freed when ttgobj.UnGetTemp/
  327. ttgobj.UnGetIfTemp is called on it }
  328. tt_normal,
  329. { temp location that will not be freed; if it has to be
  330. freed, first ttgobj.changetemptype() it to tt_normal,
  331. or call ttgobj.UnGetLocal() instead (for local variables,
  332. since they are also persistent temps) }
  333. tt_persistent,
  334. { temp location that can never be reused anymore, even
  335. after it has been freed }
  336. tt_noreuse,
  337. { freed version of the above }
  338. tt_freenoreuse,
  339. { temp location that has been allocated by the register
  340. allocator and that can be reallocated only by the
  341. register allocator }
  342. tt_regallocator,
  343. { freed version of the above }
  344. tt_freeregallocator);
  345. ttemptypeset = set of ttemptype;
  346. { calling convention for tprocdef and tprocvardef }
  347. tproccalloption=(pocall_none,
  348. { procedure uses C styled calling }
  349. pocall_cdecl,
  350. { C++ calling conventions }
  351. pocall_cppdecl,
  352. { Far16 for OS/2 }
  353. pocall_far16,
  354. { Old style FPC default calling }
  355. pocall_oldfpccall,
  356. { Procedure has compiler magic}
  357. pocall_internproc,
  358. { procedure is a system call, applies e.g. to MorphOS and PalmOS }
  359. pocall_syscall,
  360. { pascal standard left to right }
  361. pocall_pascal,
  362. { procedure uses register (fastcall) calling }
  363. pocall_register,
  364. { safe call calling conventions }
  365. pocall_safecall,
  366. { procedure uses stdcall call }
  367. pocall_stdcall,
  368. { Special calling convention for cpus without a floating point
  369. unit. Floating point numbers are passed in integer registers
  370. instead of floating point registers. Depending on the other
  371. available calling conventions available for the cpu
  372. this replaces either pocall_fastcall or pocall_stdcall.
  373. }
  374. pocall_softfloat,
  375. { Metrowerks Pascal. Special case on Mac OS (X): passes all }
  376. { constant records by reference. }
  377. pocall_mwpascal,
  378. { Special interrupt handler for embedded systems }
  379. pocall_interrupt
  380. );
  381. tproccalloptions = set of tproccalloption;
  382. const
  383. proccalloptionStr : array[tproccalloption] of string[14]=('',
  384. 'CDecl',
  385. 'CPPDecl',
  386. 'Far16',
  387. 'OldFPCCall',
  388. 'InternProc',
  389. 'SysCall',
  390. 'Pascal',
  391. 'Register',
  392. 'SafeCall',
  393. 'StdCall',
  394. 'SoftFloat',
  395. 'MWPascal',
  396. 'Interrupt'
  397. );
  398. { Default calling convention }
  399. {$ifdef x86}
  400. pocall_default = pocall_register;
  401. {$else}
  402. pocall_default = pocall_stdcall;
  403. {$endif}
  404. modeswitchstr : array[tmodeswitch] of string[18] = ('','',
  405. '','','','','','',
  406. {$ifdef fpc_mode}'',{$endif}
  407. { more specific }
  408. 'CLASS',
  409. 'OBJPAS',
  410. 'RESULT',
  411. 'PCHARTOSTRING',
  412. 'CVAR',
  413. 'NESTEDCOMMENTS',
  414. 'CLASSICPROCVARS',
  415. 'MACPROCVARS',
  416. 'REPEATFORWARD',
  417. 'POINTERTOPROCVAR',
  418. 'AUTODEREF',
  419. 'INITFINAL',
  420. 'ANSISTRINGS',
  421. 'OUT',
  422. 'DEFAULTPARAMETERS',
  423. 'HINTDIRECTIVE',
  424. 'DUPLICATELOCALS',
  425. 'PROPERTIES',
  426. 'ALLOWINLINE',
  427. 'EXCEPTIONS',
  428. 'OBJECTIVEC1',
  429. 'OBJECTIVEC2',
  430. 'NESTEDPROCVARS',
  431. 'NONLOCALGOTO',
  432. 'ADVANCEDRECORDS',
  433. 'ISOUNARYMINUS',
  434. 'SYSTEMCODEPAGE',
  435. 'FINALFIELDS',
  436. 'UNICODESTRINGS');
  437. type
  438. tprocinfoflag=(
  439. { procedure has at least one assembler block }
  440. pi_has_assembler_block,
  441. { procedure does a call }
  442. pi_do_call,
  443. { procedure has a try statement = no register optimization }
  444. pi_uses_exceptions,
  445. { procedure is declared as @var(assembler), don't optimize}
  446. pi_is_assembler,
  447. { procedure contains data which needs to be finalized }
  448. pi_needs_implicit_finally,
  449. { procedure has the implicit try..finally generated }
  450. pi_has_implicit_finally,
  451. { procedure uses fpu}
  452. pi_uses_fpu,
  453. { procedure uses GOT for PIC code }
  454. pi_needs_got,
  455. { references var/proc/type/const in static symtable,
  456. i.e. not allowed for inlining from other units }
  457. pi_uses_static_symtable,
  458. { set if the procedure has to push parameters onto the stack }
  459. pi_has_stackparameter,
  460. { set if the procedure has at least one label }
  461. pi_has_label,
  462. { calls itself recursive }
  463. pi_is_recursive,
  464. { stack frame optimization not possible (only on x86 probably) }
  465. pi_needs_stackframe,
  466. { set if the procedure has at least one register saved on the stack }
  467. pi_has_saved_regs,
  468. { dfa was generated for this proc }
  469. pi_dfaavailable,
  470. { subroutine contains interprocedural used labels }
  471. pi_has_interproclabel,
  472. { subroutine has unwind info (win64) }
  473. pi_has_unwind_info
  474. );
  475. tprocinfoflags=set of tprocinfoflag;
  476. type
  477. { float types -- warning, this enum/order is used internally by the RTL
  478. as well in rtl/inc/real2str.inc }
  479. tfloattype = (
  480. s32real,s64real,s80real,sc80real { the C "long double" type on x86 },
  481. s64comp,s64currency,s128real
  482. );
  483. type
  484. { register allocator live range extension direction }
  485. TRADirection = (rad_forward, rad_backwards, rad_backwards_reinit);
  486. type
  487. TIDString = string[maxidlen];
  488. tnormalset = set of byte; { 256 elements set }
  489. pnormalset = ^tnormalset;
  490. pboolean = ^boolean;
  491. pdouble = ^double;
  492. pbyte = ^byte;
  493. pword = ^word;
  494. plongint = ^longint;
  495. plongintarray = plongint;
  496. pfileposinfo = ^tfileposinfo;
  497. tfileposinfo = record
  498. { if types of column or fileindex are changed, modify tcompilerppufile.putposinfo }
  499. line : longint;
  500. column : word;
  501. fileindex : word;
  502. moduleindex : word;
  503. end;
  504. {$ifndef xFPC}
  505. type
  506. pguid = ^tguid;
  507. tguid = packed record
  508. D1: LongWord;
  509. D2: Word;
  510. D3: Word;
  511. D4: array[0..7] of Byte;
  512. end;
  513. {$endif}
  514. tstringencoding = Word;
  515. tcodepagestring = string[20];
  516. const
  517. { link options }
  518. link_none = $0;
  519. link_always = $1;
  520. link_static = $2;
  521. link_smart = $4;
  522. link_shared = $8;
  523. type
  524. { a message state }
  525. tmsgstate = (
  526. ms_on := 1,
  527. ms_off := 2,
  528. ms_error := 3,
  529. ms_on_global := $11, // turn on output
  530. ms_off_global := $22, // turn off output
  531. ms_error_global := $33 // cast to error
  532. );
  533. const
  534. { Mask for current value of message state }
  535. ms_local_mask = $0f;
  536. { Mask for global value of message state
  537. that needs to be restored when changing units }
  538. ms_global_mask = $f0;
  539. { Shift used to convert global to local message state }
  540. ms_shift = 4;
  541. type
  542. pmessagestaterecord = ^tmessagestaterecord;
  543. tmessagestaterecord = record
  544. next : pmessagestaterecord;
  545. value : longint;
  546. state : tmsgstate;
  547. end;
  548. { hide Sysutils.ExecuteProcess in units using this one after SysUtils}
  549. const
  550. ExecuteProcess = 'Do not use' deprecated 'Use cfileutil.RequotedExecuteProcess instead, ExecuteProcess cannot deal with single quotes as used by Unix command lines';
  551. implementation
  552. end.