[Monetdb-developers] [Monetdb-checkins] MonetDB5/src/modules/mal/rdf rdf_shredder.mx, , 1.10, 1.11

Lefteris lsidir at gmail.com
Wed Jan 6 10:43:21 CET 2010


That explains a lot:) Thank you!

On Wed, Jan 6, 2010 at 10:34 AM, Fabian
<mr-meltdown at users.sourceforge.net> wrote:
> Update of /cvsroot/monetdb/MonetDB5/src/modules/mal/rdf
> In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv21323
>
> Modified Files:
>        rdf_shredder.mx
> Log Message:
> maintainer timeout
>
> warning: dereferencing type-punned pointer will break strict-aliasing rules
>
> triple->{predicate,subject,object} are of type void*, first cast to
> string pointer, then get the pointer address.
>
>
> Index: rdf_shredder.mx
> ===================================================================
> RCS file: /cvsroot/monetdb/MonetDB5/src/modules/mal/rdf/rdf_shredder.mx,v
> retrieving revision 1.10
> retrieving revision 1.11
> diff -u -d -r1.10 -r1.11
> --- rdf_shredder.mx     4 Jan 2010 17:06:23 -0000       1.10
> +++ rdf_shredder.mx     6 Jan 2010 09:33:59 -0000       1.11
> @@ -148,7 +148,10 @@
>  }
>
>  @= rdf_tknzr_insert
> -TKNZRdeposit(&bun,(str *)&(@1));
> +{
> +       str t = @1;
> +       TKNZRdeposit(&bun,&t);
> +}
>
>  @= rdf_BUNappend
>  {@1 = BUNappend(@1, @2, TRUE);}
> @@ -166,7 +169,7 @@
>
>        if (triple->subject_type == RAPTOR_IDENTIFIER_TYPE_RESOURCE
>                        || triple->subject_type == RAPTOR_IDENTIFIER_TYPE_ANONYMOUS) {
> -               @:rdf_insert(graph[MAP_LEX],triple->subject)@
> +               @:rdf_insert(graph[MAP_LEX],(str)triple->subject)@
>                @:rdf_BUNappend(graph[S_sort], &bun)@
>                bun = BUN_NONE;
>        } else {
> @@ -174,7 +177,7 @@
>        }
>
>        if (triple->predicate_type == RAPTOR_IDENTIFIER_TYPE_RESOURCE) {
> -               @:rdf_insert(graph[MAP_LEX],triple->predicate)@
> +               @:rdf_insert(graph[MAP_LEX],(str)triple->predicate)@
>                @:rdf_BUNappend(graph[P_sort], &bun)@
>                bun = BUN_NONE;
>        } else {
> @@ -183,7 +186,7 @@
>
>        if (triple->object_type == RAPTOR_IDENTIFIER_TYPE_RESOURCE
>                        || triple->object_type == RAPTOR_IDENTIFIER_TYPE_ANONYMOUS) {
> -               @:rdf_insert(graph[MAP_LEX],triple->object)@
> +               @:rdf_insert(graph[MAP_LEX],(str)triple->object)@
>                @:rdf_BUNappend(graph[O_sort], &bun)@
>                bun = BUN_NONE;
>        } else if (triple->object_type == RAPTOR_IDENTIFIER_TYPE_LITERAL) {
>
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> Monetdb-checkins mailing list
> Monetdb-checkins at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/monetdb-checkins
>




More information about the developers-list mailing list