fpintf.pas 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. {
  2. $Id$
  3. This file is part of the Free Pascal Integrated Development Environment
  4. Copyright (c) 1998 by Berczi Gabor
  5. Misc routines for the IDE
  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. unit FPIntf;
  13. interface
  14. { Run }
  15. function GetRunParameters: string;
  16. procedure SetRunParameters(const Params: string);
  17. { Compile }
  18. procedure Compile(const FileName: string);
  19. implementation
  20. uses
  21. Compiler,
  22. FPSwitch;
  23. {****************************************************************************
  24. Run
  25. ****************************************************************************}
  26. var
  27. RunParameters : string;
  28. function GetRunParameters: string;
  29. begin
  30. GetRunParameters:=RunParameters;
  31. end;
  32. procedure SetRunParameters(const Params: string);
  33. begin
  34. RunParameters:=Params;
  35. end;
  36. {****************************************************************************
  37. Compile
  38. ****************************************************************************}
  39. procedure Compile(const FileName: string);
  40. begin
  41. { WriteSwitches('fp.cfg'); }
  42. { call the compiler }
  43. Compiler.Compile('[fp.cfg] -d'+SwitchesModeStr[SwitchesMode]+' '+FileName);
  44. end;
  45. end.
  46. {
  47. $Log$
  48. Revision 1.3 1999-02-05 13:51:41 peter
  49. * unit name of FPSwitches -> FPSwitch which is easier to use
  50. * some fixes for tp7 compiling
  51. Revision 1.2 1998/12/28 15:47:45 peter
  52. + Added user screen support, display & window
  53. + Implemented Editor,Mouse Options dialog
  54. + Added location of .INI and .CFG file
  55. + Option (INI) file managment implemented (see bottom of Options Menu)
  56. + Switches updated
  57. + Run program
  58. Revision 1.1 1998/12/22 14:27:54 peter
  59. * moved
  60. Revision 1.4 1998/12/22 10:39:43 peter
  61. + options are now written/read
  62. + find and replace routines
  63. }