#include <string.h>
#include <stdlib.h>
#include "rpage/coroutine.h"
Go to the source code of this file.
|
| #define | TRUE 1 |
| |
| #define | FALSE 0 |
| |
| #define | min(x, y) ((x) < (y) ? (x) : (y)) |
| |
| #define | max(x, y) ((x) > (y) ? (x) : (y)) |
| |
|
| typedef unsigned char | BYTE |
| |
| typedef unsigned char | UBYTE |
| |
| typedef unsigned long | ULONG |
| |
| typedef unsigned short | UWORD |
| |
| typedef int | BOOL |
| |
|
| int | range_adjust (int val, int in_lower, int in_upper, int out_lower, int out_upper) |
| |
| int | clamp (int x, int in_lower, int in_upper) |
| |
| BOOL | point_within_rect (vec2 *pt, rect *r) |
| |
| BOOL | point_within_quad (vec2 *pt, poly *pl) |
| |
| BOOL | point_within_polygon (vec2 *pt, vec2 *pt_list, unsigned short n_pt) |
| |
| char * | citoa (int num, char *str, int base) |
| |
| short | str_find_delimiter (short start, char *str) |
| |
| int | qsqr (int i) |
| |
| #define max |
( |
|
x, |
|
|
|
y |
|
) |
| ((x) > (y) ? (x) : (y)) |
| #define min |
( |
|
x, |
|
|
|
y |
|
) |
| ((x) < (y) ? (x) : (y)) |
| typedef unsigned char BYTE |
| typedef unsigned char UBYTE |
| typedef unsigned long ULONG |
| typedef unsigned short UWORD |
| char* citoa |
( |
int |
num, |
|
|
char * |
str, |
|
|
int |
base |
|
) |
| |
| int clamp |
( |
int |
x, |
|
|
int |
in_lower, |
|
|
int |
in_upper |
|
) |
| |
| BOOL point_within_polygon |
( |
vec2 * |
pt, |
|
|
vec2 * |
pt_list, |
|
|
unsigned short |
n_pt |
|
) |
| |
| int range_adjust |
( |
int |
val, |
|
|
int |
in_lower, |
|
|
int |
in_upper, |
|
|
int |
out_lower, |
|
|
int |
out_upper |
|
) |
| |
| short str_find_delimiter |
( |
short |
start, |
|
|
char * |
str |
|
) |
| |