diff options
author | wiz <wiz@pkgsrc.org> | 2001-05-22 11:37:16 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2001-05-22 11:37:16 +0000 |
commit | 9124d4437956ec7e62489ff10fa2da1f2f3bee5b (patch) | |
tree | 27e3fa90b32d986770fcc83a89be23b06b7b7ec6 /editors/joe/patches/patch-ab | |
parent | cdbbbdcfbff5c4c8e3517d6a6157c71bcc67277d (diff) | |
download | pkgsrc-9124d4437956ec7e62489ff10fa2da1f2f3bee5b.tar.gz |
Standardize patches (no functional change)
Diffstat (limited to 'editors/joe/patches/patch-ab')
-rw-r--r-- | editors/joe/patches/patch-ab | 76 |
1 files changed, 12 insertions, 64 deletions
diff --git a/editors/joe/patches/patch-ab b/editors/joe/patches/patch-ab index abee2f894cf..edf91acefd6 100644 --- a/editors/joe/patches/patch-ab +++ b/editors/joe/patches/patch-ab @@ -1,65 +1,13 @@ -$NetBSD: patch-ab,v 1.2 1998/08/07 10:40:32 agc Exp $ +$NetBSD: patch-ab,v 1.3 2001/05/22 11:37:16 wiz Exp $ -*** main.c.old Sun Jan 22 03:21:08 1995 ---- main.c Tue Oct 15 16:54:32 1996 -*************** -*** 18,23 **** ---- 18,27 ---- - - #include <stdio.h> - #include <fcntl.h> -+ #if defined(__FreeBSD__) || defined(__NetBSD__) -+ #include <locale.h> -+ #include <ctype.h> -+ #endif - #include "config.h" - #include "w.h" - #include "tty.h" -*************** -*** 186,191 **** ---- 190,209 ---- - #else - run=namprt(argv[0]); - #endif -+ -+ #if defined(__FreeBSD__) || defined(__NetBSD__) -+ setlocale(LC_ALL, ""); -+ for(c=0;c<256;c++) -+ { int a=0; -+ if(iscntrl(c)) -+ a|=UNDERLINE; -+ if((c&0x80)&&!isprint(c)) -+ a|=INVERSE; -+ xlata[c]=a; -+ if(isprint(c)) -+ xlatc[c]=c; -+ } -+ #endif - - if(s=getenv("LINES")) sscanf(s,"%d",&lines); - if(s=getenv("COLUMNS")) sscanf(s,"%d",&columns); -*** scrn.h.old Thu Oct 6 10:09:04 1994 ---- scrn.h Tue Oct 15 16:42:29 1996 -*************** -*** 254,263 **** - - #define xlat(a,c) \ - ( \ -! (dspasis && ((unsigned)(c)>=128)) ? \ - ((a)=0) \ - : \ -! (((a)=xlata[(unsigned)(c)]), ((c)=xlatc[(unsigned)(c)])) \ - ) - - /* int eraeol(SCRN *t,int x,int y); ---- 254,263 ---- - - #define xlat(a,c) \ - ( \ -! (dspasis && ((unsigned char)(c)>=128)) ? \ - ((a)=0) \ - : \ -! (((a)=xlata[(unsigned char)(c)]), ((c)=xlatc[(unsigned char)(c)])) \ - ) - - /* int eraeol(SCRN *t,int x,int y); +--- b.c.orig Fri Jan 20 09:38:25 1995 ++++ b.c +@@ -1928,7 +1928,7 @@ + if(s[0]=='!') pclose(f); + else + #endif +- if(zcmp(s,"-")) fclose(f); ++ if(zcmp(s,"-")) { if (fclose(f)) return error = -5; } + else fflush(f); + + opnerr:; |