ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/meta/lib4014/subr.c
(Generate patch)

Comparing ray/src/meta/lib4014/subr.c (file contents):
Revision 1.1 by greg, Sat Feb 22 02:07:26 2003 UTC vs.
Revision 1.3 by schorsch, Sun Mar 28 20:33:13 2004 UTC

# Line 1 | Line 1
1   #ifndef lint
2   static const char       RCSid[] = "$Id$";
3   #endif
4 #ifndef lint
5 static char sccsid[] = "@(#)subr.c      4.1 (Berkeley) 6/27/83";
6 #endif
4  
5   #include <stdio.h>
6 +
7 + #include "local4014.h"
8 + #include "lib4014.h"
9 +
10   float obotx = 0.;
11   float oboty = 0.;
12   float botx = 0.;
# Line 18 | Line 19 | int oloy = -1;
19   int ohiy = -1;
20   int ohix = -1;
21   int oextra = -1;
22 < cont(x,y){
22 >
23 > extern void
24 > cont(
25 >        int x,
26 >        int y
27 > )
28 > {
29          int hix,hiy,lox,loy,extra;
30          int n;
31          x = (x-obotx)*scalex + botx;
# Line 27 | Line 34 | cont(x,y){
34          hiy=(y>>7) & 037;
35          lox = (x>>2)&037;
36          loy=(y>>2)&037;
37 <        extra=x&03+(y<<2)&014;
37 >        extra=x&(03+(y<<2))&014;
38          n = (abs(hix-ohix) + abs(hiy-ohiy) + 6) / 12;
39          if(hiy != ohiy){
40                  putch(hiy|040);
# Line 60 | Line 67 | cont(x,y){
67                  putch(0);
68   }
69  
70 < putch(c){
70 > extern void
71 > putch(
72 >        int c
73 > )
74 > {
75          putc(c,stdout);
76   }
77 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines