version 1.2, 2000/07/17 23:03:50 |
version 1.3, 2001/05/03 13:41:10 |
|
|
|
/* $OpenPackages$ */ |
/* $OpenBSD$ */ |
/* $OpenBSD$ */ |
|
|
/* |
/* |
* Copyright (c) 1999 Marc Espie. |
* Copyright (c) 1999 Marc Espie. |
* |
* |
* Code written for the OpenBSD project. |
* Code written for the OpenBSD project. |
* |
* |
* Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions |
* modification, are permitted provided that the following conditions |
* are met: |
* are met: |
|
|
#include "make.h" |
#include "make.h" |
#include <stdio.h> |
#include <stdio.h> |
|
|
int main __P((void)); |
int main(void); |
#define CHECK(s) \ |
#define CHECK(s) \ |
do { \ |
do { \ |
printf("%-65s", #s); \ |
printf("%-65s", #s); \ |
if (s) \ |
if (s) \ |
printf("ok\n"); \ |
printf("ok\n"); \ |
else { \ |
else { \ |
printf("failed\n"); \ |
printf("failed\n"); \ |
errors++; \ |
errors++; \ |
} \ |
} \ |
} while (0); |
} while (0); |
|
|
int |
int |
main() |
main() |
{ |
{ |
unsigned int errors = 0; |
unsigned int errors = 0; |