Graphviz
2.41.20171026.1811
Main Page
Data Structures
Files
File List
Globals
lib
rbtree
misc.h
Go to the documentation of this file.
1
/* $Id$Revision: */
2
/* vim:set shiftwidth=4 ts=8: */
3
4
/**********************************************************
5
* See the LICENSE file for copyright information. *
6
**********************************************************/
7
8
#ifndef INC_E_MISC_
9
#define INC_E_MISC_
10
11
#ifdef __cplusplus
12
extern
"C"
{
13
#endif
14
15
#include <stdlib.h>
16
#include <setjmp.h>
17
18
extern
jmp_buf
rb_jbuf
;
19
20
/* CONVENTIONS: All data structures for red-black trees have the prefix */
21
/* "rb_" to prevent name conflicts. */
22
/* */
23
/* Function names: Each word in a function name begins with */
24
/* a capital letter. An example funcntion name is */
25
/* CreateRedTree(a,b,c). Furthermore, each function name */
26
/* should begin with a capital letter to easily distinguish */
27
/* them from variables. */
28
/* */
29
/* Variable names: Each word in a variable name begins with */
30
/* a capital letter EXCEPT the first letter of the variable */
31
/* name. For example, int newLongInt. Global variables have */
32
/* names beginning with "g". An example of a global */
33
/* variable name is gNewtonsConstant. */
34
35
void
Assert
(
int
assertion,
char
* error);
36
void
*
SafeMalloc
(
size_t
size);
37
38
#ifdef __cplusplus
39
}
40
#endif
41
42
#endif
43
rb_jbuf
jmp_buf rb_jbuf
Definition:
misc.c:13
Assert
void Assert(int assertion, char *error)
Definition:
misc.c:33
SafeMalloc
void * SafeMalloc(size_t size)
Definition:
misc.c:56
Generated by
1.8.5