patch allowing to omit "from G:Object" in class declaration
Jean-Yves Lefort <[email protected]> Mon, 21 Jan 2008 01:43:42 +0100
| Newsgroups | gmane.comp.gnome.devtools.gob.general |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. [email protected] Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Mon__21_Jan_2008_01_43_42_+0100_91qS+FXG4PF86weE" --Signature=_Mon__21_Jan_2008_01_43_42_+0100_91qS+FXG4PF86weE Content-Type: multipart/mixed; boundary="Multipart=_Mon__21_Jan_2008_01_43_42_+0100_qZhP+s4CHTwQ_yTN" --Multipart=_Mon__21_Jan_2008_01_43_42_+0100_qZhP+s4CHTwQ_yTN Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Well, I think the subject says it all. --=20 Jean-Yves Lefort <[email protected]> --Multipart=_Mon__21_Jan_2008_01_43_42_+0100_qZhP+s4CHTwQ_yTN Content-Type: text/x-diff; name="gob2-2.0.15-optional-baseclass.diff" Content-Disposition: attachment; filename="gob2-2.0.15-optional-baseclass.diff" Content-Transfer-Encoding: quoted-printable --- src/parse.y.orig 2007-03-09 18:46:14.000000000 +0100 +++ src/parse.y 2008-01-21 01:30:42.000000000 +0100 @@ -770,10 +770,10 @@ } ; =20 -classdec: CLASS TYPETOKEN FROM TYPETOKEN classflags { +classdec: CLASS TYPETOKEN classbase classflags { class =3D node_new (CLASS_NODE, "otype:steal", $<id>2, - "ptype:steal", $<id>4, + "ptype:steal", $<id>3, "bonobo_object_class:steal", bonobo_object_class, "glade_xml", glade_xml, "interfaces:steal", interfaces, @@ -787,6 +787,15 @@ } ; =20 +classbase: + /* empty */ { + $<id>$ =3D g_strdup("G:Object"); + } + | FROM TYPETOKEN { + $<id>$ =3D $<id>2; + } + ; + classflags: | '(' TOKEN ')' classflags { if(strcmp($<id>2,"abstract") =3D=3D 0) { --Multipart=_Mon__21_Jan_2008_01_43_42_+0100_qZhP+s4CHTwQ_yTN-- --Signature=_Mon__21_Jan_2008_01_43_42_+0100_91qS+FXG4PF86weE Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHk+q+yzD7UaO4AGoRAg8KAJ9jCcq4kArQhQ+rb0s+dxZ0RYDmswCfUjf8 AbwyLUZ3CjWrBf90k/1R1oA= =SqBP -----END PGP SIGNATURE----- --Signature=_Mon__21_Jan_2008_01_43_42_+0100_91qS+FXG4PF86weE-- [email protected] Content-Type: text/plain; charset=us-ascii; name="footer.txt" Content-Disposition: inline Content-Transfer-Encoding: 8bit -- to unsubscribe: send mail to [email protected] with "unsubscribe gob-list" in the subject [email protected]