SCCS-vsn: local/sccscmds/sccscmds.2/com/date_ab.c 4.4
SCCS-vsn: local/sccscmds/sccscmds.ok/com/date_ab.c 4.4
SCCS-vsn: local/sccscmds/sccscmds.2/com/dohist.c 1.3
SCCS-vsn: local/sccscmds/sccscmds.ok/com/dohist.c 1.3
SCCS-vsn: local/sccscmds/sccscmds.2/com/dolist.c 4.3
SCCS-vsn: local/sccscmds/sccscmds.ok/com/dolist.c 4.3
SCCS-vsn: local/sccscmds/sccscmds.2/com/getline.c 1.2
SCCS-vsn: local/sccscmds/sccscmds.ok/com/getline.c 1.2
SCCS-vsn: local/sccscmds/sccscmds.2/com/pf_ab.c 1.4
SCCS-vsn: local/sccscmds/sccscmds.ok/com/pf_ab.c 1.4
SCCS-vsn: local/sccscmds/sccscmds.2/com/putline.c 1.2
SCCS-vsn: local/sccscmds/sccscmds.ok/com/putline.c 1.2
SCCS-vsn: local/sccscmds/sccscmds.2/com/rdmod.c 1.2
SCCS-vsn: local/sccscmds/sccscmds.ok/com/rdmod.c 1.2
SCCS-vsn: local/sccscmds/sccscmds.2/com/setup.c 1.3
SCCS-vsn: local/sccscmds/sccscmds.ok/com/setup.c 1.3
16 files changed:
# include "../hdr/macros.h"
# include "../hdr/macros.h"
-SCCSID(@(#)date_ab.c 4.3);
+static char Sccsid[] = "@(#)date_ab.c 4.4 %G%";
/*
Function to convert date in the form "yymmddhhmmss" to
/*
Function to convert date in the form "yymmddhhmmss" to
if(s<0 || s>59) return(-1);
tim = 0L;
if(s<0 || s>59) return(-1);
tim = 0L;
- tim =+ mosize(y,t);
- tim =+ d - 1;
- tim =* 24;
- tim =+ h;
- tim =* 60;
- tim =+ m;
- tim =+ timeb.timezone; /* GMT correction */
- tim =* 60;
- tim =+ s;
+ tim += mosize(y,t);
+ tim += d - 1;
+ tim *= 24;
+ tim += h;
+ tim *= 60;
+ tim += m;
+ tim += timeb.timezone; /* GMT correction */
+ tim *= 60;
+ tim += s;
- tim =+ -1*60*60; /* daylight savings */
+ tim += -1*60*60; /* daylight savings */
if (*p) {
c = (*p++ - '0') * 10;
if (*p)
if (*p) {
c = (*p++ - '0') * 10;
if (*p)
# include "../hdr/defines.h"
# include "../hdr/defines.h"
+static char Sccsid[] = "@(#)dohist.c 1.3 %G%";
char Cstr[RESPSIZE];
char Mstr[RESPSIZE];
char Cstr[RESPSIZE];
char Mstr[RESPSIZE];
p = &stbuf[stind];
if (&p[n] >= &stbuf[STBUFSZ])
fatal("out of space (co22)");
p = &stbuf[stind];
if (&p[n] >= &stbuf[STBUFSZ])
fatal("out of space (co22)");
# include "../hdr/defines.h"
# include "../hdr/defines.h"
-SCCSID(@(#)dolist.c 4.2);
+static char Sccsid[] = "@(#)dolist.c 4.3 %G%";
-static char br[] "bad range (co12)";
+static char br[] = "bad range (co12)";
dolist(pkt,list,ch)
struct packet *pkt;
dolist(pkt,list,ch)
struct packet *pkt;
-static char dls[] "delta list syntax (co13)";
+static char dls[] = "delta list syntax (co13)";
getasid(p,sp)
register char *p;
getasid(p,sp)
register char *p;
#include "../hdr/defines.h"
#include "../hdr/defines.h"
-SCCSID(@(#)getline 2.1.1.1);
+static char Sccsid[] = "@(#)getline.c 1.2 %G%";
/*
Routine to read a line into the packet. The main reason for
it is to make sure that pkt->p_wrttn gets turned off,
/*
Routine to read a line into the packet. The main reason for
it is to make sure that pkt->p_wrttn gets turned off,
pkt->p_slnno++;
pkt->p_wrttn = 0;
for (p = pkt->p_line; *p; )
pkt->p_slnno++;
pkt->p_wrttn = 0;
for (p = pkt->p_line; *p; )
}
else {
if (!pkt->p_reopen) {
}
else {
if (!pkt->p_reopen) {
# include "../hdr/defines.h"
# include "../hdr/defines.h"
-SCCSID(@(#)pf_ab.c 1.3 %G%);
+static char Sccsid[] = "@(#)pf_ab.c 1.4 %G%";
pp->pf_elist = 0;
if (!all || !*p)
return;
pp->pf_elist = 0;
if (!all || !*p)
return;
xp = alloc(size(p));
copy(p,xp);
p = xp;
xp = alloc(size(p));
copy(p,xp);
p = xp;
# include "../hdr/defines.h"
# include "../hdr/defines.h"
-SCCSID(@(#)putline 2.1.1.1);
+static char Sccsid[] = "@(#)putline.c 1.2 %G%";
/*
Routine to write out either the current line in the packet
(if newline is zero) or the line specified by newline.
/*
Routine to write out either the current line in the packet
(if newline is zero) or the line specified by newline.
fputs(p,Xiop);
if (Xcreate)
while (*p)
fputs(p,Xiop);
if (Xcreate)
while (*p)
sprintf(del,"%05u",stats->s_del);
sprintf(unc,"%05u",stats->s_unc);
for (p = ins; *p; p++)
sprintf(del,"%05u",stats->s_del);
sprintf(unc,"%05u",stats->s_unc);
for (p = ins; *p; p++)
- pkt->p_nhash =+ (*p - '0');
+ pkt->p_nhash += (*p - '0');
- pkt->p_nhash =+ (*p - '0');
+ pkt->p_nhash += (*p - '0');
- pkt->p_nhash =+ (*p - '0');
+ pkt->p_nhash += (*p - '0');
}
sprintf(hash,"%5u",pkt->p_nhash&0xFFFF);
}
sprintf(hash,"%5u",pkt->p_nhash&0xFFFF);
# include "../hdr/defines.h"
# define msg(s,help) fprintf(pkt->p_stdout,msgstr,s,pkt->p_glnno,help)
# include "../hdr/defines.h"
# define msg(s,help) fprintf(pkt->p_stdout,msgstr,s,pkt->p_glnno,help)
+static char Sccsid[] = "@(#)rdmod.c 1.2 %G%";
-static char msgstr[] "Inex conflict %s at line %u (%s)\n";
+static char msgstr[] = "Inex conflict %s at line %u (%s)\n";
readmod(pkt)
register struct packet *pkt;
readmod(pkt)
register struct packet *pkt;
# include "../hdr/defines.h"
# include "../hdr/defines.h"
+static char Sccsid[] = "@(#)setup.c 1.3 %G%";
setup(pkt,serial)
register struct packet *pkt;
setup(pkt,serial)
register struct packet *pkt;
{
register int n;
register struct apply *rap;
{
register int n;
register struct apply *rap;
pkt->p_apply[serial].a_inline = 1;
for (n = maxser(pkt); n; n--) {
pkt->p_apply[serial].a_inline = 1;
for (n = maxser(pkt); n; n--) {
int code, reason;
{
if (code == EMPTY)
int code, reason;
{
if (code == EMPTY)
- ap->a_reason =| reason;
+ ap->a_reason |= reason;
else if (ap->a_code == EMPTY) {
ap->a_code = code;
else if (ap->a_code == EMPTY) {
ap->a_code = code;
- ap->a_reason =| reason;
+ ap->a_reason |= reason;
# include "../hdr/macros.h"
# include "../hdr/macros.h"
-SCCSID(@(#)date_ab.c 4.3);
+static char Sccsid[] = "@(#)date_ab.c 4.4 %G%";
/*
Function to convert date in the form "yymmddhhmmss" to
/*
Function to convert date in the form "yymmddhhmmss" to
if(s<0 || s>59) return(-1);
tim = 0L;
if(s<0 || s>59) return(-1);
tim = 0L;
- tim =+ mosize(y,t);
- tim =+ d - 1;
- tim =* 24;
- tim =+ h;
- tim =* 60;
- tim =+ m;
- tim =+ timeb.timezone; /* GMT correction */
- tim =* 60;
- tim =+ s;
+ tim += mosize(y,t);
+ tim += d - 1;
+ tim *= 24;
+ tim += h;
+ tim *= 60;
+ tim += m;
+ tim += timeb.timezone; /* GMT correction */
+ tim *= 60;
+ tim += s;
- tim =+ -1*60*60; /* daylight savings */
+ tim += -1*60*60; /* daylight savings */
if (*p) {
c = (*p++ - '0') * 10;
if (*p)
if (*p) {
c = (*p++ - '0') * 10;
if (*p)
# include "../hdr/defines.h"
# include "../hdr/defines.h"
+static char Sccsid[] = "@(#)dohist.c 1.3 %G%";
char Cstr[RESPSIZE];
char Mstr[RESPSIZE];
char Cstr[RESPSIZE];
char Mstr[RESPSIZE];
p = &stbuf[stind];
if (&p[n] >= &stbuf[STBUFSZ])
fatal("out of space (co22)");
p = &stbuf[stind];
if (&p[n] >= &stbuf[STBUFSZ])
fatal("out of space (co22)");
# include "../hdr/defines.h"
# include "../hdr/defines.h"
-SCCSID(@(#)dolist.c 4.2);
+static char Sccsid[] = "@(#)dolist.c 4.3 %G%";
-static char br[] "bad range (co12)";
+static char br[] = "bad range (co12)";
dolist(pkt,list,ch)
struct packet *pkt;
dolist(pkt,list,ch)
struct packet *pkt;
-static char dls[] "delta list syntax (co13)";
+static char dls[] = "delta list syntax (co13)";
getasid(p,sp)
register char *p;
getasid(p,sp)
register char *p;
#include "../hdr/defines.h"
#include "../hdr/defines.h"
-SCCSID(@(#)getline 2.1.1.1);
+static char Sccsid[] = "@(#)getline.c 1.2 %G%";
/*
Routine to read a line into the packet. The main reason for
it is to make sure that pkt->p_wrttn gets turned off,
/*
Routine to read a line into the packet. The main reason for
it is to make sure that pkt->p_wrttn gets turned off,
pkt->p_slnno++;
pkt->p_wrttn = 0;
for (p = pkt->p_line; *p; )
pkt->p_slnno++;
pkt->p_wrttn = 0;
for (p = pkt->p_line; *p; )
}
else {
if (!pkt->p_reopen) {
}
else {
if (!pkt->p_reopen) {
# include "../hdr/defines.h"
# include "../hdr/defines.h"
-SCCSID(@(#)pf_ab.c 1.3 %G%);
+static char Sccsid[] = "@(#)pf_ab.c 1.4 %G%";
pp->pf_elist = 0;
if (!all || !*p)
return;
pp->pf_elist = 0;
if (!all || !*p)
return;
xp = alloc(size(p));
copy(p,xp);
p = xp;
xp = alloc(size(p));
copy(p,xp);
p = xp;
# include "../hdr/defines.h"
# include "../hdr/defines.h"
-SCCSID(@(#)putline 2.1.1.1);
+static char Sccsid[] = "@(#)putline.c 1.2 %G%";
/*
Routine to write out either the current line in the packet
(if newline is zero) or the line specified by newline.
/*
Routine to write out either the current line in the packet
(if newline is zero) or the line specified by newline.
fputs(p,Xiop);
if (Xcreate)
while (*p)
fputs(p,Xiop);
if (Xcreate)
while (*p)
sprintf(del,"%05u",stats->s_del);
sprintf(unc,"%05u",stats->s_unc);
for (p = ins; *p; p++)
sprintf(del,"%05u",stats->s_del);
sprintf(unc,"%05u",stats->s_unc);
for (p = ins; *p; p++)
- pkt->p_nhash =+ (*p - '0');
+ pkt->p_nhash += (*p - '0');
- pkt->p_nhash =+ (*p - '0');
+ pkt->p_nhash += (*p - '0');
- pkt->p_nhash =+ (*p - '0');
+ pkt->p_nhash += (*p - '0');
}
sprintf(hash,"%5u",pkt->p_nhash&0xFFFF);
}
sprintf(hash,"%5u",pkt->p_nhash&0xFFFF);
# include "../hdr/defines.h"
# define msg(s,help) fprintf(pkt->p_stdout,msgstr,s,pkt->p_glnno,help)
# include "../hdr/defines.h"
# define msg(s,help) fprintf(pkt->p_stdout,msgstr,s,pkt->p_glnno,help)
+static char Sccsid[] = "@(#)rdmod.c 1.2 %G%";
-static char msgstr[] "Inex conflict %s at line %u (%s)\n";
+static char msgstr[] = "Inex conflict %s at line %u (%s)\n";
readmod(pkt)
register struct packet *pkt;
readmod(pkt)
register struct packet *pkt;
# include "../hdr/defines.h"
# include "../hdr/defines.h"
+static char Sccsid[] = "@(#)setup.c 1.3 %G%";
setup(pkt,serial)
register struct packet *pkt;
setup(pkt,serial)
register struct packet *pkt;
{
register int n;
register struct apply *rap;
{
register int n;
register struct apply *rap;
pkt->p_apply[serial].a_inline = 1;
for (n = maxser(pkt); n; n--) {
pkt->p_apply[serial].a_inline = 1;
for (n = maxser(pkt); n; n--) {
int code, reason;
{
if (code == EMPTY)
int code, reason;
{
if (code == EMPTY)
- ap->a_reason =| reason;
+ ap->a_reason |= reason;
else if (ap->a_code == EMPTY) {
ap->a_code = code;
else if (ap->a_code == EMPTY) {
ap->a_code = code;
- ap->a_reason =| reason;
+ ap->a_reason |= reason;