00001 /* Author: Geoff Leach, Department of Computer Science, RMIT. 00002 * email: gl@cs.rmit.edu.au 00003 * 00004 * Date: 6/10/93 00005 * 00006 * Version 1.0 00007 * 00008 * Copyright (c) RMIT 1993. All rights reserved. 00009 * 00010 * License to copy and use this software purposes is granted provided 00011 * that appropriate credit is given to both RMIT and the author. 00012 * 00013 * License is also granted to make and use derivative works provided 00014 * that appropriate credit is given to both RMIT and the author. 00015 * 00016 * RMIT makes no representations concerning either the merchantability 00017 * of this software or the suitability of this software for any particular 00018 * purpose. It is provided "as is" without express or implied warranty 00019 * of any kind. 00020 * 00021 * These notices must be retained in any copies of any part of this software. 00022 */ 00023 00024 #define Org(e) ((e)->org) 00025 #define Dest(e) ((e)->dest) 00026 #define Onext(e) ((e)->onext) 00027 #define Oprev(e) ((e)->oprev) 00028 #define Dnext(e) ((e)->dnext) 00029 #define Dprev(e) ((e)->dprev) 00030 00031 #define Other_point(e,p) ((e)->org == p ? (e)->dest : (e)->org) 00032 #define Next(e,p) ((e)->org == p ? (e)->onext : (e)->dnext) 00033 #define Prev(e,p) ((e)->org == p ? (e)->oprev : (e)->dprev) 00034 00035 #define Visited(p) ((p)->f) 00036 00037 #define Identical_refs(e1,e2) (e1 == e2)