From: Alexandra Ellwood Date: Thu, 12 Jun 2003 19:51:38 +0000 (+0000) Subject: Removed Mac OS 9 support because it prevents darwin builds from getting com error... X-Git-Tag: krb5-1.4-beta1~853 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=332557cc6e9e8a1599ced462a70928004cdb41c5;p=krb5.git Removed Mac OS 9 support because it prevents darwin builds from getting com error strings via the initialize_*_error_table function git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15612 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/et/error_table.h b/src/util/et/error_table.h index 505521dfe..9e1d26fa5 100644 --- a/src/util/et/error_table.h +++ b/src/util/et/error_table.h @@ -9,17 +9,13 @@ #include -#if defined(macintosh) -#define ET_EBUFSIZ 256 -#else #define ET_EBUFSIZ 64 -#endif struct et_list { /*@dependent@*//*@null@*/ struct et_list *next; /*@dependent@*//*@null@*/ const struct error_table *table; }; -#if !defined(_WIN32) && !defined(macintosh) && !(defined(__MACH__) && defined(__APPLE__)) +#if !defined(_WIN32) /*@null@*//*@dependent@*/ extern struct et_list * _et_list; #endif diff --git a/src/util/et/et_c.awk b/src/util/et/et_c.awk index 04451366e..fc2e1ac53 100644 --- a/src/util/et/et_c.awk +++ b/src/util/et/et_c.awk @@ -113,7 +113,7 @@ c2n["_"]=63 print "# include \"win-mac.h\"" > outfile print "#endif" > outfile print "" > outfile - print "#if !defined(_WIN32) && !defined(macintosh) && !(defined(__MACH__) && defined(__APPLE__))" > outfile + print "#if !defined(_WIN32)" > outfile print "extern void initialize_" table_name "_error_table (void);" > outfile print "#endif" > outfile print "" > outfile @@ -199,7 +199,7 @@ END { tab_base_low, table_item_count) > outfile } print "" > outfile - print "#if !defined(_WIN32) && !defined(macintosh) && !(defined(__MACH__) && defined(__APPLE__))" > outfile + print "#if !defined(_WIN32)" > outfile print "void initialize_" table_name "_error_table (void)" > outfile print " /*@modifies internalState@*/" > outfile print "{" > outfile diff --git a/src/util/et/et_c.pl b/src/util/et/et_c.pl index b512252c6..f635bc1ac 100644 --- a/src/util/et/et_c.pl +++ b/src/util/et/et_c.pl @@ -146,7 +146,7 @@ line: while (<>) { &Pick('>', $outfile) && (print $fh - '#if !defined(_WIN32) && !defined(macintosh) && !(defined(__MACH__) && defined(__APPLE__))'); + '#if !defined(_WIN32)'); &Pick('>', $outfile) && (print $fh 'extern void initialize_' . $table_name . @@ -238,18 +238,8 @@ line: while (<>) { (print $fh '};'); &Pick('>', $outfile) && (print $fh ''); -&Pick('>', $outfile) && - (print $fh - - '#if defined(macintosh) || (defined(__MACH__) && defined(__APPLE__))'); -&Pick('>', $outfile) && - (print $fh '#include '); -&Pick('>', $outfile) && - (print $fh '#else'); &Pick('>', $outfile) && (print $fh '#include '); -&Pick('>', $outfile) && - (print $fh '#endif'); &Pick('>', $outfile) && (print $fh ''); if ($tab_base_high == 0) { @@ -273,7 +263,7 @@ else { &Pick('>', $outfile) && (print $fh - '#if !defined(_WIN32) && !defined(macintosh) && !(defined(__MACH__) && defined(__APPLE__))'); + '#if !defined(_WIN32)'); &Pick('>', $outfile) && (print $fh 'void initialize_' . $table_name . '_error_table (void)'); &Pick('>', $outfile) && diff --git a/src/util/et/et_h.awk b/src/util/et/et_h.awk index 6bccc98e9..7a81dfa3f 100644 --- a/src/util/et/et_h.awk +++ b/src/util/et/et_h.awk @@ -148,7 +148,7 @@ END { print "" > outfile print "extern const struct error_table et_" table_name "_error_table;" > outfile print "" > outfile - print "#if !defined(_WIN32) && !defined(macintosh) && !(defined(__MACH__) && defined(__APPLE__))" > outfile + print "#if !defined(_WIN32)" > outfile print "/* for compatibility with older versions... */" > outfile print "extern void initialize_" table_name "_error_table () /*@modifies internalState@*/;" > outfile print "#else" > outfile diff --git a/src/util/et/et_h.pl b/src/util/et/et_h.pl index 5debb4869..110555098 100644 --- a/src/util/et/et_h.pl +++ b/src/util/et/et_h.pl @@ -136,18 +136,8 @@ line: while (<>) { (print $fh ' */'); &Pick('>', $outfile) && (print $fh ''); - &Pick('>', $outfile) && - (print $fh - - '#if defined(macintosh) || (defined(__MACH__) && defined(__APPLE__))'); - &Pick('>', $outfile) && - (print $fh '#include '); - &Pick('>', $outfile) && - (print $fh '#else'); &Pick('>', $outfile) && (print $fh '#include '); - &Pick('>', $outfile) && - (print $fh '#endif'); &Pick('>', $outfile) && (print $fh ''); } @@ -203,7 +193,7 @@ else { &Pick('>', $outfile) && (print $fh - '#if !defined(_WIN32) && !defined(macintosh) && !(defined(__MACH__) && defined(__APPLE__))'); + '#if !defined(_WIN32)'); &Pick('>', $outfile) && (print $fh '/* for compatibility with older versions... */'); &Pick('>', $outfile) &&