From df94a50d8f82f38c77653c059d7f50ad3529e985 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Thu, 3 Aug 2000 19:55:50 +0200
Subject: [PATCH] refs is now a ptrdiff_t.

Rev: src/array.h:1.23
Rev: src/constants.h:1.12
Rev: src/gc.h:1.58
Rev: src/interpret.h:1.58
Rev: src/mapping.h:1.29
Rev: src/multiset.h:1.14
Rev: src/object.h:1.51
Rev: src/program.h:1.98
---
 src/array.h     |  4 ++--
 src/constants.h |  4 ++--
 src/gc.h        | 10 +++++-----
 src/interpret.h |  4 ++--
 src/mapping.h   |  6 +++---
 src/multiset.h  |  4 ++--
 src/object.h    |  4 ++--
 src/program.h   |  4 ++--
 8 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/src/array.h b/src/array.h
index bab0f8bfed..fa5e614b4c 100644
--- a/src/array.h
+++ b/src/array.h
@@ -5,7 +5,7 @@
 \*/
 
 /*
- * $Id: array.h,v 1.22 2000/07/28 17:16:54 hubbe Exp $
+ * $Id: array.h,v 1.23 2000/08/03 17:55:50 grubba Exp $
  */
 #ifndef ARRAY_H
 #define ARRAY_H
@@ -14,7 +14,7 @@
 
 struct array
 {
-  INT32 refs;		/* Reference count */
+  ptrdiff_t refs;		/* Reference count */
 #ifdef PIKE_SECURITY
   struct object *prot;
 #endif
diff --git a/src/constants.h b/src/constants.h
index 97a6fcedf8..17c606d653 100644
--- a/src/constants.h
+++ b/src/constants.h
@@ -5,7 +5,7 @@
 \*/
 
 /*
- * $Id: constants.h,v 1.11 1999/12/13 12:08:12 mast Exp $
+ * $Id: constants.h,v 1.12 2000/08/03 17:55:50 grubba Exp $
  */
 #ifndef ADD_EFUN_H
 #define ADD_EFUN_H
@@ -20,7 +20,7 @@ typedef node *(*optimize_fun)(node *n);
 
 struct callable
 {
-  INT32 refs;
+  ptrdiff_t refs;
 #ifdef PIKE_SECURITY
   struct object *prot;
 #endif
diff --git a/src/gc.h b/src/gc.h
index b021e5dd78..8fc7e4f53b 100644
--- a/src/gc.h
+++ b/src/gc.h
@@ -1,5 +1,5 @@
 /*
- * $Id: gc.h,v 1.57 2000/07/28 17:16:55 hubbe Exp $
+ * $Id: gc.h,v 1.58 2000/08/03 17:55:50 grubba Exp $
  */
 #ifndef GC_H
 #define GC_H
@@ -68,11 +68,11 @@ struct marker
   struct marker *next;
   struct gc_frame *frame;	/* Pointer into the cycle check stack. */
   void *data;
-  INT32 refs;			/* Internal references. */
-  INT32 weak_refs;		/* Weak (implying internal) references. */
+  ptrdiff_t refs;		/* Internal references. */
+  ptrdiff_t weak_refs;		/* Weak (implying internal) references. */
 #ifdef PIKE_DEBUG
-  INT32 xrefs;			/* Known external references. */
-  INT32 saved_refs;		/* Object refcount during check pass. */
+  ptrdiff_t xrefs;		/* Known external references. */
+  ptrdiff_t saved_refs;		/* Object refcount during check pass. */
 #endif
   unsigned INT16 flags;
 };
diff --git a/src/interpret.h b/src/interpret.h
index 9cc97a2015..4094f9691f 100644
--- a/src/interpret.h
+++ b/src/interpret.h
@@ -5,7 +5,7 @@
 \*/
 
 /*
- * $Id: interpret.h,v 1.57 2000/08/03 16:21:59 grubba Exp $
+ * $Id: interpret.h,v 1.58 2000/08/03 17:55:50 grubba Exp $
  */
 #ifndef INTERPRET_H
 #define INTERPRET_H
@@ -47,7 +47,7 @@ struct Pike_interpreter {
 #endif
 struct pike_frame
 {
-  INT32 refs; /* must be first */
+  ptrdiff_t refs; /* must be first */
   INT32 args;
   unsigned INT16 fun;
   INT16 num_locals;
diff --git a/src/mapping.h b/src/mapping.h
index 0fc1f66352..023b7df019 100644
--- a/src/mapping.h
+++ b/src/mapping.h
@@ -5,7 +5,7 @@
 \*/
 
 /*
- * $Id: mapping.h,v 1.28 2000/07/28 17:16:55 hubbe Exp $
+ * $Id: mapping.h,v 1.29 2000/08/03 17:55:50 grubba Exp $
  */
 #ifndef MAPPING_H
 #define MAPPING_H
@@ -24,7 +24,7 @@ struct keypair
 
 struct mapping_data
 {
-  INT32 refs;
+  ptrdiff_t refs;
   INT32 valrefs; /* lock values too */
   INT32 hardlinks;
   INT32 size, hashsize;
@@ -37,7 +37,7 @@ struct mapping_data
 
 struct mapping
 {
-  INT32 refs;
+  ptrdiff_t refs;
 #ifdef PIKE_SECURITY
   struct object *prot;
 #endif
diff --git a/src/multiset.h b/src/multiset.h
index b7ee4a003d..62f2aa63e1 100644
--- a/src/multiset.h
+++ b/src/multiset.h
@@ -5,7 +5,7 @@
 \*/
 
 /*
- * $Id: multiset.h,v 1.13 2000/07/18 05:48:20 mast Exp $
+ * $Id: multiset.h,v 1.14 2000/08/03 17:55:50 grubba Exp $
  */
 #ifndef MULTISET_H
 #define MULTISET_H
@@ -14,7 +14,7 @@
 
 struct multiset
 {
-  INT32 refs;
+  ptrdiff_t refs;
 #ifdef PIKE_SECURITY
   struct object *prot;
 #endif
diff --git a/src/object.h b/src/object.h
index b38d7467da..d403054c35 100644
--- a/src/object.h
+++ b/src/object.h
@@ -5,7 +5,7 @@
 \*/
 
 /*
- * $Id: object.h,v 1.50 2000/07/28 17:16:55 hubbe Exp $
+ * $Id: object.h,v 1.51 2000/08/03 17:55:50 grubba Exp $
  */
 #ifndef OBJECT_H
 #define OBJECT_H
@@ -20,7 +20,7 @@
 #endif
 struct object
 {
-  INT32 refs;                    /* Reference count, must be first. */
+  ptrdiff_t refs;                    /* Reference count, must be first. */
 #ifdef PIKE_SECURITY
   struct object *prot;
 #endif
diff --git a/src/program.h b/src/program.h
index 8168f9ab6f..436b5599c9 100644
--- a/src/program.h
+++ b/src/program.h
@@ -5,7 +5,7 @@
 \*/
 
 /*
- * $Id: program.h,v 1.97 2000/07/28 17:16:55 hubbe Exp $
+ * $Id: program.h,v 1.98 2000/08/03 17:55:50 grubba Exp $
  */
 #ifndef PROGRAM_H
 #define PROGRAM_H
@@ -255,7 +255,7 @@ struct pike_trampoline
 
 struct program
 {
-  INT32 refs;
+  ptrdiff_t refs;
 #ifdef PIKE_SECURITY
   struct object *prot;
 #endif
-- 
GitLab