Sat Jun 24 07:02:24 2023 UTC ()
make: remove redundant 'extern' in function declaration

No binary change.


(rillig)
diff -r1.323 -r1.324 src/usr.bin/make/make.h

cvs diff -r1.323 -r1.324 src/usr.bin/make/make.h (expand / switch to unified diff)

--- src/usr.bin/make/make.h 2023/06/20 09:25:33 1.323
+++ src/usr.bin/make/make.h 2023/06/24 07:02:24 1.324
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: make.h,v 1.323 2023/06/20 09:25:33 rillig Exp $ */ 1/* $NetBSD: make.h,v 1.324 2023/06/24 07:02:24 rillig Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1988, 1989, 1990, 1993 4 * Copyright (c) 1988, 1989, 1990, 1993
5 * The Regents of the University of California. All rights reserved. 5 * The Regents of the University of California. All rights reserved.
6 * 6 *
7 * This code is derived from software contributed to Berkeley by 7 * This code is derived from software contributed to Berkeley by
8 * Adam de Boor. 8 * Adam de Boor.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -1182,27 +1182,27 @@ pp_skip_whitespace(char **pp) @@ -1182,27 +1182,27 @@ pp_skip_whitespace(char **pp)
1182{ 1182{
1183 while (ch_isspace(**pp)) 1183 while (ch_isspace(**pp))
1184 (*pp)++; 1184 (*pp)++;
1185} 1185}
1186 1186
1187MAKE_INLINE void 1187MAKE_INLINE void
1188pp_skip_hspace(char **pp) 1188pp_skip_hspace(char **pp)
1189{ 1189{
1190 while (**pp == ' ' || **pp == '\t') 1190 while (**pp == ' ' || **pp == '\t')
1191 (*pp)++; 1191 (*pp)++;
1192} 1192}
1193 1193
1194#if defined(lint) 1194#if defined(lint)
1195extern void do_not_define_rcsid(void); /* for lint */ 1195void do_not_define_rcsid(void); /* for lint */
1196# define MAKE_RCSID(id) extern void do_not_define_rcsid(void) 1196# define MAKE_RCSID(id) extern void do_not_define_rcsid(void)
1197#elif defined(MAKE_NATIVE) 1197#elif defined(MAKE_NATIVE)
1198# include <sys/cdefs.h> 1198# include <sys/cdefs.h>
1199# define MAKE_RCSID(id) __RCSID(id) 1199# define MAKE_RCSID(id) __RCSID(id)
1200#elif defined(MAKE_ALL_IN_ONE) && defined(__COUNTER__) 1200#elif defined(MAKE_ALL_IN_ONE) && defined(__COUNTER__)
1201# define MAKE_RCSID_CONCAT(x, y) CONCAT(x, y) 1201# define MAKE_RCSID_CONCAT(x, y) CONCAT(x, y)
1202# define MAKE_RCSID(id) static volatile char \ 1202# define MAKE_RCSID(id) static volatile char \
1203 MAKE_RCSID_CONCAT(rcsid_, __COUNTER__)[] = id 1203 MAKE_RCSID_CONCAT(rcsid_, __COUNTER__)[] = id
1204#elif defined(MAKE_ALL_IN_ONE) 1204#elif defined(MAKE_ALL_IN_ONE)
1205# define MAKE_RCSID(id) extern void do_not_define_rcsid(void) 1205# define MAKE_RCSID(id) extern void do_not_define_rcsid(void)
1206#else 1206#else
1207# define MAKE_RCSID(id) static volatile char rcsid[] = id 1207# define MAKE_RCSID(id) static volatile char rcsid[] = id
1208#endif 1208#endif