This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
ext/ consting
[perl5.git] / ext / SDBM_File / sdbm / sdbm.h
index 86ba82d..53fc366 100644 (file)
@@ -47,7 +47,7 @@ typedef struct {
 #define sdbm_pagfno(db)        ((db)->pagf)
 
 typedef struct {
-       char *dptr;
+       const char *dptr;
        int dsize;
 } datum;
 
@@ -85,7 +85,7 @@ extern int sdbm_exists proto((DBM *, datum));
  * other
  */
 extern DBM *sdbm_prep proto((char *, char *, int, int));
-extern long sdbm_hash proto((char *, int));
+extern long sdbm_hash proto((const char *, int));
 
 #ifndef SDBM_ONLY
 #define dbm_open sdbm_open
@@ -186,9 +186,11 @@ Free_t   Perl_mfree proto((Malloc_t where));
 #endif /* MYMALLOC */
 
 #ifdef I_STRING
-#include <string.h>
+# ifndef __ultrix__
+#  include <string.h>
+# endif
 #else
-#include <strings.h>
+# include <strings.h>
 #endif
 
 #ifdef I_MEMORY
@@ -243,7 +245,7 @@ Free_t   Perl_mfree proto((Malloc_t where));
 #    endif
 #  endif
 #  ifdef BUGGY_MSC
-  #  pragma function(memcmp)
+#    pragma function(memcmp)
 #  endif
 #else
 #   ifndef memcmp