Please test and upload: ORBit/libIDL, libIDL2, ORBit2
Gerrit P. Haase
gerrit@familiehaase.de
Tue Aug 23 07:49:00 GMT 2005
Gerrit P. Haase wrote:
> Then there is this const struct patch I applied, though I don't know if
> it is needed:
s/const struct/static const/
> diff -urNd ORBit2-2.12.3/src/idl-compiler/orbit-idl-c-typecode.c
> ORBit2-2.12.2/src/idl-compiler/orbit-idl-c-typecode.c
> --- ORBit2-2.12.3/src/idl-compiler/orbit-idl-c-typecode.c 2005-08-15
> 16:49:50.000000000 +0200
> +++ ORBit2-2.12.2/src/idl-compiler/orbit-idl-c-typecode.c 2005-08-16
> 18:50:14.000000000 +0200
> @@ -99,7 +99,7 @@
> if (!IDL_TYPE_ENUM (node).enumerator_list)
> break;
>
> - fprintf (fh, "static const char *anon_subnames_array%d[] = {",
> subnames_id);
> + fprintf (fh, "static char *anon_subnames_array%d[] = {",
> subnames_id);
>
> for (l = IDL_TYPE_ENUM (node).enumerator_list; l; l = IDL_LIST
> (l).next) {
> g_assert (IDL_NODE_TYPE (IDL_LIST (l).data) == IDLN_IDENT);
> @@ -116,7 +116,7 @@
> if (!IDL_TYPE_STRUCT (node).member_list)
> break;
>
> - fprintf (fh, "static const char *anon_subnames_array%d[] = {",
> subnames_id);
> + fprintf (fh, "static char *anon_subnames_array%d[] = {",
> subnames_id);
>
> for (l = IDL_TYPE_STRUCT (node).member_list; l; l = IDL_LIST
> (l).next) {
> IDL_tree dcl;
> @@ -148,7 +148,7 @@
> if (!IDL_TYPE_UNION (node).switch_body)
> break;
>
> - fprintf (fh, "static const char * anon_subnames_array%d[] = {",
> subnames_id);
> + fprintf (fh, "static char * anon_subnames_array%d[] = {",
> subnames_id);
>
> for (l = IDL_TYPE_UNION (node).switch_body; l; l = IDL_LIST
> (l).next) {
> IDL_tree dcl, label;
>
Gerrit
More information about the Cygwin-apps
mailing list