cond.c
Source contains an unconditional loopCalls a character-class helper
SHA-25685802c2f0753697a24023603881e9a949f7b13e2b88d9285bafbf99b08e176a1
MaleculeO(Er)H(Db₂)
Evidence
1/* $NetBSD: cond.c,v 1.378 2025/07/06 07:56:16 rillig Exp $ */
2
3/*
4 * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to Berkeley by
8 * Adam de Boor.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 * 1. Redistributions of source code must retain the above …
24:6… PLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABL …
84:4… conditional directives are well-balanced.
85 */
86
87#include <errno.h>
88
89#include "make.h"
90#include "dir.h"
91
92/* "@(#)cond.c 8.2 (Berkeley) 1/2/94" */
93MAKE_RCSID("$NetBSD: cond.c,v 1.378 2025/07/06 07:5 …
168:38… if nesting level */
169
170/* Names for ComparisonOp. */
171static const char opname[][3] = { "<", "<=", ">", ">=", "==", "!=" };
172
173MAKE_INLINE bool
⋯13 lines
249:7… kip_hspace(&p);
250
251 if (*p++ != ')') {
252 int len = 0;
253 while (ch_isalpha(func[len]))
254 len++;
255
256 Parse_Error(PARSE_FATAL,
257 "Missing \")\" after argument \"%.*s\" for \"%.*s\"",
258 (int)(argEnd …