diff vmalloc.h @ 178:c1784868dcea

testing hgeol -- see if it fixes line-ending issues -- commit line endings
author Me@portablequad
date Wed, 04 Jan 2012 16:10:11 -0800
parents c11b9dcf6d24
children 6db9e4898978
line diff
     1.1 --- a/vmalloc.h	Thu Oct 06 16:24:17 2011 +0200
     1.2 +++ b/vmalloc.h	Wed Jan 04 16:10:11 2012 -0800
     1.3 @@ -1,61 +1,61 @@
     1.4 -/*
     1.5 - *  Copyright 2009 OpenSourceCodeStewardshipFoundation.org
     1.6 - *  Licensed under GNU General Public License version 2
     1.7 - *
     1.8 - * Author: seanhalle@yahoo.com
     1.9 - *
    1.10 - * Created on November 14, 2009, 9:07 PM
    1.11 - */
    1.12 -
    1.13 -#ifndef _VMALLOC_H
    1.14 -#define	_VMALLOC_H
    1.15 -
    1.16 -#include <malloc.h>
    1.17 -#include <inttypes.h>
    1.18 -#include "VMS_primitive_data_types.h"
    1.19 -
    1.20 -typedef struct _MallocProlog MallocProlog;
    1.21 -
    1.22 -struct _MallocProlog
    1.23 - {
    1.24 -   MallocProlog *nextChunkInFreeList;
    1.25 -   MallocProlog *prevChunkInFreeList;
    1.26 -   MallocProlog *nextHigherInMem;
    1.27 -   MallocProlog *nextLowerInMem;
    1.28 - };
    1.29 -//MallocProlog
    1.30 -
    1.31 -typedef struct
    1.32 - {
    1.33 -   MallocProlog *firstChunkInFreeList;
    1.34 -   int32         numInList; //TODO not used
    1.35 - }
    1.36 -FreeListHead;
    1.37 -
    1.38 -void *
    1.39 -VMS__malloc( size_t sizeRequested );
    1.40 -
    1.41 -void *
    1.42 -VMS__malloc_aligned( size_t sizeRequested );
    1.43 -
    1.44 -void
    1.45 -VMS__free( void *ptrToFree );
    1.46 -
    1.47 -/*Allocates memory from the external system -- higher overhead
    1.48 - */
    1.49 -void *
    1.50 -VMS__malloc_in_ext( size_t sizeRequested );
    1.51 -
    1.52 -/*Frees memory that was allocated in the external system -- higher overhead
    1.53 - */
    1.54 -void
    1.55 -VMS__free_in_ext( void *ptrToFree );
    1.56 -
    1.57 -
    1.58 -MallocProlog *
    1.59 -VMS_ext__create_free_list();
    1.60 -
    1.61 -void
    1.62 -VMS_ext__free_free_list( MallocProlog *freeListHead );
    1.63 -
    1.64 +/*
    1.65 + *  Copyright 2009 OpenSourceCodeStewardshipFoundation.org
    1.66 + *  Licensed under GNU General Public License version 2
    1.67 + *
    1.68 + * Author: seanhalle@yahoo.com
    1.69 + *
    1.70 + * Created on November 14, 2009, 9:07 PM
    1.71 + */
    1.72 +
    1.73 +#ifndef _VMALLOC_H
    1.74 +#define	_VMALLOC_H
    1.75 +
    1.76 +#include <malloc.h>
    1.77 +#include <inttypes.h>
    1.78 +#include "VMS_primitive_data_types.h"
    1.79 +
    1.80 +typedef struct _MallocProlog MallocProlog;
    1.81 +
    1.82 +struct _MallocProlog
    1.83 + {
    1.84 +   MallocProlog *nextChunkInFreeList;
    1.85 +   MallocProlog *prevChunkInFreeList;
    1.86 +   MallocProlog *nextHigherInMem;
    1.87 +   MallocProlog *nextLowerInMem;
    1.88 + };
    1.89 +//MallocProlog
    1.90 +
    1.91 +typedef struct
    1.92 + {
    1.93 +   MallocProlog *firstChunkInFreeList;
    1.94 +   int32         numInList; //TODO not used
    1.95 + }
    1.96 +FreeListHead;
    1.97 +
    1.98 +void *
    1.99 +VMS__malloc( size_t sizeRequested );
   1.100 +
   1.101 +void *
   1.102 +VMS__malloc_aligned( size_t sizeRequested );
   1.103 +
   1.104 +void
   1.105 +VMS__free( void *ptrToFree );
   1.106 +
   1.107 +/*Allocates memory from the external system -- higher overhead
   1.108 + */
   1.109 +void *
   1.110 +VMS__malloc_in_ext( size_t sizeRequested );
   1.111 +
   1.112 +/*Frees memory that was allocated in the external system -- higher overhead
   1.113 + */
   1.114 +void
   1.115 +VMS__free_in_ext( void *ptrToFree );
   1.116 +
   1.117 +
   1.118 +MallocProlog *
   1.119 +VMS_ext__create_free_list();
   1.120 +
   1.121 +void
   1.122 +VMS_ext__free_free_list( MallocProlog *freeListHead );
   1.123 +
   1.124  #endif
   1.125 \ No newline at end of file