From: erg Date: Thu, 26 Feb 2009 15:16:55 +0000 (+0000) Subject: Add copyright notice, tabbing and ID info; X-Git-Tag: LAST_LIBGRAPH~32^2~2396 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=deff88ce3417e0be0409c93a2e919e5cff99f8eb;p=graphviz Add copyright notice, tabbing and ID info; remove unnecessary include files --- diff --git a/lib/rbtree/misc.c b/lib/rbtree/misc.c index cf4941c41..6acd853ed 100755 --- a/lib/rbtree/misc.c +++ b/lib/rbtree/misc.c @@ -1,4 +1,25 @@ +/* $Id$Revision: */ +/* vim:set shiftwidth=4 ts=8: */ + +/********************************************************** +* This software is part of the graphviz package * +* http://www.graphviz.org/ * +* * +* Copyright (c) 1994-2004 AT&T Corp. * +* and is licensed under the * +* Common Public License, Version 1.0 * +* by AT&T Corp. * +* * +* Information and Software Systems Research * +* AT&T Research, Florham Park NJ * +**********************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "misc.h" +#include /***********************************************************************/ /* FUNCTION: void Assert(int assertion, char* error) */ diff --git a/lib/rbtree/misc.h b/lib/rbtree/misc.h index dd2e0beea..a4bed6665 100755 --- a/lib/rbtree/misc.h +++ b/lib/rbtree/misc.h @@ -1,20 +1,27 @@ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include -#include - -#ifdef HAVE_STDINT_H -#include -#endif -#ifdef HAVE_INTTYPES_H -#include -#endif +/* $Id$Revision: */ +/* vim:set shiftwidth=4 ts=8: */ + +/********************************************************** +* This software is part of the graphviz package * +* http://www.graphviz.org/ * +* * +* Copyright (c) 1994-2004 AT&T Corp. * +* and is licensed under the * +* Common Public License, Version 1.0 * +* by AT&T Corp. * +* * +* Information and Software Systems Research * +* AT&T Research, Florham Park NJ * +**********************************************************/ #ifndef INC_E_MISC_ #define INC_E_MISC_ +#ifdef __cplusplus +extern "C" { +#endif + +#include /* CONVENTIONS: All data structures for red-black trees have the prefix */ /* "rb_" to prevent name conflicts. */ @@ -34,12 +41,9 @@ void Assert(int assertion, char* error); void * SafeMalloc(size_t size); +#ifdef __cplusplus +} #endif - - - - - - +#endif diff --git a/lib/rbtree/red_black_tree.c b/lib/rbtree/red_black_tree.c index dd33951f4..65d02d259 100755 --- a/lib/rbtree/red_black_tree.c +++ b/lib/rbtree/red_black_tree.c @@ -1,4 +1,25 @@ +/* $Id$Revision: */ +/* vim:set shiftwidth=4 ts=8: */ + +/********************************************************** +* This software is part of the graphviz package * +* http://www.graphviz.org/ * +* * +* Copyright (c) 1994-2004 AT&T Corp. * +* and is licensed under the * +* Common Public License, Version 1.0 * +* by AT&T Corp. * +* * +* Information and Software Systems Research * +* AT&T Research, Florham Park NJ * +**********************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "red_black_tree.h" +#include "stdio.h" /***********************************************************************/ /* FUNCTION: RBTreeCreate */ diff --git a/lib/rbtree/red_black_tree.h b/lib/rbtree/red_black_tree.h index 545eea38b..01ba839fc 100755 --- a/lib/rbtree/red_black_tree.h +++ b/lib/rbtree/red_black_tree.h @@ -1,8 +1,31 @@ +/* $Id$Revision: */ +/* vim:set shiftwidth=4 ts=8: */ + +/********************************************************** +* This software is part of the graphviz package * +* http://www.graphviz.org/ * +* * +* Copyright (c) 1994-2004 AT&T Corp. * +* and is licensed under the * +* Common Public License, Version 1.0 * +* by AT&T Corp. * +* * +* Information and Software Systems Research * +* AT&T Research, Florham Park NJ * +**********************************************************/ + +#ifndef RED_BLACK_TREE_H +#define RED_BLACK_TREE_H + +#ifdef __cplusplus +extern "C" { +#endif + #ifdef DMALLOC #include #endif -#include"misc.h" -#include"stack.h" +#include "misc.h" +#include "stack.h" /* CONVENTIONS: All data structures for red-black trees have the prefix */ /* "rb_" to prevent name conflicts. */ @@ -65,3 +88,9 @@ rb_red_blk_node* TreeSuccessor(rb_red_blk_tree*,rb_red_blk_node*); rb_red_blk_node* RBExactQuery(rb_red_blk_tree*, void*); stk_stack * RBEnumerate(rb_red_blk_tree* tree,void* low, void* high); void NullFunction(void*); + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/lib/rbtree/stack.c b/lib/rbtree/stack.c index 220df62cb..ca1587a5b 100755 --- a/lib/rbtree/stack.c +++ b/lib/rbtree/stack.c @@ -1,3 +1,23 @@ +/* $Id$Revision: */ +/* vim:set shiftwidth=4 ts=8: */ + +/********************************************************** +* This software is part of the graphviz package * +* http://www.graphviz.org/ * +* * +* Copyright (c) 1994-2004 AT&T Corp. * +* and is licensed under the * +* Common Public License, Version 1.0 * +* by AT&T Corp. * +* * +* Information and Software Systems Research * +* AT&T Research, Florham Park NJ * +**********************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "stack.h" intptr_t StackNotEmpty(stk_stack * theStack) { diff --git a/lib/rbtree/stack.h b/lib/rbtree/stack.h index 680298146..aedb65be1 100755 --- a/lib/rbtree/stack.h +++ b/lib/rbtree/stack.h @@ -1,3 +1,26 @@ +/* $Id$Revision: */ +/* vim:set shiftwidth=4 ts=8: */ + +/********************************************************** +* This software is part of the graphviz package * +* http://www.graphviz.org/ * +* * +* Copyright (c) 1994-2004 AT&T Corp. * +* and is licensed under the * +* Common Public License, Version 1.0 * +* by AT&T Corp. * +* * +* Information and Software Systems Research * +* AT&T Research, Florham Park NJ * +**********************************************************/ + +#ifndef STACK_H +#define STACK_H + +#ifdef __cplusplus +extern "C" { +#endif + #include "misc.h" /* CONVENTIONS: All data structures for stacks have the prefix */ @@ -41,3 +64,8 @@ void StackPush(stk_stack * theStack, DATA_TYPE newInfoPointer); void * StackPop(stk_stack * theStack); intptr_t StackNotEmpty(stk_stack *); +#ifdef __cplusplus +} +#endif + +#endif diff --git a/lib/rbtree/test_red_black_tree.c b/lib/rbtree/test_red_black_tree.c index cc9cf613d..835b710e4 100755 --- a/lib/rbtree/test_red_black_tree.c +++ b/lib/rbtree/test_red_black_tree.c @@ -1,3 +1,23 @@ +/* $Id$Revision: */ +/* vim:set shiftwidth=4 ts=8: */ + +/********************************************************** +* This software is part of the graphviz package * +* http://www.graphviz.org/ * +* * +* Copyright (c) 1994-2004 AT&T Corp. * +* and is licensed under the * +* Common Public License, Version 1.0 * +* by AT&T Corp. * +* * +* Information and Software Systems Research * +* AT&T Research, Florham Park NJ * +**********************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include"red_black_tree.h" #include #include