282881 Commits

Author SHA1 Message Date
christos
c8784f07cf - make the CTFCONVERT command lines consistent and concise by putting all
the implementation stuff in a variable CTFCONVERT_RUN
- introduce an OBJECT_TARGET variable that contains the output object file
- when we need to run ctfconvert, go through an intermediate ${.TARGET}.o
  file, instead of writing directly to ${.TARGET} and then overwriting
  ${.TARGET} with ctfconvert. This avoids build failures after a build
  got interrupted (the "partially built from C" scourge).
2020-11-09 16:15:05 +00:00
kamil
4189359aaa Remove the catman sets support
Remnant of MKCATPAGES
2020-11-09 12:12:08 +00:00
martin
312a1f515d Fix copy&pasto in previous 2020-11-09 10:19:41 +00:00
martin
927c5e4e3e Adapt for sqlite requiring pthreads now 2020-11-09 10:19:18 +00:00
dholland
386c99328f Restore the catman joke.
It needs the (8), or it fails to work for people who don't know or had
forgotten catman(8) was ever a thing.

as the de facto fortunes editor and also I think the person who added
that fortune in the first place, and given the discussion in
tech-userlevel, I think I get to do this.
2020-11-09 03:23:14 +00:00
kamil
17e0cdd2e4 Remove the catman directories
No longer relevant after the MKCATPAGES removal.
2020-11-09 01:07:04 +00:00
kamil
f3b4abb0cd Remove catman pages support
No longer relevant after the MKCATPAGES removal.
2020-11-09 01:05:51 +00:00
kamil
fa5b5b5087 Revert to the original phrasing, but remove the man 8 section reference.
catman is a historical Unix tool.
2020-11-09 00:46:00 +00:00
rillig
54ce64994a make(1): document handling of '#' and '\n' in conditionals 2020-11-09 00:07:06 +00:00
rillig
99b4cf5a91 make(1): in lint mode, only allow '&&' and '||', not '&' and '|'
These variants of the condition operators are neither documented in the
manual page nor are they used in practice.
2020-11-08 23:54:28 +00:00
rillig
94a5544dac make(1): move lint option away from the debug flags
The lint option affects much more than a typical debug flag.  Not only
does it produce additional diagnostics, it also changes the control flow
and fixes the traditional error handling in a few places.

No functional change.
2020-11-08 23:38:02 +00:00
rillig
6466b4cf3f make(1): sort debug flags alphabetically
DEBUG_FOR had been accidentally left at the end of the list.
2020-11-08 23:30:59 +00:00
rillig
8ca4556ee0 make(1): extract CondParser_Func from CondParser_LeafToken 2020-11-08 23:20:19 +00:00
rillig
ac1e66f648 make(1): inline strchr call in CondParser_LeafToken 2020-11-08 23:10:22 +00:00
rillig
3791ed3537 make(1): rename CondParser_Func to CondParser_LeafToken
The previous name was misleading since the function did not only parse
function call expressions.
2020-11-08 23:08:49 +00:00
rillig
967adfb4a5 make(1): fix type mismatch between int and Token 2020-11-08 23:05:47 +00:00
rillig
d1b2a74090 make(1): add test for comparing numbers with strings 2020-11-08 23:00:09 +00:00
rillig
9a97b39736 make(1): add test for wrong comparison operator in conditional 2020-11-08 22:56:16 +00:00
rillig
302ad8d128 make(1): add test for .ifmake 0 and .ifmake 1 2020-11-08 22:45:51 +00:00
rillig
d6e34e9efe make(1): improve local variable name in EvalNotEmpty 2020-11-08 22:44:05 +00:00
rillig
84dde6edbb make(1): improve variable names in EvalNotEmpty
In a unary expression, there is no left-hand side.
2020-11-08 22:41:40 +00:00
rillig
0313b06433 make(1): add test for function call in .ifdef directive 2020-11-08 22:38:28 +00:00
rillig
398a8eccff make(1): rename local variable in CondParser_String 2020-11-08 22:37:52 +00:00
rillig
24c22f9b51 make(1): add test for hexadecimal numbers in conditionals 2020-11-08 22:28:05 +00:00
rillig
3497a637a5 make(1): clean up TryParseNumber in conditions
More descriptive variable names, more appropriate literals for
comparisons, one task per paragraph of code.
2020-11-08 22:22:03 +00:00
nia
70f54ff57b sqlite: do not build without multithreading support
at least a few pkgsrc packages avoid base sqlite because it fails
this check, and it's probably a surprising performance penalty for
unsuspecting users
2020-11-08 21:56:47 +00:00
rillig
5701886afd make(1): add test for comparison of large integers 2020-11-08 21:47:59 +00:00
rillig
acfaa95c20 make(1): add test for function argument with unbalanced braces 2020-11-08 21:40:13 +00:00
rillig
8ad0731689 make(1): document what the directive ".if A&B" means 2020-11-08 21:33:05 +00:00
rillig
db553ed744 make(1): clean up FuncExists 2020-11-08 21:10:18 +00:00
rillig
c2df69284f make(1): add test demonstrating the :D modifier with := assignments 2020-11-08 20:29:13 +00:00
rillig
f4c9c5aeb2 make(1): clean up code related to VarEvalFlags
Mention VARE_WANTRES before VARE_UNDEFERR since the latter depends on
the former.

In ApplyModifier_Assign, VARE_KEEP_DOLLAR doesn't have to be removed
from eflags since ParseModifierPart does this already.

In EvalUndefined, testing for VARE_WANTRES is redundant if VARE_UNDEFERR
is already set.
2020-11-08 19:53:11 +00:00
rillig
d8865b89ac make(1): clean up VarEvalFlags in the calls to Var_Parse and Var_Subst
There are only 3 flags, and some combinations don't even make sense.

VARE_UNDEFERR only makes sense if combined with VARE_WANTRES.  If the
latter is not set, the variable expressions are only parsed, without
asking whether they are defined or not.  Therefore, VARE_UNDEFERR cannot
have any effect in that case.

VARE_KEEP_DOLLAR is actively ignored by ParseModifierPart.  In cases
where VARE_WANTRES is not set, this means that VARE_NONE can be passed,
which is easier to grasp than any bitset operations.  This also gets rid
of a few type casts from enum to unsigned int that were necessary to
pass WARNS=6.
2020-11-08 19:24:19 +00:00
rillig
1348bbb0bf make(1): rename local variable in VarSubstNested 2020-11-08 18:27:14 +00:00
rillig
4ea0a093a5 make(1): reorder branches in Var_Subst
This way, '$$' is handled first, followed by '$', followed by everything
else.  This is easier to follow than first '$$' then not '$' and finally
'$'.
2020-11-08 18:16:55 +00:00
rillig
ba85ff0804 make(1): extract VarSubstNested from Var_Subst
Each of these functions now fits on a moderately large screen.
2020-11-08 18:13:01 +00:00
rillig
2815a97239 make(1): add test demonstrating how ':=' and ':@var@' interact 2020-11-08 18:05:32 +00:00
kamil
dfc109fe43 catman(8) is a past thing 2020-11-08 17:37:29 +00:00
rillig
f4123b6995 make(1): rename VARE_ASSIGN to VARE_KEEP_DOLLAR
The other flags in VarEvalFlags already describe their effects, not the
place where they are used.  It's more important to know the effect.

Only a single unit test had to be adjusted.  This probably means that
there are too few tests where the special effects of VARE_KEEP_DOLLAR
come into play.  It could also mean that the effects are so simple and
obvious that they don't need any debug log, but that's not the case.
2020-11-08 16:58:33 +00:00
kamil
f94f87c83f Move the html9/psref* files from comp-sys-catman to comp-sys-htmlman 2020-11-08 16:47:59 +00:00
rillig
fc3bb0099a make(1): add test for expanding variable expressions 2020-11-08 16:44:47 +00:00
wiz
bedd7ae6ef grep 3.5 is out for a while. 2020-11-08 15:57:01 +00:00
kamil
60eaf2591d Stop mentioning the support for cat pages 2020-11-08 15:19:18 +00:00
rillig
d7477a0f5e make(1): fix documentation of preserveUndefined
Since it is a global variable and not a VarEvalFlags, it affects nested
subexpressions as well, and there is no way to escape it.
2020-11-08 15:18:09 +00:00
rillig
2861b54efc make(1): use strict typing in conditions of the form !var 2020-11-08 15:07:37 +00:00
kamil
c432f8a1cb Remove the MKCATPAGES remnants 2020-11-08 14:55:25 +00:00
kamil
4045d62396 Remove the support for MKCATPAGES
It was optional since 1999 and disabled by default since 2012.

Proposed on tech-userlevel@.
2020-11-08 14:52:35 +00:00
rillig
b3c236d26d make(1): reformat main.c more closely to share/misc/style 2020-11-08 14:50:24 +00:00
rillig
cee278d89c make(1): remove redundant comment from main_ReadFiles
The code has become so simple that it made the comment redundant.
2020-11-08 14:19:15 +00:00
jmcneill
01c4bf169b Ignore PNP0001 (EISA interrupt controller) and PNP0C02 (motherboard
resources) when enumerating devices.
2020-11-08 14:16:59 +00:00