From 393c8c0b5550a2c97e303109b8b002fec91b83a7 Mon Sep 17 00:00:00 2001 From: naddy Date: Thu, 24 Jun 2004 06:21:50 +0000 Subject: [PATCH] work around namespace pollution from on powerpc --- education/drgeo/patches/patch-geo_define_h | 12 ++++ .../patches/patch-geo_drgeo_buildObject_cc | 12 ++++ .../drgeo/patches/patch-geo_drgeo_numeric_cc | 57 +++++++++++++++++++ .../patches/patch-geo_drgeo_scm_interface_cc | 12 ++++ 4 files changed, 93 insertions(+) create mode 100644 education/drgeo/patches/patch-geo_define_h create mode 100644 education/drgeo/patches/patch-geo_drgeo_buildObject_cc create mode 100644 education/drgeo/patches/patch-geo_drgeo_numeric_cc create mode 100644 education/drgeo/patches/patch-geo_drgeo_scm_interface_cc diff --git a/education/drgeo/patches/patch-geo_define_h b/education/drgeo/patches/patch-geo_define_h new file mode 100644 index 00000000000..e18329ec23c --- /dev/null +++ b/education/drgeo/patches/patch-geo_define_h @@ -0,0 +1,12 @@ +$OpenBSD: patch-geo_define_h,v 1.1 2004/06/24 06:21:50 naddy Exp $ +--- geo/define.h.orig 2004-06-23 23:56:23.000000000 -0600 ++++ geo/define.h 2004-06-23 23:56:35.000000000 -0600 +@@ -187,7 +187,7 @@ enum angleType + + enum numericType + { +- SEGMENT_LENGTH = 1, ++ SEGMENT_LEN = 1, + VECTOR_NORM = 2, + DISTANCE_2PTS = 4, + DISTANCE_PT_CIRCLE = 8, diff --git a/education/drgeo/patches/patch-geo_drgeo_buildObject_cc b/education/drgeo/patches/patch-geo_drgeo_buildObject_cc new file mode 100644 index 00000000000..cb79402a992 --- /dev/null +++ b/education/drgeo/patches/patch-geo_drgeo_buildObject_cc @@ -0,0 +1,12 @@ +$OpenBSD: patch-geo_drgeo_buildObject_cc,v 1.1 2004/06/24 06:21:50 naddy Exp $ +--- geo/drgeo_buildObject.cc.orig 2004-06-23 23:57:05.000000000 -0600 ++++ geo/drgeo_buildObject.cc 2004-06-23 23:57:21.000000000 -0600 +@@ -675,7 +675,7 @@ buildNumeric (int cas, drgeoPoint & at, + { + case 0: + // segment's length +- item = new numeric (at, *selection, (numericType) SEGMENT_LENGTH, ++ item = new numeric (at, *selection, (numericType) SEGMENT_LEN, + FALSE, figure->getFigureList ()); + break; + case 1: diff --git a/education/drgeo/patches/patch-geo_drgeo_numeric_cc b/education/drgeo/patches/patch-geo_drgeo_numeric_cc new file mode 100644 index 00000000000..61738dd6d80 --- /dev/null +++ b/education/drgeo/patches/patch-geo_drgeo_numeric_cc @@ -0,0 +1,57 @@ +$OpenBSD: patch-geo_drgeo_numeric_cc,v 1.1 2004/06/24 06:21:50 naddy Exp $ +--- geo/drgeo_numeric.cc.orig 2004-06-23 23:57:41.000000000 -0600 ++++ geo/drgeo_numeric.cc 2004-06-23 23:58:07.000000000 -0600 +@@ -45,7 +45,7 @@ value (p, createdFromMacro, figureList) + parents.init_lire (); + switch (type) + { +- case SEGMENT_LENGTH: ++ case SEGMENT_LEN: + /* SEGMENT */ + case VECTOR_NORM: + /* VECTOR */ +@@ -123,7 +123,7 @@ value (tree, figureList) + { + category = NUMERIC; + if (!strcmp (attr, "segment_length")) +- type = SEGMENT_LENGTH; ++ type = SEGMENT_LEN; + else if (!strcmp (attr, "vector_norm")) + type = VECTOR_NORM; + else if (!strcmp (attr, "distance_2pts")) +@@ -181,7 +181,7 @@ numeric::update (drgeoDrawable & area) + return; + switch (type) + { +- case SEGMENT_LENGTH: ++ case SEGMENT_LEN: + case VECTOR_NORM: + setValue (((direction *) getFirst)->getDirection ().norm ()); + break; +@@ -270,7 +270,7 @@ numeric::initName () + switch (type) + { + case ARC_CIRCLE_LENGTH: +- case SEGMENT_LENGTH: ++ case SEGMENT_LEN: + item0 = (geometricObject *) getFirst; + l += strlen (_("%1's length")); + if (item0->getName ()? strlen (item0->getName ()) : 0) +@@ -381,7 +381,7 @@ numeric::save (xmlNodePtr tree, liste_el + item = xmlNewChild (tree, NULL, BAD_CAST "numeric", NULL); + switch (type) + { +- case SEGMENT_LENGTH: ++ case SEGMENT_LEN: + save_attribute (item, this, "segment_length"); + break; + case VECTOR_NORM: +@@ -450,7 +450,7 @@ numeric::updateDescription () + description = new gchar *[1]; + description[0] = g_strdup_printf (_("Free value:: %s"), name); + break; +- case SEGMENT_LENGTH: ++ case SEGMENT_LEN: + description = new gchar *[2]; + description[0] = g_strdup_printf (_("Segment's length:: %s"), name); + description[1] = g_strdup_printf (_("Segment %s"), getNthName (0)); diff --git a/education/drgeo/patches/patch-geo_drgeo_scm_interface_cc b/education/drgeo/patches/patch-geo_drgeo_scm_interface_cc new file mode 100644 index 00000000000..971c73eaa14 --- /dev/null +++ b/education/drgeo/patches/patch-geo_drgeo_scm_interface_cc @@ -0,0 +1,12 @@ +$OpenBSD: patch-geo_drgeo_scm_interface_cc,v 1.1 2004/06/24 06:21:50 naddy Exp $ +--- geo/drgeo_scm_interface.cc.orig 2004-06-23 23:58:28.000000000 -0600 ++++ geo/drgeo_scm_interface.cc 2004-06-23 23:58:40.000000000 -0600 +@@ -590,7 +590,7 @@ ScmInterface::make_segmentLength (SCM na + parents->ajoute ((void *) gh_scm2ulong (s)); + + item = (geometricObject *) new numeric (scmCoord2drgeoPoint (x, y), *parents, +- (numericType) SEGMENT_LENGTH, false, ++ (numericType) SEGMENT_LEN, false, + figure->getFigureList ()); + setObjectName (name, item); + figure->addToFigureListNoRedraw (item, TRUE);