Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/include remove global pointers, add get/seters.



details:   https://anonhg.NetBSD.org/src/rev/61e4d784e5bd
branches:  trunk
changeset: 997553:61e4d784e5bd
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Mar 12 15:11:13 2019 +0000

description:
remove global pointers, add get/seters.

diffstat:

 include/malloc.h |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r 965eeddd325d -r 61e4d784e5bd include/malloc.h
--- a/include/malloc.h  Tue Mar 12 15:10:43 2019 +0000
+++ b/include/malloc.h  Tue Mar 12 15:11:13 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: malloc.h,v 1.7 2019/03/10 15:31:02 christos Exp $      */
+/*     $NetBSD: malloc.h,v 1.8 2019/03/12 15:11:13 christos Exp $      */
 
 /*-
  * Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
 void *mallocx(size_t, int);
 void *rallocx(void *, size_t, int);
 size_t xallocx(void *, size_t, size_t, int);
-size_t sallocx(void *, int);
+size_t sallocx(const void *, int);
 void dallocx(void *, int);
 void sdallocx(void *, size_t, int);
 size_t nallocx(size_t, int);
@@ -49,9 +49,11 @@
 
 size_t malloc_usable_size(const void *);
 
-extern void (*malloc_message)(void *, const char *);
+void (*malloc_message_get(void))(void *, const char *);
+void malloc_message_set(void (*)(void *, const char *));
 
-extern const char *malloc_conf;
+const char *malloc_conf_get(void);
+void malloc_conf_set(const char *);
 
 __END_DECLS
 



Home | Main Index | Thread Index | Old Index