_.
#define MAX_LINE_SIZE 256
#define COMMENT_CHAR '#'
#define MAX_ANIM_NAME_LENGTH 64
#define MAX_FILE_NAME_LENGTH 1024
[a-z][a-z.0-9_]*
Ceci, pas comme
CELA, et pas plus ainsi.
#define XFREE(Var) \
do \
{ \
if (Var) \
free(Var); \
} \
while (0)
avec les \ bien alignés par des tabulations (avec M-i dans Emacs).
s_, par t_ pour un alias de type (typedef), par
u_ pour une union et e_ pour une énumération.
typedef unsigned char t_cmap[CMAP_NBR_COL * CMAP_SIZE];
typedef unsigned char t_pixel;
struct s_picture
{
int width;
int height;
t_cmap cmap;
t_pixel *picture;
};
gl_.