Whitespace cleanup in src/mem
authorSteve Youngs <steve@sxemacs.org>
Sat, 28 Jan 2012 06:41:08 +0000 (16:41 +1000)
committerSteve Youngs <steve@sxemacs.org>
Sat, 28 Jan 2012 06:41:08 +0000 (16:41 +1000)
Signed-off-by: Steve Youngs <steve@sxemacs.org>
src/mem/Makefile.am
src/mem/free-hook.c
src/mem/malloc.c
src/mem/ralloc.c

index 3dd0253..b8f7fc3 100644 (file)
@@ -45,7 +45,7 @@ ETAGS = $(top_builddir)/lib-src/etags
 TAGS_DEPENDENCIES = $(ETAGS)
 
 all_sources=
-header_HEADERS = $(acgen_headers) 
+header_HEADERS = $(acgen_headers)
 
 noinst_LIBRARIES=
 
@@ -61,7 +61,7 @@ header_HEADERS += $(libsxemem_a_headers)
 noinst_LIBRARIES += libsxemem.a
 
 if USE_MEMALLOC
-libmemalloc_a_headers = 
+libmemalloc_a_headers =
 libmemalloc_a_sources =
 libmemalloc_a_SOURCES = $(libmemalloc_a_headers) $(libmemalloc_a_sources)
 EXTRA_libmemalloc_a_SOURCES = \
@@ -78,7 +78,7 @@ noinst_LIBRARIES += libmemalloc.a
 endif
 
 
-# 
+#
 # Help the SXEmacs developers get nice post-processed source files
 
 ## Create preprocessor output (debugging purposes only)
index 22eb64e..8634f9f 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
 This file is part of SXEmacs
 
 SXEmacs is free software: you can redistribute it and/or modify
@@ -583,7 +583,7 @@ debug_gcpro5(char *file, int line, struct gcpro *gcpro1, struct gcpro *gcpro2,
 void
 debug_gcpro6(char *file, int line, struct gcpro *gcpro1, struct gcpro *gcpro2,
             struct gcpro *gcpro3, struct gcpro *gcpro4, struct gcpro *gcpro5,
-             struct gcpro *gcpro6,
+            struct gcpro *gcpro6,
             Lisp_Object * var1, Lisp_Object * var2, Lisp_Object * var3,
             Lisp_Object * var4, Lisp_Object * var5, Lisp_Object * var6)
 {
@@ -612,10 +612,10 @@ debug_gcpro6(char *file, int line, struct gcpro *gcpro1, struct gcpro *gcpro2,
 void
 debug_gcpro7(char *file, int line, struct gcpro *gcpro1, struct gcpro *gcpro2,
             struct gcpro *gcpro3, struct gcpro *gcpro4, struct gcpro *gcpro5,
-             struct gcpro *gcpro6, struct gcpro *gcpro7,
+            struct gcpro *gcpro6, struct gcpro *gcpro7,
             Lisp_Object * var1, Lisp_Object * var2, Lisp_Object * var3,
-            Lisp_Object * var4, Lisp_Object * var5, Lisp_Object * var6, 
-             Lisp_Object * var7)
+            Lisp_Object * var4, Lisp_Object * var5, Lisp_Object * var6,
+            Lisp_Object * var7)
 {
        log_gcpro(file, line, gcpro5, gcpro5_type);
        gcpro1->next = gcprolist;
@@ -645,10 +645,10 @@ debug_gcpro7(char *file, int line, struct gcpro *gcpro1, struct gcpro *gcpro2,
 void
 debug_gcpro8(char *file, int line, struct gcpro *gcpro1, struct gcpro *gcpro2,
             struct gcpro *gcpro3, struct gcpro *gcpro4, struct gcpro *gcpro5,
-             struct gcpro *gcpro6, struct gcpro *gcpro7, struct gcpro *gcpro8,
+            struct gcpro *gcpro6, struct gcpro *gcpro7, struct gcpro *gcpro8,
             Lisp_Object * var1, Lisp_Object * var2, Lisp_Object * var3,
-            Lisp_Object * var4, Lisp_Object * var5, Lisp_Object * var6, 
-             Lisp_Object * var7, Lisp_Object * var8)
+            Lisp_Object * var4, Lisp_Object * var5, Lisp_Object * var6,
+            Lisp_Object * var7, Lisp_Object * var8)
 {
        log_gcpro(file, line, gcpro5, gcpro5_type);
        gcpro1->next = gcprolist;
index 4eed116..ad052f8 100644 (file)
@@ -110,9 +110,9 @@ what you give them.   Help stamp out software-hoarding!  */
  *
  *     Nov 1983, Mike@BRL, Added support for 4.1C/4.2 BSD.
  *
- * This is a very fast storage allocator.  It allocates blocks of a small 
+ * This is a very fast storage allocator.  It allocates blocks of a small
  * number of different sizes, and keeps free lists of each size.  Blocks
- * that don't exactly fit are passed up to the next larger size.  In this 
+ * that don't exactly fit are passed up to the next larger size.  In this
  * implementation, the available sizes are (2^n)-4 (or -16) bytes long.
  * This is designed for use in a program that uses vast quantities of
  * memory, but bombs when it runs out.  To make it a little better, it
index 5d0b7fd..62a4b17 100644 (file)
@@ -108,7 +108,7 @@ static int extra_bytes;
 #define PAGE (getpagesize ())
 #define ALIGNED(addr) (((unsigned long int) (addr) & (page_size - 1)) == 0)
 #define ROUNDUP(size) (((unsigned long int) (size) + page_size - 1) \
-                       & ~(page_size - 1))
+                      & ~(page_size - 1))
 #define ROUND_TO_PAGE(addr) (addr & (~(page_size - 1)))
 
 #define MEM_ALIGN sizeof(double)
@@ -553,7 +553,7 @@ static void update_heap_bloc_correspondence(bloc_ptr bloc, heap_ptr heap)
                /* Advance through heaps, marking them empty,
                   till we get to the one that B is in.  */
                while (heap) {
-                       if (heap->bloc_start <= b->data && 
+                       if (heap->bloc_start <= b->data &&
                            b->data <= heap->end)
                                break;
                        heap = heap->next;
@@ -566,7 +566,7 @@ static void update_heap_bloc_correspondence(bloc_ptr bloc, heap_ptr heap)
                                heap->free = heap->bloc_start;
                        } else {
                                /* ... and now abort if proven
-                                  otherwise... 
+                                  otherwise...
                                */
                                abort();
                        }
@@ -912,7 +912,7 @@ void r_alloc_free(POINTER * ptr)
        dead_bloc = find_bloc(ptr);
        if (dead_bloc == NIL_BLOC)
                abort();
-       else 
+       else
                free_bloc(dead_bloc);
        *ptr = 0;