summaryrefslogtreecommitdiff
path: root/ptr_chck.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2022-04-18 09:49:13 +0300
committerIvan Maidanski <ivmai@mail.ru>2022-04-18 09:49:13 +0300
commit9d77d70bed28887d4b965d1d85db6e95059952d3 (patch)
treeaa19ca913466943a737e84368a7804068893f2f5 /ptr_chck.c
parentad916805e21835a728f4f055196f264180cf4ab3 (diff)
downloadbdwgc-9d77d70bed28887d4b965d1d85db6e95059952d3.tar.gz
Adjust indentation in C preprocessor directives
(reformatting) * cord/tests/de.c: Adjust indentation in directives. * cord/tests/de_win.c: Likewise. * dbg_mlc.c: Likewise. * dyn_load.c: Likewise. * extra/AmigaOS.c: Likewise. * include/gc/ec.h: Likewise. * include/gc/gc_tiny_fl.h: Likewise. * include/private/gc_locks.h: Likewise. * include/private/gc_priv.h: Likewise. * include/private/gcconfig.h: Likewise. * include/private/thread_local_alloc.h: Likewise. * malloc.c: Likewise. * mark.c: Likewise. * os_dep.c: Likewise. * ptr_chck.c: Likewise. * reclaim.c: Likewise. * tests/gctest.c: Likewise. * tools/threadlibs.c: Likewise.
Diffstat (limited to 'ptr_chck.c')
-rw-r--r--ptr_chck.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/ptr_chck.c b/ptr_chck.c
index 88affde3..8894644b 100644
--- a/ptr_chck.c
+++ b/ptr_chck.c
@@ -160,22 +160,22 @@ void (GC_CALLBACK *GC_is_visible_print_proc)(void * p) =
#ifndef THREADS
/* Could p be a stack address? */
- STATIC GC_bool GC_on_stack(void *p)
- {
-# ifdef STACK_GROWS_DOWN
- if ((word)p >= (word)GC_approx_sp()
+ STATIC GC_bool GC_on_stack(void *p)
+ {
+# ifdef STACK_GROWS_DOWN
+ if ((word)p >= (word)GC_approx_sp()
&& (word)p < (word)GC_stackbottom) {
- return(TRUE);
- }
-# else
- if ((word)p <= (word)GC_approx_sp()
+ return(TRUE);
+ }
+# else
+ if ((word)p <= (word)GC_approx_sp()
&& (word)p > (word)GC_stackbottom) {
- return(TRUE);
- }
-# endif
- return(FALSE);
- }
-#endif
+ return(TRUE);
+ }
+# endif
+ return(FALSE);
+ }
+#endif /* !THREADS */
/* Check that p is visible */
/* to the collector as a possibly pointer containing location. */