--- ray/src/common/xf.c 1991/12/19 14:45:41 2.2 +++ ray/src/common/xf.c 2003/02/25 02:47:22 2.5 @@ -1,15 +1,14 @@ -/* Copyright (c) 1990 Regents of the University of California */ - #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static const char RCSid[] = "$Id: xf.c,v 2.5 2003/02/25 02:47:22 greg Exp $"; #endif - /* * xf.c - routines to convert transform arguments into 4X4 matrix. * - * 1/28/86 + * External symbols declared in standard.h */ +#include "copyright.h" + #include "standard.h" #define d2r(a) ((PI/180.)*(a)) @@ -68,7 +67,7 @@ char *av[]; m4[1][0] = -(m4[0][1] = sin(dtmp)); break; default: - return(i); + goto done; } break; @@ -101,7 +100,7 @@ char *av[]; m4[2][2] = -1.0; break; default: - return(i); + goto done; } break; @@ -117,7 +116,7 @@ char *av[]; continue; default: - return(i); + goto done; } multmat4(xfmat, xfmat, m4); @@ -182,7 +181,7 @@ char *av[]; m4[1][0] = -(m4[0][1] = sin(dtmp)); break; default: - return(i); + goto done; } break; @@ -215,7 +214,7 @@ char *av[]; m4[2][2] = -1.0; break; default: - return(i); + goto done; } break; @@ -231,7 +230,7 @@ char *av[]; break; default: - return(i); + goto done; } multmat4(xfmat, m4, xfmat); /* left multiply */