diff prmalloc.h @ 20:f3cb11baf791

Fully working longjmp, get_sched based. Also OS Portability work included. Related library_proto-runtime commit: 45dc6d5afb2d
author Philipe Louchtch
date Fri, 09 May 2014 11:19:53 +0200
parents c3829f630c2f
children
line diff
     1.1 --- a/prmalloc.h	Tue Mar 04 12:45:08 2014 -0800
     1.2 +++ b/prmalloc.h	Fri May 09 11:19:53 2014 +0200
     1.3 @@ -1,52 +1,52 @@
     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 _PRMALLOC_H
    1.14 -#define	_PRMALLOC_H
    1.15 -
    1.16 -#include <malloc.h>
    1.17 -#include <inttypes.h>
    1.18 -#include <math.h>
    1.19 -#include <PR__include/PR__primitive_data_types.h>
    1.20 -
    1.21 -void *
    1.22 -PR_int__malloc( size_t sizeRequested );
    1.23 -
    1.24 -void *
    1.25 -PR_int__malloc_aligned( size_t sizeRequested );
    1.26 -
    1.27 -void
    1.28 -PR_int__free( void *ptrToFree );
    1.29 -
    1.30 -//Use these in application code directly
    1.31 -#define \
    1.32 -PR__malloc  PR_WL__malloc
    1.33 -
    1.34 -#define \
    1.35 -PR__free    PR_WL__free
    1.36 -
    1.37 -//these are implemented in the PR leaf implementation
    1.38 -void *
    1.39 -PR_WL__malloc( int32  sizeRequested ); 
    1.40 -
    1.41 -void
    1.42 -PR_WL__free( void *ptrToFree );
    1.43 -
    1.44 -
    1.45 -/*Allocates memory from the external system -- higher overhead
    1.46 - */
    1.47 -void *
    1.48 -PR_ext__malloc_in_ext( size_t sizeRequested );
    1.49 -
    1.50 -/*Frees memory that was allocated in the external system -- higher overhead
    1.51 - */
    1.52 -void
    1.53 -PR_ext__free_in_ext( void *ptrToFree );
    1.54 -
    1.55 +/*
    1.56 + *  Copyright 2009 OpenSourceCodeStewardshipFoundation.org
    1.57 + *  Licensed under GNU General Public License version 2
    1.58 + *
    1.59 + * Author: seanhalle@yahoo.com
    1.60 + *
    1.61 + * Created on November 14, 2009, 9:07 PM
    1.62 + */
    1.63 +
    1.64 +#ifndef _PRMALLOC_H
    1.65 +#define	_PRMALLOC_H
    1.66 +
    1.67 +#include <malloc.h>
    1.68 +#include <inttypes.h>
    1.69 +#include <math.h>
    1.70 +#include <PR__include/PR__primitive_data_types.h>
    1.71 +
    1.72 +void *
    1.73 +PR_int__malloc( size_t sizeRequested );
    1.74 +
    1.75 +void *
    1.76 +PR_int__malloc_aligned( size_t sizeRequested );
    1.77 +
    1.78 +void
    1.79 +PR_int__free( void *ptrToFree );
    1.80 +
    1.81 +//Use these in application code directly
    1.82 +#define \
    1.83 +PR__malloc  PR_WL__malloc
    1.84 +
    1.85 +#define \
    1.86 +PR__free    PR_WL__free
    1.87 +
    1.88 +//these are implemented in the PR leaf implementation
    1.89 +void *
    1.90 +PR_WL__malloc( int32  sizeRequested ); 
    1.91 +
    1.92 +void
    1.93 +PR_WL__free( void *ptrToFree );
    1.94 +
    1.95 +
    1.96 +/*Allocates memory from the external system -- higher overhead
    1.97 + */
    1.98 +void *
    1.99 +PR_ext__malloc_in_ext( size_t sizeRequested );
   1.100 +
   1.101 +/*Frees memory that was allocated in the external system -- higher overhead
   1.102 + */
   1.103 +void
   1.104 +PR_ext__free_in_ext( void *ptrToFree );
   1.105 +
   1.106  #endif
   1.107 \ No newline at end of file