summaryrefslogtreecommitdiff
path: root/editors/joe2/files/patch-ab
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1999-12-25 02:22:53 +0000
committerSteve Price <steve@FreeBSD.org>1999-12-25 02:22:53 +0000
commitac538b4f47e3e1f0c69e6a48eb8f066aae917c3c (patch)
treea60f072c56eee34d34cc6dd866ebc5bed3125443 /editors/joe2/files/patch-ab
parentUnbreak mc (diff)
Use file locking similar to vi.
PR: 15330 Submitted by: Oliver Breuninger <ob@seicom.net>
Notes
Notes: svn path=/head/; revision=24032
Diffstat (limited to 'editors/joe2/files/patch-ab')
-rw-r--r--editors/joe2/files/patch-ab100
1 files changed, 37 insertions, 63 deletions
diff --git a/editors/joe2/files/patch-ab b/editors/joe2/files/patch-ab
index 8268c6c9d4a7..7d9fed0e9226 100644
--- a/editors/joe2/files/patch-ab
+++ b/editors/joe2/files/patch-ab
@@ -1,63 +1,37 @@
-*** 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>
-+ #ifdef __FreeBSD__
-+ #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
-+
-+ #ifdef __FreeBSD__
-+ 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);
+--- main.c.orig Sun Jan 22 01:21:08 1995
++++ main.c Tue Dec 7 13:57:42 1999
+@@ -19,4 +19,8 @@
+ #include <stdio.h>
+ #include <fcntl.h>
++#ifdef __FreeBSD__
++#include <locale.h>
++#include <ctype.h>
++#endif
+ #include "config.h"
+ #include "w.h"
+@@ -188,4 +192,18 @@
+ #endif
+
++#ifdef __FreeBSD__
++ 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);
+@@ -366,5 +384,5 @@
+ if(help) helpon(maint);
+ if(!nonotice)
+- msgnw(lastw(maint)->object,"\\i** Joe's Own Editor v2.8 ** Copyright (C) 1995 Joseph H. Allen **\\i");
++ msgnw(lastw(maint)->object,"\\i** Joe's Own Editor v2.8l ** Copyright (C) 1995 Joseph H. Allen **\\i");
+ edloop(0);
+ vclose(vmem);