Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/calendar use tradcpp



details:   https://anonhg.NetBSD.org/src/rev/e65ded2988ed
branches:  trunk
changeset: 370158:e65ded2988ed
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Sep 19 18:48:30 2022 +0000

description:
use tradcpp

diffstat:

 usr.bin/calendar/calendar.c  |  6 +++---
 usr.bin/calendar/pathnames.h |  4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (44 lines):

diff -r cccf8a7ec9d4 -r e65ded2988ed usr.bin/calendar/calendar.c
--- a/usr.bin/calendar/calendar.c       Mon Sep 19 18:46:06 2022 +0000
+++ b/usr.bin/calendar/calendar.c       Mon Sep 19 18:48:30 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: calendar.c,v 1.53 2016/06/03 02:06:40 agc Exp $        */
+/*     $NetBSD: calendar.c,v 1.54 2022/09/19 18:48:30 christos Exp $   */
 
 /*
  * Copyright (c) 1989, 1993, 1994
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)calendar.c 8.4 (Berkeley) 1/7/95";
 #endif
-__RCSID("$NetBSD: calendar.c,v 1.53 2016/06/03 02:06:40 agc Exp $");
+__RCSID("$NetBSD: calendar.c,v 1.54 2022/09/19 18:48:30 christos Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -459,7 +459,7 @@
                        err(EXIT_FAILURE, "Cannot restrict cpp");
                cpp_restricted = true;
 
-               (void)execl(_PATH_CPP, "cpp", "-traditional", "-P", "-I.",
+               (void)execl(_PATH_CPP, "tradcpp", "-nostdinc", "-I.",
                    "-I" _PATH_CALENDARS, NULL);
                err(EXIT_FAILURE, "Cannot exec `%s'", _PATH_CPP);
                /*NOTREACHED*/
diff -r cccf8a7ec9d4 -r e65ded2988ed usr.bin/calendar/pathnames.h
--- a/usr.bin/calendar/pathnames.h      Mon Sep 19 18:46:06 2022 +0000
+++ b/usr.bin/calendar/pathnames.h      Mon Sep 19 18:48:30 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pathnames.h,v 1.6 2004/12/07 16:47:32 jwise Exp $      */
+/*     $NetBSD: pathnames.h,v 1.7 2022/09/19 18:48:30 christos Exp $   */
 
 /*
  * Copyright (c) 1989, 1993
@@ -33,6 +33,6 @@
 
 #include <paths.h>
 
-#define        _PATH_CPP       "/usr/bin/cpp"
+#define        _PATH_CPP       "/usr/bin/tradcpp"
 #define        _PATH_CALENDARS "/usr/share/calendar"
 #define _PATH_SYSTEM_CALENDAR  "/etc/calendar"



Home | Main Index | Thread Index | Old Index