summaryrefslogtreecommitdiff
path: root/sysutils/pcvt-utils/patches/patch-ah
blob: 5ff2de5fa737564648b386a5c4c594adb4bfafb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
$NetBSD: patch-ah,v 1.1 2004/05/23 22:47:54 kristerw Exp $

--- fontedit/fontedit.c.orig	2004-05-24 00:36:58.000000000 +0200
+++ fontedit/fontedit.c	2004-05-24 00:39:38.000000000 +0200
@@ -26,10 +26,10 @@
 #include <stdio.h>
 #ifdef SYSV
 #include <sys/termio.h>
-#endif SYSV
+#endif /* SYSV */
 #ifdef BSD
 #include <sys/ioctl.h>
-#endif BSD
+#endif /* BSD */
 #if defined (__NetBSD__) || defined (__FreeBSD__)
 #include <sys/termios.h>
 #include <sys/ioctl.h>
@@ -39,7 +39,7 @@
 #ifdef CURFIX
 #define CURSORON  "\033[?25h"
 #define CURSOROFF "\033[?25l"
-#endif CURFIX
+#endif /* CURFIX */
 
 #define	MAX_ROWS	10
 #define	MAX_COLS	8
@@ -103,10 +103,10 @@
 
 #ifdef SYSV
 struct termio old_stty, new_stty;
-#endif SYSV
+#endif /* SYSV */
 #ifdef BSD
 struct sgttyb old_stty, new_stty;
-#endif BSD
+#endif /* BSD */
 #if defined (__NetBSD__) || defined (__FreeBSD__)
 struct termios old_stty, new_stty;
 #endif /* __NetBSD__ || __FreeBSD__ */
@@ -123,13 +123,13 @@
 	void clear_screen();
 #ifdef CURFIX
         printf("%s\n",CURSORON);   
-#endif CURFIX   
+#endif /* CURFIX */
 #ifdef SYSV
 	ioctl( 0, TCSETA, &old_stty );
-#endif SYSV
+#endif /* SYSV */
 #ifdef BSD
         ioctl( 0, TIOCSETP, &old_stty );
-#endif BSD
+#endif /* BSD */
 #if defined (__NetBSD__) || defined (__FreeBSD__)
         ioctl( 0, TIOCSETA, &old_stty );
 #endif /* __NetBSD__ || __FreeBSD__ */
@@ -180,13 +180,13 @@
 	}
 #ifdef CURFIX
         printf("%s\n",CURSOROFF);
-#endif CURFIX
+#endif /* CURFIX */
 #ifdef SYSV
 	ioctl( 0, TCGETA, &old_stty );
-#endif SYSV
+#endif /* SYSV */
 #ifdef BSD
         ioctl( 0, TIOCGETP, &old_stty );
-#endif BSD
+#endif /* BSD */
 #if defined (__NetBSD__) || defined (__FreeBSD__)
         ioctl( 0, TIOCGETA, &old_stty );
 #endif /* __NetBSD__ || __FreeBSD__ */
@@ -196,7 +196,7 @@
 	new_stty.c_lflag &= ~ICANON;
 	new_stty.c_cc[VMIN] = 1;
 	ioctl( 0, TCSETA, &new_stty );
-#endif SYSV
+#endif /* SYSV */
 #if defined (__NetBSD__) || defined (__FreeBSD__)
 	new_stty.c_lflag &= ~ICANON;
         new_stty.c_lflag &= ~ECHO;
@@ -207,17 +207,17 @@
 	new_stty.sg_flags |= CBREAK;               
         new_stty.sg_flags &= ~ECHO;
 	ioctl( 0, TIOCSETP, &new_stty );
-#endif BSD
+#endif /* BSD */
 	current_entry = 1;
 	extract_entry( current_entry );
 	init_restore();
 	command();
 #ifdef SYSV
 	ioctl( 0, TCSETA, &old_stty );
-#endif SYSV
+#endif /* SYSV */
 #ifdef BSD
 	ioctl( 0, TIOCSETP, &old_stty );
-#endif BSD
+#endif /* BSD */
 #if defined (__NetBSD__) || defined (__FreeBSD__)
 	ioctl( 0, TIOCSETA, &old_stty );
 #endif /* __NetBSD__ || __FreeBSD__ */
@@ -230,7 +230,7 @@
 	fclose( font_file );
 #ifdef CURFIX
         printf("%s\n",CURSORON);
-#endif CURFIX
+#endif /* CURFIX */
 }