color_insrt.c File Reference
#include <grass/gis.h>
Go to the source code of this file.
|
Defines |
#define | umalloc(n) (unsigned char *) G_malloc((size_t)n) |
#define | urealloc(s, n) (unsigned char *) G_realloc(s,(size_t)n) |
#define | LIMIT(x) if (x < 0) x = 0; else if (x > 255) x = 255; |
Functions |
int | G__insert_color_into_lookup (CELL cat, int red, int grn, int blu, struct _Color_Info_ *cp) |
Define Documentation
#define LIMIT |
( |
x |
|
) |
if (x < 0) x = 0; else if (x > 255) x = 255; |
#define umalloc |
( |
n |
|
) |
(unsigned char *) G_malloc((size_t)n) |
#define urealloc |
( |
s, |
|
|
n |
|
) |
(unsigned char *) G_realloc(s,(size_t)n) |
Function Documentation
int G__insert_color_into_lookup |
( |
CELL |
cat, |
|
|
int |
red, |
|
|
int |
grn, |
|
|
int |
blu, |
|
|
struct _Color_Info_ * |
cp | |
|
) |
| | |