"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "ved/ved.c" between
schily-2021-08-14.tar.bz2 and schily-2021-09-18.tar.bz2

About: Schily Tools are a collection of programs like cdrecord, cdda2wav, mkisofs, star and much more. In memoriam of the author Jörg Schilling, who passed away in October 2021.

ved.c  (schily-2021-08-14.tar.bz2):ved.c  (schily-2021-09-18.tar.bz2)
/* @(#)ved.c 1.93 21/07/07 Copyright 1984, 85, 86, 88, 89, 97, 2000-2021 J. Sc hilling */ /* @(#)ved.c 1.94 21/08/20 Copyright 1984, 85, 86, 88, 89, 97, 2000-2021 J. Sc hilling */
#include <schily/mconfig.h> #include <schily/mconfig.h>
#ifndef lint #ifndef lint
static UConst char sccsid[] = static UConst char sccsid[] =
"@(#)ved.c 1.93 21/07/07 Copyright 1984, 85, 86, 88, 89, 97, 2000-20 21 J. Schilling"; "@(#)ved.c 1.94 21/08/20 Copyright 1984, 85, 86, 88, 89, 97, 2000-20 21 J. Schilling";
#endif #endif
/* /*
* VED Visual EDitor * VED Visual EDitor
* *
* Copyright (c) 1984, 85, 86, 88, 89, 97, 2000-2021 J. Schilling * Copyright (c) 1984, 85, 86, 88, 89, 97, 2000-2021 J. Schilling
*/ */
/* /*
* The contents of this file are subject to the terms of the * The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only * Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance * (the "License"). You may not use this file except in compliance
skipping to change at line 39 skipping to change at line 39
* The following include files are available: * The following include files are available:
* *
* buffer.h - for users of the paged virtual memory package * buffer.h - for users of the paged virtual memory package
* func.h - definitions for exported functions (included by ved.h) * func.h - definitions for exported functions (included by ved.h)
* map.h - for users ot the mapper package * map.h - for users ot the mapper package
* movedot.h - definitions for functions used in movedot.c * movedot.h - definitions for functions used in movedot.c
* terminal.h - external interface to the TERMCAP package * terminal.h - external interface to the TERMCAP package
* ttys.h - internal interface to the TERMCAP package * ttys.h - internal interface to the TERMCAP package
* ved.h - main ved include file (includes func.h) * ved.h - main ved include file (includes func.h)
*/ */
#define GT_COMERR /* #define comerr gtcomerr */
#define GT_ERROR /* #define error gterror */
#include "ved.h" #include "ved.h"
#include "buffer.h" #include "buffer.h"
#include "movedot.h" #include "movedot.h"
#include "terminal.h" #include "terminal.h"
#include "version.h" #include "version.h"
#include <schily/errno.h> #include <schily/errno.h>
#include <schily/signal.h> #include <schily/signal.h>
#include <schily/sigblk.h> #include <schily/sigblk.h>
EXPORT char ved_version[] = VERSION; EXPORT char ved_version[] = VERSION;
skipping to change at line 139 skipping to change at line 141
Uchar *errstr; Uchar *errstr;
SIGBLK sigblk; SIGBLK sigblk;
SIGBLK sigfirst; SIGBLK sigfirst;
int err; int err;
char *searchstr = NULL; char *searchstr = NULL;
ewin_t *wp = &rootwin; ewin_t *wp = &rootwin;
BOOL no_dos = FALSE; BOOL no_dos = FALSE;
save_args(ac, av); save_args(ac, av);
(void) setlocale(LC_ALL, "");
#ifdef USE_NLS
#if !defined(TEXT_DOMAIN) /* Should be defined by cc -D */
#define TEXT_DOMAIN "ved" /* Use this only if it weren't */
#endif
{ char *dir;
dir = searchfileinpath("share/locale", F_OK,
SIP_ANY_FILE|SIP_NO_PATH, NULL);
if (dir)
(void) bindtextdomain(TEXT_DOMAIN, dir);
else
#if defined(PROTOTYPES) && defined(INS_BASE)
(void) bindtextdomain(TEXT_DOMAIN, INS_BASE "/share/locale");
#else
(void) bindtextdomain(TEXT_DOMAIN, "/usr/share/locale");
#endif
(void) textdomain(TEXT_DOMAIN);
}
#endif /* USE_NLS */
cav = av, cac = ac; cav = av, cac = ac;
++cav, --cac; ++cav, --cac;
if (getallargs(&cac, &cav, opts, if (getallargs(&cac, &cav, opts,
&help, &prvers, &help, &prvers,
&ReadOnly, &ReadOnly, &ReadOnly, &ReadOnly,
&Vhelp, &Vhelp, &Vhelp, &Vhelp, &Vhelp, &Vhelp,
&buffers, &buffers, &buffers, &buffers,
&nobak, &nobak, &nobak, &nobak,
&nolock, &nolock,
skipping to change at line 163 skipping to change at line 186
&wp->maxlinelen, &wp->maxlinelen, &wp->maxlinelen, &wp->maxlinelen,
&startline, &searchstr, &startline, &searchstr,
&noedtmp, &noedtmp, &noedtmp, &noedtmp,
&recover, &recover) < 0) { &recover, &recover) < 0) {
errmsgno(EX_BAD, "Bad flag '%s'.\n", cav[0]); errmsgno(EX_BAD, "Bad flag '%s'.\n", cav[0]);
usage(EX_BAD); usage(EX_BAD);
} }
if (help) if (help)
usage(0); usage(0);
if (prvers) { if (prvers) {
printf("ved %s %s (%s-%s-%s)\n\n", gtprintf("ved %s %s (%s-%s-%s)\n\n",
ved_version, VERSION_DATE, ved_version, VERSION_DATE,
HOST_CPU, HOST_VENDOR, HOST_OS); HOST_CPU, HOST_VENDOR, HOST_OS);
printf("Copyright (C) 1984, 85, 86, 88, 89, 97, 2000-2021 Jörg Sc gtprintf("Copyright (C) 1984, 85, 86, 88, 89, 97, 2000-2021 %s\n"
hilling\n"); , _("Jörg Schilling"));
printf("This is free software; see the source for copying conditi gtprintf("This is free software; see the source for copying condi
ons. There is NO\n"); tions. There is NO\n");
printf("warranty; not even for MERCHANTABILITY or FITNESS FOR A P gtprintf("warranty; not even for MERCHANTABILITY or FITNESS FOR A
ARTICULAR PURPOSE.\n"); PARTICULAR PURPOSE.\n");
exit(0); exit(0);
} }
if (Vhelp) { if (Vhelp) {
ReadOnly = 2; /* Do not even allow QUIT ! */ ReadOnly = 2; /* Do not even allow QUIT ! */
noedtmp = 1; noedtmp = 1;
} }
if (searchstr) { if (searchstr) {
extern Uchar sbuf[]; extern Uchar sbuf[];
extern int sflg; extern int sflg;
strcpy(C sbuf, searchstr); strcpy(C sbuf, searchstr);
 End of changes. 6 change blocks. 
9 lines changed or deleted 32 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)