[m-rev.] diff: replace c_header_code pragma in posix binding

Julien Fischer juliensf at csse.unimelb.edu.au
Wed Jul 28 06:02:59 AEST 2010


Branches: main

extras/posix/psoix.readdir.m:
 	Replace a c_header_code pragma with a foreign_decl pragma
 	for C.

Julien.

Index: posix.readdir.m
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/extras/posix/posix.readdir.m,v
retrieving revision 1.2
diff -u -r1.2 posix.readdir.m
--- posix.readdir.m	30 Oct 2007 00:46:20 -0000	1.2
+++ posix.readdir.m	27 Jul 2010 19:59:34 -0000
@@ -21,7 +21,7 @@

  :- implementation.

-:- pragma c_header_code("
+:- pragma foreign_decl("C", "
  #include <sys/types.h>
  #include <dirent.h>
  ").

--------------------------------------------------------------------------
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