GParamFlags patch
Jean-Yves Lefort <[email protected]> Mon, 4 Jul 2005 20:17:55 +0200
| Newsgroups | gmane.comp.gnome.devtools.gob.general |
|---|---|
| Message-ID | <[email protected]> |
--Signature=_Mon__4_Jul_2005_20_17_55_+0200_VmTdiUw7Leh3n1C9 Content-Type: multipart/mixed; boundary="Multipart=_Mon__4_Jul_2005_20_17_55_+0200_0IRij6l_Q=Jm+7M1" --Multipart=_Mon__4_Jul_2005_20_17_55_+0200_0IRij6l_Q=Jm+7M1 Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I've attached a patch which: - removes support for G_PARAM_CHILD_ARG, which does not exist - removes support for G_PARAM_MASK, since it is a mask, not a flag - adds support for G_PARAM_LAX_VALIDATION and G_PARAM_PRIVATE - adds support for user-defined GParamFlags Regards, Jean-Yves Lefort --=20 Jean-Yves Lefort [email protected] http://lefort.be.eu.org/ --Multipart=_Mon__4_Jul_2005_20_17_55_+0200_0IRij6l_Q=Jm+7M1 Content-Type: text/plain; name="gob2-2.0.11-paramflags.diff" Content-Disposition: attachment; filename="gob2-2.0.11-paramflags.diff" Content-Transfer-Encoding: quoted-printable --- src/main.c.orig Mon Jul 4 19:55:26 2005 +++ src/main.c Mon Jul 4 20:07:59 2005 @@ -1428,8 +1428,8 @@ char *argflags[] =3D { "CONSTRUCT", "CONSTRUCT_ONLY", - "CHILD_ARG", - "MASK", + "LAX_VALIDATION", + "PRIVATE", NULL }; =20 @@ -1459,13 +1459,7 @@ if(strcmp(argflags[i], flag)=3D=3D0) break; } - /* if we haven't found it in our list */ - if( ! argflags[i]) { - error_printf(GOB_WARN, a->line_no, - "Unknown flag '%s' used, " - "perhaps it was misspelled", flag); - } - g_string_sprintfa(flags, " | G_PARAM_%s", flag); + g_string_sprintfa(flags, " | %s%s", argflags[i] ? "G_PARAM_" : "", flag); } =20 g_string_append (flags, ")"); @@ -1625,8 +1619,8 @@ char *argflags[] =3D { "CONSTRUCT", "CONSTRUCT_ONLY", - "CHILD_ARG", - "MASK", + "LAX_VALIDATION", + "PRIVATE", NULL }; =20 @@ -1655,13 +1649,7 @@ if(strcmp(argflags[i], flag)=3D=3D0) break; } - /* if we haven't found it in our list */ - if( ! argflags[i]) { - error_printf(GOB_WARN, p->line_no, - "Unknown flag '%s' used, " - "perhaps it was misspelled", flag); - } - g_string_sprintfa(flags, " | G_PARAM_%s", flag); + g_string_sprintfa(flags, " | %s%s", argflags[i] ? "G_PARAM_" : "", flag= ); } =20 g_string_append (flags, ")"); --Multipart=_Mon__4_Jul_2005_20_17_55_+0200_0IRij6l_Q=Jm+7M1-- --Signature=_Mon__4_Jul_2005_20_17_55_+0200_VmTdiUw7Leh3n1C9 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCyX1TyzD7UaO4AGoRAnhQAJ4icZMBXc7w1cyxQRgO1Zv/VIKwtgCeKZay CShsHWU1rqHjmu6kOOLIdBM= =NCPc -----END PGP SIGNATURE----- --Signature=_Mon__4_Jul_2005_20_17_55_+0200_VmTdiUw7Leh3n1C9-- -- to unsubscribe: send mail to [email protected] with "unsubscribe gob-list" in the subject