#ifndef Mis_H #define Mis_H /* Last edited on 2007-02-02 20:58:15 by stolfi */ /* Miscellaneous utility procedures. */ #define Mis_H_author \ "Created 2000 by L. A. P. Lozada, based on 1996 procedures by" \ "R. M. Rosi and J. Stolfi." #include #include #include #include #include #define _GNU_SOURCE #include /* typedef unsigned int uint; */ /* vec_typedef(uint_vec_t,uint_vec,uint); */ /* A vector of unsigned integers. */ typedef r4_t Point; #define BoolChars ((char[]){'F', 'T'}) #define AlphaChars ((charset){'\t', '\n', '\r', '\f', ' ', 'A'..'Z', 'a'..'z'}) void WritePoint4D(FILE *wr, r4_t *c); /* Write 4D point with {scientific} format. */ void WritePoint3D(FILE *wr, r3_t *c); /* Write 3D point with {scientific} format. */ void WritePoint2D(FILE *wr, r2_t *c); /* Write 2D point with {scientific} format. */ void WriteIntensity(FILE *wr, float r); /* Write one component color (real value) between 0-1. */ void WriteColor(FILE *wr, frgb_t *c); /* Write colors in RGB mode. */ void WriteRadius(FILE *wr, float r); /* Write one value Real. */ #endif