Print this page
remove support for non-ANSI compilation

*** 17,35 **** * fields enclosed by brackets "[]" replaced with your own identifying * information: Portions Copyright [yyyy] [name of copyright owner] * * CDDL HEADER END */ /* Copyright (c) 1988 AT&T */ /* All Rights Reserved */ #ifndef _MACROS_H #define _MACROS_H - #pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.3.1.7 */ - #include <sys/types.h> #include <sys/stat.h> #ifdef __cplusplus extern "C" { --- 17,36 ---- * fields enclosed by brackets "[]" replaced with your own identifying * information: Portions Copyright [yyyy] [name of copyright owner] * * CDDL HEADER END */ + /* + * Copyright 2014 Garrett D'Amore <garrett@damore.org> + */ /* Copyright (c) 1988 AT&T */ /* All Rights Reserved */ #ifndef _MACROS_H #define _MACROS_H #include <sys/types.h> #include <sys/stat.h> #ifdef __cplusplus extern "C" {
*** 68,88 **** #define SAVE(name, place) { int place = name; #define RSTR(name, place) name = place; } /* * Use: DEBUG(sum,d) which becomes fprintf(stderr,"sum = %d\n",sum) - * - * Note: Sccsid[] strings are still supported but not the prefered - * method of labeling files. Use #ident. */ - #ifdef __STDC__ #define DEBUG(var, type) fprintf(stderr, #var "= %" #type "\n", var) - #define SCCSID(arg) static char Sccsid[] = #arg - #else - #define DEBUG(var, type) fprintf(stderr, "var = %type\n", var) - #define SCCSID(arg) static char Sccsid[] = "arg" - #endif /* * Use of ERRABORT() will cause libS.a internal * errors to cause aborts */ --- 69,80 ----