File: misc.h

package info (click to toggle)
libarr 0.1-49
  • links: PTS
  • area: main
  • in suites: woody
  • size: 376 kB
  • ctags: 400
  • sloc: ansic: 2,106; makefile: 140; sh: 13
file content (27 lines) | stat: -rw-r--r-- 723 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * $Id: misc.h,v 1.8 2000/08/24 00:34:18 cbond Exp $
 */

#if !defined(__include_misc_h__)
#define __include_misc_h__

#include <sys/types.h>

/* Miscellaneous macros for speed, cleanliness, and general laziness.
 */
#undef	MALLOC
#undef	FREE
#define MALLOC(t, s)	(t *) malloc(sizeof(t) * s)
#define FREE(p)		free(p)

/* arr_scr is the main screen we're drawing to. */
extern arr_scr_t *arr_scr;

/* These declarations are:
 * 	- a list of colors that should be converted to bold on old terminals;
 * 	- a similar list of colors that are to be converted to inverse;
 * 	- bad characters that cannot be printed to the screen, etc.
 */
extern u_char bold_color[], inverse_color[], arr_ext_conv[], arr_norm_conv[];

#endif