-/* $OpenBSD: aux.c,v 1.13 1997/11/14 00:23:41 millert Exp $ */
+/* $OpenBSD: aux.c,v 1.14 2000/04/25 16:42:22 millert Exp $ */
/* $NetBSD: aux.c,v 1.5 1997/05/13 06:15:52 mikel Exp $ */
/*
#if 0
static char sccsid[] = "@(#)aux.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: aux.c,v 1.13 1997/11/14 00:23:41 millert Exp $";
+static char rcsid[] = "$OpenBSD: aux.c,v 1.14 2000/04/25 16:42:22 millert Exp $";
#endif
#endif /* not lint */
return(1);
return(0);
}
+
+void
+clearnew()
+{
+ struct message *mp;
+
+ for (mp = &message[0]; mp < &message[msgCount]; mp++) {
+ if (mp->m_flag & MNEW) {
+ mp->m_flag &= ~MNEW;
+ mp->m_flag |= MSTATUS;
+ }
+ }
+}
-/* $OpenBSD: cmd1.c,v 1.13 1998/05/11 04:15:24 millert Exp $ */
+/* $OpenBSD: cmd1.c,v 1.14 2000/04/25 16:42:22 millert Exp $ */
/* $NetBSD: cmd1.c,v 1.9 1997/07/09 05:29:48 mikel Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)cmd1.c 8.2 (Berkeley) 4/20/95";
#else
-static char rcsid[] = "$OpenBSD: cmd1.c,v 1.13 1998/05/11 04:15:24 millert Exp $";
+static char rcsid[] = "$OpenBSD: cmd1.c,v 1.14 2000/04/25 16:42:22 millert Exp $";
#endif
#endif /* not lint */
} else if (nmsg > 0) {
mdot = newfileinfo(msgCount - nmsg);
dot = &message[mdot - 1];
+ clearnew();
} else {
puts("\"inc\" command failed...");
}
-/* $OpenBSD: cmd3.c,v 1.10 1997/11/14 00:23:44 millert Exp $ */
+/* $OpenBSD: cmd3.c,v 1.11 2000/04/25 16:42:22 millert Exp $ */
/* $NetBSD: cmd3.c,v 1.8 1997/07/09 05:29:49 mikel Exp $ */
/*
#if 0
static char sccsid[] = "@(#)cmd3.c 8.2 (Berkeley) 4/20/95";
#else
-static char rcsid[] = "$OpenBSD: cmd3.c,v 1.10 1997/11/14 00:23:44 millert Exp $";
+static char rcsid[] = "$OpenBSD: cmd3.c,v 1.11 2000/04/25 16:42:22 millert Exp $";
#endif
#endif /* not lint */
if (argv[0] == NULL) {
newfileinfo(0);
+ clearnew();
return(0);
}
if (setfile(*argv) < 0)
-/* $OpenBSD: extern.h,v 1.12 1997/11/14 00:23:46 millert Exp $ */
+/* $OpenBSD: extern.h,v 1.13 2000/04/25 16:42:22 millert Exp $ */
/* $NetBSD: extern.h,v 1.7 1997/07/09 05:22:00 mikel Exp $ */
/*-
* SUCH DAMAGE.
*
* @(#)extern.h 8.2 (Berkeley) 4/20/95
- * $OpenBSD: extern.h,v 1.12 1997/11/14 00:23:46 millert Exp $
+ * $OpenBSD: extern.h,v 1.13 2000/04/25 16:42:22 millert Exp $
*/
struct name;
void brokpipe __P((int));
int charcount __P((char *, int));
int check __P((int, int));
+void clearnew __P((void));
void clob1 __P((int));
int clobber __P((void *));
void close_all_files __P((void));
-/* $OpenBSD: lex.c,v 1.18 1998/09/08 14:59:12 millert Exp $ */
+/* $OpenBSD: lex.c,v 1.19 2000/04/25 16:42:22 millert Exp $ */
/* $NetBSD: lex.c,v 1.10 1997/05/17 19:55:13 pk Exp $ */
/*
#if 0
static char sccsid[] = "@(#)lex.c 8.2 (Berkeley) 4/20/95";
#else
-static char rcsid[] = "$OpenBSD: lex.c,v 1.18 1998/09/08 14:59:12 millert Exp $";
+static char rcsid[] = "$OpenBSD: lex.c,v 1.19 2000/04/25 16:42:22 millert Exp $";
#endif
#endif /* not lint */
int vec[2], mdot;
mdot = newfileinfo(0);
+ clearnew();
vec[0] = mdot;
vec[1] = 0;
dot = &message[mdot - 1];