Tue Dec 25 21:10:56 2012 UTC ()
Use more void and system headers.


(joerg)
diff -r1.9 -r1.10 pkgsrc/editors/mg2a/distinfo
diff -r1.2 -r1.3 pkgsrc/editors/mg2a/patches/patch-ae
diff -r1.2 -r1.3 pkgsrc/editors/mg2a/patches/patch-an

cvs diff -r1.9 -r1.10 pkgsrc/editors/mg2a/distinfo (expand / switch to unified diff)

--- pkgsrc/editors/mg2a/distinfo 2012/01/24 20:38:55 1.9
+++ pkgsrc/editors/mg2a/distinfo 2012/12/25 21:10:55 1.10
@@ -1,23 +1,23 @@ @@ -1,23 +1,23 @@
1$NetBSD: distinfo,v 1.9 2012/01/24 20:38:55 joerg Exp $ 1$NetBSD: distinfo,v 1.10 2012/12/25 21:10:55 joerg Exp $
2 2
3SHA1 (mg2a.tar.Z) = c96f890f217eaacb78117f9c73f1ea3709ca8d3f 3SHA1 (mg2a.tar.Z) = c96f890f217eaacb78117f9c73f1ea3709ca8d3f
4RMD160 (mg2a.tar.Z) = 7083ec8b49eb89d1389dabfb915859af2bb40ee1 4RMD160 (mg2a.tar.Z) = 7083ec8b49eb89d1389dabfb915859af2bb40ee1
5Size (mg2a.tar.Z) = 383255 bytes 5Size (mg2a.tar.Z) = 383255 bytes
6SHA1 (patch-aa) = d10d168a9f224cd2dfd15fe28876f55e7073e4d2 6SHA1 (patch-aa) = d10d168a9f224cd2dfd15fe28876f55e7073e4d2
7SHA1 (patch-ab) = c62b733dc0247ddff65a544c4a5f9593ee324472 7SHA1 (patch-ab) = c62b733dc0247ddff65a544c4a5f9593ee324472
8SHA1 (patch-ac) = 6ef1d0bc88241756cdd3a66050ebfaaf353edcdb 8SHA1 (patch-ac) = 6ef1d0bc88241756cdd3a66050ebfaaf353edcdb
9SHA1 (patch-ad) = d83892a713d75d830f553e58632d2fde55e53cc4 9SHA1 (patch-ad) = d83892a713d75d830f553e58632d2fde55e53cc4
10SHA1 (patch-ae) = 025873e653403c6c2141db351bd058c6ed2c2e99 10SHA1 (patch-ae) = 13c976df16c34acffc14615d29ad91a3bdacd716
11SHA1 (patch-af) = fa6e22c0d2c12ca349af2887b606954e4e016269 11SHA1 (patch-af) = fa6e22c0d2c12ca349af2887b606954e4e016269
12SHA1 (patch-ag) = e8bcbc0cba9cdf989b93d280e108de167281f262 12SHA1 (patch-ag) = e8bcbc0cba9cdf989b93d280e108de167281f262
13SHA1 (patch-ah) = 1041e9060e70fbe3e483823a4ab38018c8ce2069 13SHA1 (patch-ah) = 1041e9060e70fbe3e483823a4ab38018c8ce2069
14SHA1 (patch-ai) = fc3d195c0fb3c68cac29c0d7506068b5bca9a847 14SHA1 (patch-ai) = fc3d195c0fb3c68cac29c0d7506068b5bca9a847
15SHA1 (patch-aj) = b219efdc662459602d491cf0e700434a661ce1d7 15SHA1 (patch-aj) = b219efdc662459602d491cf0e700434a661ce1d7
16SHA1 (patch-al) = b8595b33d45b73b709bcdbf1d2e255d57f02735b 16SHA1 (patch-al) = b8595b33d45b73b709bcdbf1d2e255d57f02735b
17SHA1 (patch-am) = 3544b6609262899aabd0c0b7a29fdaeee3413d5f 17SHA1 (patch-am) = 3544b6609262899aabd0c0b7a29fdaeee3413d5f
18SHA1 (patch-an) = faf386a6ba58793f286aae1e372e318d77f6daa3 18SHA1 (patch-an) = 77e7d17b8581b9ed72b3d514783bd41557d9b310
19SHA1 (patch-ao) = ebe3ad41e0ad49aa4ea6fe571dbf360af8c70a96 19SHA1 (patch-ao) = ebe3ad41e0ad49aa4ea6fe571dbf360af8c70a96
20SHA1 (patch-ap) = 49aca14c3ee0b1c3c84f3920eb875ec8700f9128 20SHA1 (patch-ap) = 49aca14c3ee0b1c3c84f3920eb875ec8700f9128
21SHA1 (patch-aq) = 1deef2a00054de186cd73f7d864c5764a41dc2b0 21SHA1 (patch-aq) = 1deef2a00054de186cd73f7d864c5764a41dc2b0
22SHA1 (patch-as) = bcdca9ca43ab34f51a623a5f0f385e62ce7125bf 22SHA1 (patch-as) = bcdca9ca43ab34f51a623a5f0f385e62ce7125bf
23SHA1 (patch-at) = c585ce4f8cea93faf55de2c144167dc678bb0d62 23SHA1 (patch-at) = c585ce4f8cea93faf55de2c144167dc678bb0d62

cvs diff -r1.2 -r1.3 pkgsrc/editors/mg2a/patches/patch-ae (expand / switch to unified diff)

--- pkgsrc/editors/mg2a/patches/patch-ae 2000/07/10 18:26:54 1.2
+++ pkgsrc/editors/mg2a/patches/patch-ae 2012/12/25 21:10:56 1.3
@@ -1,14 +1,32 @@ @@ -1,14 +1,32 @@
1$NetBSD: patch-ae,v 1.2 2000/07/10 18:26:54 tron Exp $ 1$NetBSD: patch-ae,v 1.3 2012/12/25 21:10:56 joerg Exp $
2 2
3--- sys/default/tty.c.orig Sun Jul 3 10:50:35 1988 3--- sys/default/tty.c.orig 1988-07-03 17:50:35.000000000 +0000
4+++ sys/default/tty.c Wed May 31 16:36:31 2000 4+++ sys/default/tty.c
5@@ -144,7 +144,8 @@ 5@@ -144,7 +144,8 @@ ttinit() {
6 #endif 6 #endif
7  7
8 if(CM == NULL || UP == NULL) 8 if(CM == NULL || UP == NULL)
9- panic("This terminal is to stupid to run MicroGnuEmacs\n"); 9- panic("This terminal is to stupid to run MicroGnuEmacs\n");
10+/* panic("This terminal is to stupid to run MicroGnuEmacs\n"); refling */ 10+/* panic("This terminal is to stupid to run MicroGnuEmacs\n"); refling */
11+ panic("This terminal setting is not supported by MicroGnuEmacs.\n"); // refling 11+ panic("This terminal setting is not supported by MicroGnuEmacs.\n"); // refling
12 ttresize(); /* set nrow & ncol */ 12 ttresize(); /* set nrow & ncol */
13  13
14 /* watch out for empty capabilities (sure to be wrong) */ 14 /* watch out for empty capabilities (sure to be wrong) */
 15@@ -259,7 +260,7 @@ ttbeep() {
 16 * If no scrolling region, use a set
 17 * of insert and delete line sequences
 18 */
 19-ttinsl(row, bot, nchunk) {
 20+void ttinsl(int row, int bot, int nchunk) {
 21 register int i, nl;
 22
 23 if (row == bot) { /* Case of one line insert is */
 24@@ -298,7 +299,7 @@ ttinsl(row, bot, nchunk) {
 25 * lines. The presence of the echo area makes a
 26 * boundry condition go away.
 27 */
 28-ttdell(row, bot, nchunk)
 29+void ttdell(int row, int bot, int nchunk)
 30 {
 31 register int i, nl;
 32

cvs diff -r1.2 -r1.3 pkgsrc/editors/mg2a/patches/patch-an (expand / switch to unified diff)

--- pkgsrc/editors/mg2a/patches/patch-an 2005/12/09 15:26:52 1.2
+++ pkgsrc/editors/mg2a/patches/patch-an 2012/12/25 21:10:56 1.3
@@ -1,18 +1,24 @@ @@ -1,18 +1,24 @@
1$NetBSD: patch-an,v 1.2 2005/12/09 15:26:52 joerg Exp $ 1$NetBSD: patch-an,v 1.3 2012/12/25 21:10:56 joerg Exp $
2 2
3--- def.h.orig 1988-07-03 17:50:05.000000000 +0000 3--- def.h.orig 1988-07-03 17:50:05.000000000 +0000
4+++ def.h 4+++ def.h
5@@ -288,7 +288,7 @@ extern WINDOW *popbuf(); 5@@ -288,7 +288,7 @@ extern WINDOW *popbuf();
6 extern WINDOW *wpopup(); 6 extern WINDOW *wpopup();
7 extern LINE *lalloc(); 7 extern LINE *lalloc();
8 extern LINE *lallocx(); 8 extern LINE *lallocx();
9-extern VOID ewprintf(); 9-extern VOID ewprintf();
10+extern VOID ewprintf(char *, ...); 10+extern VOID ewprintf(char *, ...);
11 extern int nrow; 11 extern int nrow;
12 extern int ncol; 12 extern int ncol;
13 extern int ttrow; 13 extern int ttrow;
14@@ -308,4 +308,3 @@ extern VOID lchange(); 14@@ -306,6 +306,7 @@ extern VOID lchange();
 15 /*
 16 * Standard I/O.
15 */ 17 */
16 extern char *strcpy(); 18-extern char *strcpy();
17 extern char *strcat(); 19-extern char *strcat();
18-extern char *malloc(); 20-extern char *malloc();
 21+void ttinsl(int, int, int);
 22+void ttdell(int, int, int);
 23+
 24+#include <string.h>