{ $Id$ This file is part of the Free Pascal run time library. Copyright (c) 2003 by the Free Pascal development team Free Pascal Message Compiler (command-line version) See the file COPYING.FPC, included in this distribution, for details about the copyright. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. **********************************************************************} {$mode objfpc} {$h+} program fpmc; uses msgcomp,getopts,sysutils,classes; Type TFPMC = Class (TObject) CmdUnitName, InputFileName, MsgFileName, PascalFileName, RCFileName : String; LanguageID, SubLanguageID : Integer; CmdVerbose, CmdUseEscape : Boolean; Procedure DoError(Sender : TObject; Msg : String); Procedure DoVerbose(Sender : TObject; Msg : String); Procedure Usage(WithError : Boolean); Procedure HandleOptions; Procedure CompileFile; end; Procedure TFPMC.DoError(Sender : TObject; Msg : String); begin Writeln(StdErr,Msg); end; Procedure TFPMC.DoVerbose(Sender : TObject; Msg : String); begin Writeln(Msg); end; Procedure TFPMC.Usage(WithError : Boolean); begin Writeln('Usage : ',ExtractFileName(Paramstr(0)),'