sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
recycle.h File Reference
#include "standard.h"

Go to the source code of this file.

Classes

struct  recycle
struct  reroot

Macros

#define RESTART   0
#define REMAX   32000
#define renew(r)
#define redel(root, item)

Typedefs

typedef struct recycle recycle
typedef struct reroot reroot

Functions

reroot * remkroot (size_t mysize)
void refree (struct reroot *r)
char * renewx (struct reroot *r)
char * remalloc (size_t len)

Macro Definition Documentation

◆ redel

#define redel ( root,
item )
Value:
{ \
((recycle *)item)->next=(root)->trash; \
(root)->trash=(recycle *)(item); \
}

Definition at line 62 of file recycle.h.

◆ REMAX

#define REMAX   32000

Definition at line 30 of file recycle.h.

◆ renew

#define renew ( r)
Value:
((r)->numleft ? \
(((char *)((r)->list+1))+((r)->numleft-=(r)->size)) : renewx(r))

Definition at line 55 of file recycle.h.

◆ RESTART

#define RESTART   0

Definition at line 29 of file recycle.h.

Typedef Documentation

◆ recycle

typedef struct recycle recycle

Definition at line 36 of file recycle.h.

◆ reroot

typedef struct reroot reroot

Definition at line 46 of file recycle.h.

Function Documentation

◆ refree()

void refree ( struct reroot * r)
extern

Definition at line 33 of file recycle.c.

◆ remalloc()

char * remalloc ( size_t len)
extern

Definition at line 70 of file recycle.c.

◆ remkroot()

reroot * remkroot ( size_t mysize)
extern

Definition at line 21 of file recycle.c.

◆ renewx()

char * renewx ( struct reroot * r)
extern

Definition at line 47 of file recycle.c.