From d74d9f4e60e48260ff1fad3ff00aaf000f111a66 Mon Sep 17 00:00:00 2001 From: marha Date: Fri, 22 Oct 2010 14:00:01 +0000 Subject: Increased gnu make compatibility Optimised --- tools/mhmake/src/rule.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'tools/mhmake/src/rule.h') diff --git a/tools/mhmake/src/rule.h b/tools/mhmake/src/rule.h index bfc00bb15..1ec944f96 100644 --- a/tools/mhmake/src/rule.h +++ b/tools/mhmake/src/rule.h @@ -1,6 +1,6 @@ /* This file is part of mhmake. * - * Copyright (C) 2001-2009 Marc Haesen + * Copyright (C) 2001-2010 marha@sourceforge.net * * Mhmake is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -25,7 +25,6 @@ #include "md5.h" class mhmakeparser; class fileinfo; -extern refptr NullFileInfo; class rule: public refbase { @@ -47,7 +46,7 @@ public: { return m_Commands; } - void PrintCommands(refptr Target=NullFileInfo) const; + void PrintCommands(fileinfo *pTarget=NULL) const; void SetStem(const string &Stem) { @@ -77,10 +76,10 @@ public: class IMPLICITRULE { - static map< string, vector > > > m_ImplicitRules; + static vector > > > > m_ImplicitRules; // Use a vector and not a map because the order of the implicit rules is important public: - static void AddImplicitRule(const refptr &Target,const vector< refptr >&Deps,refptr pRule); - static void SearchImplicitRule(const refptr &Target,vector< pair,refptr > >&Result); + static void AddImplicitRule(fileinfo *pTarget,const vector &Deps,refptr pRule); + static void SearchImplicitRule(const fileinfo *pTarget,vector< pair > >&Result); static void PrintImplicitRules(); }; -- cgit v1.2.3