These patches are by Vikram Visweswariah to disable animation features which break some uses of the move command. They apply to xgraph 12.0. A sample input that crashes xgraph_anim: TitleText: reno1 Device: Postscrip BoundBox: true Ticks: true Markers: true XUnitText: time YUnitText: packets "packets move 1.006 0 draw 1.006 0 move 1.22744 1 draw 1.22744 1 for a longer input run "ns test-script.tcl reno1" and then "bin/raw2xg -q out.xg". -John Heidemann 15-Aug-97 diff -ur xgraph_anim/read.c xgraph_visweswa/read.c --- xgraph_anim/read.c Tue Sep 14 15:18:23 1993 +++ xgraph_visweswa/read.c Tue Jul 29 16:59:23 1997 @@ -30,6 +30,10 @@ static int newGroup = 0; static int redundant_set = 0; +#ifdef DO_DER +extern void Der1(); +#endif + static int rdSet(fn) char *fn; /* Reading from file `fn' */ @@ -339,7 +343,9 @@ break; } } +#ifdef DO_DER Der1(); +#endif if (errors) return -1; else diff -ur xgraph_anim/xgraph.c xgraph_visweswa/xgraph.c --- xgraph_anim/xgraph.c Tue Oct 12 09:06:31 1993 +++ xgraph_visweswa/xgraph.c Tue Jul 29 17:07:13 1997 @@ -29,6 +29,10 @@ extern void init_X(); extern void do_error(); +#ifdef DO_DER +extern void Bounds(); +#endif DO_DER + static char *tildeExpand(); static void ReverseIt(); static void Traverse(); @@ -570,6 +574,7 @@ } +#ifdef DO_DER static /*ARGSUSED PW*/ xtb_hret @@ -690,6 +695,7 @@ } /* End change PW */ +#endif DO_DER #define NORMSIZE 600 #define MINDIM 100 @@ -846,6 +852,7 @@ XMoveWindow(disp, new_info->about, (int) (BTNPAD + cl_frame.width + BTNINTER + hd_frame.width + BTNINTER), BTNPAD); +#ifdef DO_DER /* These buttons added PW */ xtb_bt_new(new_window, "Anim", rew_func, (xtb_data) new_window, &rw_frame); @@ -871,6 +878,7 @@ ab_frame.width + BTNINTER + rw_frame.width + BTNINTER + rp_frame.width + BTNINTER), BTNPAD); +#endif DO_DER new_info->flags = 0; } diff -ur xgraph_anim/xgraph.h xgraph_visweswa/xgraph.h --- xgraph_anim/xgraph.h Tue Oct 12 09:53:50 1993 +++ xgraph_visweswa/xgraph.h Tue Jul 29 16:21:11 1997 @@ -146,8 +146,8 @@ extern char *Realloc(); #ifdef _AIX370 extern int sprintf(); -#else -extern char *sprintf(); +/*#else +extern char *sprintf();*/ #endif extern char *strcpy(); extern char *strcat();