1/* RCS common definitions and data structures */
2
3#define RCSBASE "$Id: rcsbase.h,v 1.8 1997/02/22 15:47:33 peter Exp $"
4
5/* Copyright 1982, 1988, 1989 Walter Tichy
6 Copyright 1990, 1991, 1992, 1993, 1994, 1995 Paul Eggert
7 Distributed under license by the Free Software Foundation, Inc.
8
9This file is part of RCS.
10
11RCS is free software; you can redistribute it and/or modify
--- 409 unchanged lines hidden (view full) ---
421#define IDH "Id"
422#define LOCKER "Locker"
423#define LOG "Log"
424#define NAME "Name"
425#define RCSFILE "RCSfile"
426#define REVISION "Revision"
427#define SOURCE "Source"
428#define STATE "State"
429#define CVSHEADER "CVSHeader"
430#define keylength 9 /* max length of any of the above keywords */
431
432enum markers { Nomatch, Author, Date, Header, Id,
433 Locker, Log, Name, RCSfile, Revision, Source, State, CVSHeader,
434 LocalId };
435 /* This must be in the same order as rcskeys.c's Keyword[] array. */
436
437#define DELNUMFORM "\n\n%s\n%s\n"
438/* used by putdtext and scanlogtext */
439
440#define EMPTYLOG "*** empty log message ***" /* used by ci and rlog */
441
442/* main program */
--- 54 unchanged lines hidden (view full) ---
497extern char const *RCSname;
498extern char const *suffixes;
499extern int fdlock;
500extern struct stat RCSstat;
501RILE *rcsreadopen P((struct buf*,struct stat*,int));
502char *bufenlarge P((struct buf*,char const**));
503char const *basefilename P((char const*));
504char const *getfullRCSname P((void));
505char const *getfullCVSname P((void));
506char const *maketemp P((int));
507char const *rcssuffix P((char const*));
508int pairnames P((int,char**,RILE*(*)P((struct buf*,struct stat*,int)),int,int));
509struct cbuf bufremember P((struct buf*,size_t));
510void bufalloc P((struct buf*,size_t));
511void bufautoend P((struct buf*));
512void bufrealloc P((struct buf*,size_t));
513void bufscat P((struct buf*,char const*));
--- 14 unchanged lines hidden (view full) ---
528void putdftext P((struct hshentry const*,RILE*,FILE*,int));
529
530/* rcskeep */
531extern int prevkeys;
532extern struct buf prevauthor, prevdate, prevname, prevrev, prevstate;
533int getoldkeys P((RILE*));
534
535/* rcskeys */
536extern char const *Keyword[];
537extern enum markers LocalIdMode;
538enum markers trymatch P((char const*));
539void setRCSLocalId(char const *);
540void setIncExc(char const *);
541
542/* rcslex */
543extern FILE *foutptr;
544extern FILE *frewrite;
545extern RILE *finptr;
546extern char const *NextString;
547extern enum tokens nexttok;
548extern int hshenter;
--- 214 unchanged lines hidden ---
2
3#define RCSBASE "$Id: rcsbase.h,v 1.8 1997/02/22 15:47:33 peter Exp $"
4
5/* Copyright 1982, 1988, 1989 Walter Tichy
6 Copyright 1990, 1991, 1992, 1993, 1994, 1995 Paul Eggert
7 Distributed under license by the Free Software Foundation, Inc.
8
9This file is part of RCS.
10
11RCS is free software; you can redistribute it and/or modify
--- 409 unchanged lines hidden (view full) ---
421#define IDH "Id"
422#define LOCKER "Locker"
423#define LOG "Log"
424#define NAME "Name"
425#define RCSFILE "RCSfile"
426#define REVISION "Revision"
427#define SOURCE "Source"
428#define STATE "State"
429#define CVSHEADER "CVSHeader"
430#define keylength 9 /* max length of any of the above keywords */
431
432enum markers { Nomatch, Author, Date, Header, Id,
433 Locker, Log, Name, RCSfile, Revision, Source, State, CVSHeader,
434 LocalId };
435 /* This must be in the same order as rcskeys.c's Keyword[] array. */
436
437#define DELNUMFORM "\n\n%s\n%s\n"
438/* used by putdtext and scanlogtext */
439
440#define EMPTYLOG "*** empty log message ***" /* used by ci and rlog */
441
442/* main program */
--- 54 unchanged lines hidden (view full) ---
497extern char const *RCSname;
498extern char const *suffixes;
499extern int fdlock;
500extern struct stat RCSstat;
501RILE *rcsreadopen P((struct buf*,struct stat*,int));
502char *bufenlarge P((struct buf*,char const**));
503char const *basefilename P((char const*));
504char const *getfullRCSname P((void));
505char const *getfullCVSname P((void));
506char const *maketemp P((int));
507char const *rcssuffix P((char const*));
508int pairnames P((int,char**,RILE*(*)P((struct buf*,struct stat*,int)),int,int));
509struct cbuf bufremember P((struct buf*,size_t));
510void bufalloc P((struct buf*,size_t));
511void bufautoend P((struct buf*));
512void bufrealloc P((struct buf*,size_t));
513void bufscat P((struct buf*,char const*));
--- 14 unchanged lines hidden (view full) ---
528void putdftext P((struct hshentry const*,RILE*,FILE*,int));
529
530/* rcskeep */
531extern int prevkeys;
532extern struct buf prevauthor, prevdate, prevname, prevrev, prevstate;
533int getoldkeys P((RILE*));
534
535/* rcskeys */
536extern char const *Keyword[];
537extern enum markers LocalIdMode;
538enum markers trymatch P((char const*));
539void setRCSLocalId(char const *);
540void setIncExc(char const *);
541
542/* rcslex */
543extern FILE *foutptr;
544extern FILE *frewrite;
545extern RILE *finptr;
546extern char const *NextString;
547extern enum tokens nexttok;
548extern int hshenter;
--- 214 unchanged lines hidden ---