GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
color_free.c File Reference
#include <stdlib.h>
#include <grass/gis.h>
Include dependency graph for color_free.c:

Go to the source code of this file.


int G_free_colors (struct Colors *colors)
 free color structure memory More...
int G__color_free_rules (struct _Color_Info_ *cp)
int G__color_free_lookup (struct _Color_Info_ *cp)
int G__color_free_fp_lookup (struct _Color_Info_ *cp)
int G__color_reset (struct Colors *colors)

Function Documentation

int G__color_free_fp_lookup ( struct _Color_Info_ *  cp)

Definition at line 56 of file color_free.c.

References G_free().

int G__color_free_lookup ( struct _Color_Info_ *  cp)

Definition at line 43 of file color_free.c.

References G_free().

Referenced by G__color_reset().

int G__color_free_rules ( struct _Color_Info_ *  cp)

Definition at line 30 of file color_free.c.

References G_free(), and NULL.

Referenced by G__color_reset().

int G__color_reset ( struct Colors *  colors)

Definition at line 68 of file color_free.c.

References G__color_free_lookup(), and G__color_free_rules().

Referenced by G_free_colors().

int G_free_colors ( struct Colors *  colors)

free color structure memory

The dynamically allocated memory associated with the colors structure is freed. Note. This routine may be used after G_read_colors as well as after G_init_colors.


Definition at line 17 of file color_free.c.

References G__color_reset(), and G_init_colors().

Referenced by Gs_pack_colors(), Gs_pack_colors_float(), gsd_put_legend(), and Gvl_unload_colors_data().