sweet would not compile using mingw because of clash on POINT name

This commit is contained in:
Dick Hollenbeck 2011-05-02 08:37:16 -05:00
parent 1809f692cb
commit 1a8e45104a
6 changed files with 13 additions and 13 deletions

View File

@ -31,11 +31,12 @@
#include <macros.h>
/**
* Function formatAt
* outputs a formatted "(at X Y [ANGLE])" s-expression
*/
static void formatAt( OUTPUTFORMATTER* out, const POINT& aPos, ANGLE aAngle, int indent=0 )
static void formatAt( OUTPUTFORMATTER* out, const SCH::POINT& aPos, ANGLE aAngle, int indent=0 )
throw( IO_ERROR )
{
// if( aPos.x || aPos.y || aAngle )

View File

@ -103,16 +103,6 @@ class PART;
class SWEET_PARSER;
class PROPERTY;
};
/// a set of pin padnames that are electrically equivalent for a PART.
typedef std::set< wxString > MERGE_SET;
/// The key is the VISIBLE_PIN from
/// (pin_merge VISIBLE_PIN (hide HIDDEN_PIN1 HIDDEN_PIN2...))
typedef boost::ptr_map< wxString, MERGE_SET > MERGE_SETS;
class POINT : public wxPoint
{
public:
@ -125,6 +115,15 @@ public:
{}
};
};
/// a set of pin padnames that are electrically equivalent for a PART.
typedef std::set< wxString > MERGE_SET;
/// The key is the VISIBLE_PIN from
/// (pin_merge VISIBLE_PIN (hide HIDDEN_PIN1 HIDDEN_PIN2...))
typedef boost::ptr_map< wxString, MERGE_SET > MERGE_SETS;
/**
* Class FONTZ

View File

@ -29,13 +29,13 @@
#include <sweet_lexer.h>
class POINT;
typedef int STROKE;
namespace SCH {
class LIB_TABLE;
class PART;
class POINT;
// GRAPHICS

View File

@ -3,7 +3,6 @@ anchor
arc
at
bezier
inout
bold
bottom
center
@ -22,6 +21,7 @@ font
footprint
hide
in
inout
input_low
inverted
inverted_clk