-/* $OpenBSD: buf.c,v 1.30 2023/09/04 11:35:11 espie Exp $ */
+/* $OpenBSD: buf.c,v 1.31 2024/06/18 02:11:03 millert Exp $ */
/* $NetBSD: buf.c,v 1.9 1996/12/31 17:53:21 christos Exp $ */
/*
#endif
static void
-fatal_overflow()
+fatal_overflow(void)
{
fprintf(stderr, "buffer size overflow\n");
exit(2);
-/* $OpenBSD: compat.c,v 1.94 2023/09/04 11:35:11 espie Exp $ */
+/* $OpenBSD: compat.c,v 1.95 2024/06/18 02:11:03 millert Exp $ */
/* $NetBSD: compat.c,v 1.14 1996/11/06 17:59:01 christos Exp $ */
/*
}
void
-Compat_Init()
+Compat_Init(void)
{
}
void
-Compat_Update(GNode *gn)
+Compat_Update(GNode *gn UNUSED)
{
}
-/* $OpenBSD: error.c,v 1.26 2023/09/04 11:35:11 espie Exp $ */
+/* $OpenBSD: error.c,v 1.27 2024/06/18 02:11:03 millert Exp $ */
/*
* Copyright (c) 2001 Marc Espie.
* The program exits
*/
void
-Finish()
+Finish(void)
{
Job_Wait();
print_errors();
-/* $OpenBSD: job.c,v 1.165 2023/09/04 11:35:11 espie Exp $ */
+/* $OpenBSD: job.c,v 1.166 2024/06/18 02:11:03 millert Exp $ */
/* $NetBSD: job.c,v 1.16 1996/11/06 17:59:08 christos Exp $ */
/*
}
static void
-internal_print_errors()
+internal_print_errors(void)
{
Job *j, *k, *jnext;
int dying;
}
void
-Sigset_Init()
+Sigset_Init(void)
{
sigemptyset(&emptyset);
sigprocmask(SIG_BLOCK, &emptyset, &origset);
}
static void
-may_continue_heldback_jobs()
+may_continue_heldback_jobs(void)
{
while (!no_new_jobs) {
if (heldJobs != NULL) {
}
void
-reset_signal_mask()
+reset_signal_mask(void)
{
sigprocmask(SIG_SETMASK, &origset, NULL);
}
}
void
-loop_handle_running_jobs()
+loop_handle_running_jobs(void)
{
while (runningJobs != NULL)
handle_running_jobs();
-/* $OpenBSD: main.c,v 1.132 2023/09/04 11:35:11 espie Exp $ */
+/* $OpenBSD: main.c,v 1.133 2024/06/18 02:11:03 millert Exp $ */
/* $NetBSD: main.c,v 1.34 1997/03/24 20:56:36 gwr Exp $ */
/*
}
void
-set_notparallel()
+set_notparallel(void)
{
compatMake = true;
}
* run-time.
*/
static char *
-figure_out_MACHINE()
+figure_out_MACHINE(void)
{
char *r = getenv("MACHINE");
if (r == NULL) {
}
static char *
-figure_out_MACHINE_ARCH()
+figure_out_MACHINE_ARCH(void)
{
char *r = getenv("MACHINE_ARCH");
if (r == NULL) {
return r;
}
static char *
-figure_out_MACHINE_CPU()
+figure_out_MACHINE_CPU(void)
{
char *r = getenv("MACHINE_CPU");
if (r == NULL) {
}
static char *
-figure_out_CURDIR()
+figure_out_CURDIR(void)
{
char *dir, *cwd;
struct stat sa, sb;
* <directory>:<directory>:<directory>...
*/
static void
-setup_VPATH()
+setup_VPATH(void)
{
if (Var_Value("VPATH") != NULL) {
char *vpath;
* exit with usage message
*/
static void
-usage()
+usage(void)
{
(void)fprintf(stderr,
"usage: make [-BeiknpqrSst] [-C directory] [-D variable] [-d flags] [-f mk]\n\
-/* $OpenBSD: make.c,v 1.84 2023/09/04 11:35:11 espie Exp $ */
+/* $OpenBSD: make.c,v 1.85 2024/06/18 02:11:03 millert Exp $ */
/* $NetBSD: make.c,v 1.10 1996/11/06 17:59:15 christos Exp $ */
/*
long random_delay = 0;
bool
-nothing_left_to_build()
+nothing_left_to_build(void)
{
return Array_IsEmpty(&to_build);
}
static void
-random_setup()
+random_setup(void)
{
randomize_queue = Var_Definedi("RANDOM_ORDER", NULL);
}
void
-Make_Init()
+Make_Init(void)
{
/* wild guess at initial sizes */
Array_Init(&to_build, 500);
-/* $OpenBSD: parse.c,v 1.136 2023/09/04 11:35:11 espie Exp $ */
+/* $OpenBSD: parse.c,v 1.137 2024/06/18 02:11:03 millert Exp $ */
/* $NetBSD: parse.c,v 1.29 1997/03/10 21:20:04 christos Exp $ */
/*
#undef P
static void
-create_special_nodes()
+create_special_nodes(void)
{
unsigned int i;
}
static void
-dump_targets()
+dump_targets(void)
{
size_t i;
for (i = 0; i < gtargets.n; i++)
LstNode ln;
bool seen_target = false;
unsigned int i;
+ GNode *gn, *gn2;
/* may be 0 if wildcard expansion resulted in zero match */
if (targets->n <= 1)
if (seen_target)
return;
- GNode *gn, *gn2;
/* targets may already participate in groupling lists,
* so rebuild the circular list "from scratch"
*/
}
static void
-reset_target_hash()
+reset_target_hash(void)
{
if (htargets_setup)
ohash_delete(&htargets);
}
void
-Parse_End()
+Parse_End(void)
{
if (htargets_setup)
ohash_delete(&htargets);
-/* $OpenBSD: parsevar.c,v 1.17 2023/09/04 11:35:11 espie Exp $ */
+/* $OpenBSD: parsevar.c,v 1.18 2024/06/18 02:11:03 millert Exp $ */
/* $NetBSD: parse.c,v 1.29 1997/03/10 21:20:04 christos Exp $ */
/*
#include "parsevar.h"
static const char *find_op1(const char *);
-static const char *find_op2(const char *);
static bool parse_variable_assignment(const char *, int);
static const char *
return p;
}
-static const char *
-find_op2(const char *p)
-{
- for(;; p++) {
- if (ISSPACE(*p) || *p == '$' || *p == '\0')
- break;
- if (p[strspn(p, "?:!+")] == '=')
- break;
- }
- return p;
-}
-
static bool
parse_variable_assignment(const char *line, int ctxt)
{
-/* $OpenBSD: targ.c,v 1.87 2024/05/21 05:00:48 jsg Exp $ */
+/* $OpenBSD: targ.c,v 1.88 2024/06/18 02:11:03 millert Exp $ */
/* $NetBSD: targ.c,v 1.11 1997/02/20 16:51:50 christos Exp $ */
/*
}
struct ohash *
-targets_hash()
+targets_hash(void)
{
return &targets;
}
-/* $OpenBSD: targequiv.c,v 1.10 2023/09/04 11:35:11 espie Exp $ */
+/* $OpenBSD: targequiv.c,v 1.11 2024/06/18 02:11:04 millert Exp $ */
/*
* Copyright (c) 2007-2008 Marc Espie.
*
}
static void
-build_equivalence()
+build_equivalence(void)
{
unsigned int i;
GNode *gn;
-/* $OpenBSD: var.c,v 1.106 2023/09/04 11:35:11 espie Exp $ */
+/* $OpenBSD: var.c,v 1.107 2024/06/18 02:11:04 millert Exp $ */
/* $NetBSD: var.c,v 1.18 1997/03/18 19:24:46 christos Exp $ */
/*
***/
static void
-set_magic_shell_variable()
+set_magic_shell_variable(void)
{
const char *name = "SHELL";
const char *ename = NULL;
}
static void
-set_magic_name_list_variable()
+set_magic_name_list_variable(void)
{
const char *name = VARNAME_LIST;
const char *ename = NULL;
-/* $OpenBSD: varmodifiers.c,v 1.49 2023/09/04 11:35:11 espie Exp $ */
+/* $OpenBSD: varmodifiers.c,v 1.50 2024/06/18 02:11:04 millert Exp $ */
/* $NetBSD: var.c,v 1.18 1997/03/18 19:24:46 christos Exp $ */
/*
;
void
-VarModifiers_Init()
+VarModifiers_Init(void)
{
choose_mod['M'] = &match_mod;
choose_mod['N'] = &nomatch_mod;