forked from len0rd/rockbox
		
	Move code dealing with rockbox specific buflib allocations into a rockbox specific file and implement buffer allocation with malloc/free for warble/stand alone lib. Based on patch by Sean Bartell. Change-Id: I8cb85dad5890fbd34c1bb26abbb89c0b0f6b55cf Reviewed-on: http://gerrit.rockbox.org/144 Tested-by: Nils Wallménius <nils@rockbox.org> Reviewed-by: Michael Sevakis <jethead71@rockbox.org> Reviewed-by: Nils Wallménius <nils@rockbox.org>
		
			
				
	
	
		
			39 lines
		
	
	
	
		
			814 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
	
		
			814 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef RBCODECPLATFORM_H_INCLUDED
 | |
| #define RBCODECPLATFORM_H_INCLUDED
 | |
| #if 0
 | |
| /* assert */
 | |
| #include <assert.h>
 | |
| 
 | |
| /* isdigit, islower, isprint, isspace, toupper */
 | |
| #include <ctype.h>
 | |
| 
 | |
| /* {UCHAR,USHRT,UINT,ULONG,SCHAR,SHRT,INT,LONG}_{MIN,MAX} */
 | |
| #include <limits.h>
 | |
| 
 | |
| /* memchr, memcmp, memcpy, memmove, memset, strcasecmp, strcat, strchr, strcmp,
 | |
|  * strcpy, strlen, strncmp, strrchr, strlcpy */
 | |
| #include <string.h>
 | |
| #include "string-extra.h"
 | |
| 
 | |
| /* snprintf */
 | |
| #include <stdio.h>
 | |
| #endif
 | |
| /* abs, atoi, labs, rand */
 | |
| #include <stdlib.h>
 | |
| #if 0
 | |
| /* debugf */
 | |
| #include "debug.h"
 | |
| 
 | |
| /* logf */
 | |
| #include "logf.h"
 | |
| 
 | |
| /* clip_sample_16 */
 | |
| #include "dsp-util.h"
 | |
| #define HAVE_CLIP_SAMPLE_16
 | |
| #endif
 | |
| 
 | |
| bool tdspeed_alloc_buffers(int32_t **buffers, const int *buf_s, int nbuf);
 | |
| void tdspeed_free_buffers(int32_t **buffers, int nbuf);
 | |
| 
 | |
| #endif
 | |
| 
 |