| Revision: | 1.2 |
| Committed: | Sat Nov 15 02:13:37 2003 UTC (22 years, 1 month 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. |
| # | Content |
|---|---|
| 1 | #ifndef lint |
| 2 | static const char RCSid[] = "$Id: linemod.c,v 1.1 2003/02/22 02:07:26 greg Exp $"; |
| 3 | #endif |
| 4 | |
| 5 | #include "local4014.h" |
| 6 | #include "lib4014.h" |
| 7 | |
| 8 | extern void |
| 9 | linemod( |
| 10 | char *s |
| 11 | ) |
| 12 | { |
| 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 | } |