- Use the new 'asm-like' build system for r_parse plugins
- Added new callback to 'assemble' parseable expressions
into compilable asm code
- Refactorize and remove warnings in parse_mreplace
* Added r_str_char_count() in r_util
* Some fixups in the fastcall code in r_asm
--HG--
rename : libr/parse/p/mreplace/mmemory.c => libr/parse/p/parse_mreplace/mmemory.c
rename : libr/parse/p/mreplace/mmemory.h => libr/parse/p/parse_mreplace/mmemory.h
rename : libr/parse/p/mreplace/mreplace.c => libr/parse/p/parse_mreplace/mreplace.c
rename : libr/parse/p/mreplace/mreplace.h => libr/parse/p/parse_mreplace/mreplace.h
32 lines
690 B
C
32 lines
690 B
C
//
|
|
// Library: Memory Manage Module v1.10, Copyleft, 2009-02-25
|
|
// Author : Mandingo, mandingo [ at ] yoire.com
|
|
//
|
|
|
|
#define USE_BCOPY 1
|
|
|
|
#define MEM_STATE_BAD 0
|
|
#define MEM_STATE_OK 1
|
|
|
|
typedef struct {
|
|
char *address;
|
|
long size;
|
|
} memChunk;
|
|
|
|
typedef struct {
|
|
long allocated;
|
|
char state;
|
|
} memInfo;
|
|
|
|
memChunk *memReserve(long size);
|
|
void memCopy(memChunk *dest,memChunk *source);
|
|
memInfo *memInformation();
|
|
long memAllocated();
|
|
void memFree(memChunk *chunk);
|
|
void memCheckState();
|
|
|
|
void memStrCat(memChunk *dest,char *string);
|
|
memChunk *memString(char *string);
|
|
void memStringRealloc(memChunk *chunk);
|
|
memChunk *memStringReserve(char *string,long nbytes);
|
|
|