[m-rev.] diff: add can_pass_as_mercury_type annotation to bitmap/0 type

Julien Fischer juliensf at csse.unimelb.edu.au
Wed Aug 22 21:48:27 AEST 2007


Estimated hours taken: 0
Branches: main

library/bitmap.m:
 	Add a `can_pass_as_mercury_type' annotation to the C foreign type
 	definition for the bitmap type.

Julien.

Index: library/bitmap.m
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/library/bitmap.m,v
retrieving revision 1.25
diff -u -r1.25 bitmap.m
--- library/bitmap.m	1 Aug 2007 07:48:51 -0000	1.25
+++ library/bitmap.m	22 Aug 2007 11:45:25 -0000
@@ -1549,7 +1549,8 @@
  }
  ").

-:- pragma foreign_type("C", bitmap, "MR_BitmapPtr") 
+:- pragma foreign_type("C", bitmap, "MR_BitmapPtr",
+        [can_pass_as_mercury_type])
      where equality is bitmap_equal, comparison is bitmap_compare.
  :- pragma foreign_type("Java", bitmap, "mercury.bitmap.MercuryBitmap")
      where equality is bitmap_equal, comparison is bitmap_compare.

--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list