Blame
Date:
Fri Jul 1 19:42:55 2022 UTC
Message:
switch to kristaps@' oconfigure

It's a bit ugly to depend _only_ on the OpenBSD make infrastructure;
it's better when things are portable! Making mymenu-portable would be
more effort than what it's worth it, so just make the main version
portable (again). kristaps@' oconfigure (used also by mandoc-portable
and mymenu) is a lightweight configure system that's really nice to use.

see GitHub issue #1
01
2022-07-01
op
/*
02
2022-07-01
op
* Copyright (c) 2015 Ingo Schwarze <schwarze@openbsd.org>
03
2022-07-01
op
*
04
2022-07-01
op
* Permission to use, copy, modify, and distribute this software for any
05
2022-07-01
op
* purpose with or without fee is hereby granted, provided that the above
06
2022-07-01
op
* copyright notice and this permission notice appear in all copies.
07
2022-07-01
op
*
08
2022-07-01
op
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
09
2022-07-01
op
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10
2022-07-01
op
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11
2022-07-01
op
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12
2022-07-01
op
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13
2022-07-01
op
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14
2022-07-01
op
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15
2022-07-01
op
*/
16
2022-07-01
op
17
2022-07-01
op
#include <err.h>
18
2022-07-01
op
#include <errno.h>
19
2022-07-01
op
20
2022-07-01
op
int
21
2022-07-01
op
main(void)
22
2022-07-01
op
{
23
2022-07-01
op
warnx("%d. warnx", 1);
24
2022-07-01
op
warnc(ENOENT, "%d. warn", ENOENT);
25
2022-07-01
op
warn("%d. warn", 2);
26
2022-07-01
op
err(0, "%d. err", 3);
27
2022-07-01
op
errx(0, "%d. err", 3);
28
2022-07-01
op
errc(0, ENOENT, "%d. err", 3);
29
2022-07-01
op
/* NOTREACHED */
30
2022-07-01
op
return 1;
31
2022-07-01
op
}
Omar Polo