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> #include <macros.h>
/** /**
* Function formatAt * Function formatAt
* outputs a formatted "(at X Y [ANGLE])" s-expression * 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 ) throw( IO_ERROR )
{ {
// if( aPos.x || aPos.y || aAngle ) // if( aPos.x || aPos.y || aAngle )

View File

@ -103,16 +103,6 @@ class PART;
class SWEET_PARSER; class SWEET_PARSER;
class PROPERTY; 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 class POINT : public wxPoint
{ {
public: 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 * Class FONTZ

View File

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

View File

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