diff options
author | Hidetoshi Shimokawa <simokawa@FreeBSD.org> | 1999-01-18 06:59:18 +0000 |
---|---|---|
committer | Hidetoshi Shimokawa <simokawa@FreeBSD.org> | 1999-01-18 06:59:18 +0000 |
commit | 6ba7b1c961dd91c80782288f8c79c9c87b7eaa1b (patch) | |
tree | fee17e64a8e01d203e68ef96e216386521db1405 /contrib/global/lib/die.h | |
parent | 60adf819d22e8031d8591d6473b8b86d31840680 (diff) | |
parent | 3ba3e2cc4b63fa16707f51e735e751e62dd9526e (diff) | |
download | src-6ba7b1c961dd91c80782288f8c79c9c87b7eaa1b.tar.gz src-6ba7b1c961dd91c80782288f8c79c9c87b7eaa1b.zip |
This commit was generated by cvs2svn to compensate for changes in r42788,
which included commits to RCS files with non-trunk default branches.
Notes
Notes:
svn path=/head/; revision=42789
Diffstat (limited to 'contrib/global/lib/die.h')
-rw-r--r-- | contrib/global/lib/die.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/global/lib/die.h b/contrib/global/lib/die.h index 46813d415953..fc0e9e014493 100644 --- a/contrib/global/lib/die.h +++ b/contrib/global/lib/die.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 1997 Shigio Yamaguchi. All rights reserved. + * Copyright (c) 1996, 1997, 1998 Shigio Yamaguchi. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -35,7 +35,7 @@ #define _DIE_H_ #include <stdio.h> -extern char *progname; +extern const char *progname; #define die(a) fprintf(stderr, "%s: ", progname),\ fprintf(stderr, a),\ @@ -46,4 +46,8 @@ extern char *progname; fprintf(stderr, a, b),\ fputs("\n", stderr),\ exit(1) +#define die2(a,b,c) fprintf(stderr, "%s: ", progname),\ + fprintf(stderr, a, b, c),\ + fputs("\n", stderr),\ + exit(1) #endif /* ! _DIE_H_ */ |