ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/meta/lib4014/linemod.c
Revision: 1.2
Committed: Sat Nov 15 02:13:37 2003 UTC (21 years, 6 months ago) by schorsch
Content type: text/plain
Branch: MAIN
CVS Tags: rad3R6P1, rad3R6
Changes since 1.1: +8 -6 lines
Log Message:
Continued ANSIfication, and reduced other compile warnings.

File Contents

# User Rev Content
1 greg 1.1 #ifndef lint
2 schorsch 1.2 static const char RCSid[] = "$Id: linemod.c,v 1.1 2003/02/22 02:07:26 greg Exp $";
3 greg 1.1 #endif
4    
5 schorsch 1.2 #include "local4014.h"
6     #include "lib4014.h"
7    
8     extern void
9     linemod(
10     char *s
11     )
12 greg 1.1 {
13     char c;
14     putch(033);
15     switch(s[0]){
16     case 'l':
17     c = 'd';
18     break;
19     case 'd':
20     if(s[3] != 'd')c='a';
21     else c='b';
22     break;
23     case 's':
24     if(s[5] != '\0')c='c';
25     else c='`';
26     }
27     putch(c);
28     }