diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-17 19:03:42 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-17 19:03:42 +0000 |
commit | a6bdd56c5b098599942e4091ae7e2af2d4631b44 (patch) | |
tree | e0a23167aca0fb1127f4cd78edf458b633b31eac /util | |
parent | 6a13c9e08bb042c81ae904c44a38a50d785c824e (diff) |
merge XFree86 4.3.0.1 to -CURRENT
Diffstat (limited to 'util')
-rw-r--r-- | util/Shell.ht | 5 | ||||
-rw-r--r-- | util/StrDefs.ct | 5 | ||||
-rw-r--r-- | util/StrDefs.ht | 5 | ||||
-rw-r--r-- | util/makestrs.c | 95 | ||||
-rw-r--r-- | util/makestrs.man | 25 |
5 files changed, 45 insertions, 90 deletions
diff --git a/util/Shell.ht b/util/Shell.ht index 6e87abe..c511645 100644 --- a/util/Shell.ht +++ b/util/Shell.ht @@ -46,6 +46,7 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ******************************************************************/ +/* $XFree86: xc/lib/Xt/util/Shell.ht,v 3.5 2001/12/14 19:56:39 dawes Exp $ */ #ifndef _XtShell_h #define _XtShell_h @@ -63,11 +64,7 @@ SOFTWARE. */ #ifndef XTSTRINGDEFINES -#ifdef __STDC__ #define _XtShell_h_Const const -#else -#define _XtShell_h_Const /**/ -#endif #endif <<<STRING_TABLE_GOES_HERE>>> diff --git a/util/StrDefs.ct b/util/StrDefs.ct index 3c4417f..0c60d80 100644 --- a/util/StrDefs.ct +++ b/util/StrDefs.ct @@ -46,12 +46,9 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ******************************************************************/ +/* $XFree86: xc/lib/Xt/util/StrDefs.ct,v 3.5 2001/12/14 19:56:39 dawes Exp $ */ -#ifdef __STDC__ #define Const const -#else -#define Const /**/ -#endif <<<STRING_TABLE_GOES_HERE>>> diff --git a/util/StrDefs.ht b/util/StrDefs.ht index 4132c79..c3f70b3 100644 --- a/util/StrDefs.ht +++ b/util/StrDefs.ht @@ -46,16 +46,13 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ******************************************************************/ +/* $XFree86: xc/lib/Xt/util/StrDefs.ht,v 3.5 2001/12/14 19:56:39 dawes Exp $ */ #ifndef _XtStringDefs_h_ #define _XtStringDefs_h_ #ifndef XTSTRINGDEFINES -#ifdef __STDC__ #define _XtStringDefs_h_Const const -#else -#define _XtStringDefs_h_Const /**/ -#endif #endif <<<STRING_TABLE_GOES_HERE>>> diff --git a/util/makestrs.c b/util/makestrs.c index 5d58f35..803bad7 100644 --- a/util/makestrs.c +++ b/util/makestrs.c @@ -25,16 +25,14 @@ used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ +/* $XFree86: xc/config/util/makestrs.c,v 3.7 2001/12/14 19:53:22 dawes Exp $ */ /* Constructs string definitions */ #include <stdio.h> #include <X11/Xos.h> -#ifndef X_NOT_STDC_ENV #include <stdlib.h> -#else -char *malloc(); -#endif +#include <unistd.h> #if defined(macII) && !defined(__STDC__) /* stdlib.h fails to define these */ char *malloc(); #endif /* macII */ @@ -84,9 +82,7 @@ static char* externdefstr; #define X_MAGIC_STRING "<<<STRING_TABLE_GOES_HERE>>>" -static void WriteHeaderProlog (f, phile) - FILE* f; - File* phile; +static void WriteHeaderProlog (FILE *f, File *phile) { Table* t; TableEnt* te; @@ -107,9 +103,7 @@ static void WriteHeaderProlog (f, phile) (void) fprintf (f, "%s", "#else\n"); } -static void IntelABIWriteHeader (f, phile) - FILE* f; - File* phile; +static void IntelABIWriteHeader (FILE *f, File *phile) { Table* t; TableEnt* te; @@ -128,9 +122,7 @@ static void IntelABIWriteHeader (f, phile) (void) fprintf (f, "#endif /* %s */\n", featurestr); } -static void SPARCABIWriteHeader (f, phile) - FILE* f; - File* phile; +static void SPARCABIWriteHeader (FILE *f, File *phile) { Table* t; TableEnt* te; @@ -141,9 +133,7 @@ static void SPARCABIWriteHeader (f, phile) prefixstr, te->left, te->right); } -static void FunctionWriteHeader (f, phile) - FILE* f; - File* phile; +static void FunctionWriteHeader (FILE *f, File *phile) { Table* t; TableEnt* te; @@ -164,9 +154,7 @@ static void FunctionWriteHeader (f, phile) (void) fprintf (f, "#endif /* %s */\n", featurestr); } -static void ArrayperWriteHeader (f, phile) - FILE* f; - File* phile; +static void ArrayperWriteHeader (FILE *f, File *phile) { Table* t; TableEnt* te; @@ -184,9 +172,7 @@ static void ArrayperWriteHeader (f, phile) (void) fprintf (f, "#endif /* %s */\n", featurestr); } -static void DefaultWriteHeader (f, phile) - FILE* f; - File* phile; +static void DefaultWriteHeader (FILE *f, File *phile) { Table* t; TableEnt* te; @@ -207,9 +193,7 @@ static void DefaultWriteHeader (f, phile) (void) fprintf (f, "#endif /* %s */\n", featurestr); } -static void CopyTmplProlog (tmpl, f) - FILE* tmpl; - FILE* f; +static void CopyTmplProlog (FILE *tmpl, FILE *f) { char buf[1024]; static char* magic_string = X_MAGIC_STRING; @@ -223,9 +207,7 @@ static void CopyTmplProlog (tmpl, f) } } -static void CopyTmplEpilog (tmpl, f) - FILE* tmpl; - FILE* f; +static void CopyTmplEpilog (FILE *tmpl, FILE *f) { char buf[1024]; @@ -236,16 +218,11 @@ static void CopyTmplEpilog (tmpl, f) static char* abistring[] = { "Default", "Array per string", "Intel", "Intel BC", "SPARC", "Function" }; -static void WriteHeader (tagline, phile, abi) - char* tagline; - File* phile; - int abi; +static void WriteHeader (char *tagline, File *phile, int abi) { FILE* f; char* tmp; - Table* t; - TableEnt* te; - static void (*headerproc[])() = { + static void (*headerproc[])(FILE *f, File *phile) = { DefaultWriteHeader, ArrayperWriteHeader, IntelABIWriteHeader, IntelABIWriteHeader, SPARCABIWriteHeader, FunctionWriteHeader }; @@ -284,9 +261,7 @@ static void WriteHeader (tagline, phile, abi) (void) fclose (f); } -static void WriteSourceLine (te, abi, fudge) - TableEnt* te; - int abi; +static void WriteSourceLine (TableEnt *te, int abi, int fudge) { char* c; @@ -298,8 +273,7 @@ static void WriteSourceLine (te, abi, fudge) static char* const_string = "%s %sConst char %s[] = {\n"; -static void IntelABIWriteSource (abi) - int abi; +static void IntelABIWriteSource (int abi) { File* phile; @@ -317,8 +291,7 @@ static void IntelABIWriteSource (abi) } } -static void IntelABIBCWriteSource (abi) - int abi; +static void IntelABIBCWriteSource (int abi) { File* phile; @@ -345,8 +318,7 @@ static void IntelABIBCWriteSource (abi) } } -static void FunctionWriteSource (abi) - int abi; +static void FunctionWriteSource (int abi) { File* phile; @@ -368,8 +340,7 @@ static void FunctionWriteSource (abi) } } -static void ArrayperWriteSource (abi) - int abi; +static void ArrayperWriteSource (int abi) { File* phile; static int done_atom; @@ -385,14 +356,14 @@ static void ArrayperWriteSource (abi) done_atom = 1; } (void) printf ("%s %sConst char %s%s[] = \"%s\";\n", - externdefstr, conststr ? conststr : prefixstr, + externdefstr, conststr ? conststr : "", + prefixstr, te->left, te->right); } } } -static void DefaultWriteSource (abi) - int abi; +static void DefaultWriteSource (int abi) { File* phile; @@ -410,11 +381,9 @@ static void DefaultWriteSource (abi) } } -static void WriteSource(tagline, abi) - char* tagline; - int abi; +static void WriteSource(char *tagline, int abi) { - static void (*sourceproc[])() = { + static void (*sourceproc[])(int) = { DefaultWriteSource, ArrayperWriteSource, IntelABIWriteSource, IntelABIBCWriteSource, DefaultWriteSource, FunctionWriteSource }; @@ -446,8 +415,7 @@ static void WriteSource(tagline, abi) if (tmpl) CopyTmplEpilog (tmpl, stdout); } -static void DoLine(buf) - char* buf; +static void DoLine(char *buf) { #define X_NO_TOKEN 0 #define X_FILE_TOKEN 1 @@ -611,8 +579,7 @@ static void DoLine(buf) } } -static void IntelABIIndexEntries (file) - File* file; +static void IntelABIIndexEntries (File *file) { Table* t; TableEnt* te; @@ -625,8 +592,7 @@ static void IntelABIIndexEntries (file) } } -static void DefaultIndexEntries (file) - File* file; +static void DefaultIndexEntries (File *file) { Table* t; TableEnt* te; @@ -640,9 +606,7 @@ static void DefaultIndexEntries (file) } } -static void IndexEntries (file,abi) - File* file; - int abi; +static void IndexEntries (File *file, int abi) { switch (abi) { case X_SPARC_ABI: @@ -657,8 +621,7 @@ static void IndexEntries (file,abi) } } -static char* DoComment (line) - char* line; +static char* DoComment (char *line) { char* tag; char* eol; @@ -676,9 +639,7 @@ static char* DoComment (line) return ret; } -int main(argc, argv) - int argc; - char** argv; +int main(int argc, char *argv[]) { int len, i; char* tagline = NULL; diff --git a/util/makestrs.man b/util/makestrs.man index 7cc6b4c..7da5e8b 100644 --- a/util/makestrs.man +++ b/util/makestrs.man @@ -22,7 +22,10 @@ .\" be used in advertising or otherwise to promote the sale, use or other .\" dealing in this Software without prior written authorization from The .\" Open Group. -.TH MAKESTRS 1 "Release 6.4" "X Version 11" +.\" +.\" $XFree86: xc/config/util/makestrs.man,v 3.8 2001/12/14 19:53:22 dawes Exp $ +.\" +.TH MAKESTRS 1 __xorgversion__ .SH NAME makestrs \- makes string table C source and header(s) .SH SYNOPSIS @@ -83,26 +86,26 @@ no abioptions are specified. .SH SYNTAX The syntax for string-list file is (items in square brackets are optional): .RS 4 -#prefix <text> +\&#prefix <text> .RE .RS 4 -#feature <text> +\&#feature <text> .RE .RS 4 -#externref <text> +\&#externref <text> .RE .RS 4 -#externdef [<text>] +\&#externdef [<text>] .RE .RS 4 [#ctempl <text>] .RE .LP .RS 4 -#file <filename> +\&#file <filename> .RE .RS 4 -#table <tablename> +\&#table <tablename> .RE .RS 4 [#htempl] @@ -129,19 +132,19 @@ The syntax for string-list file is (items in square brackets are optional): <text> .RE .RS 4 -... + ... .RE .RS 4 -#table <tablename> +\&#table <tablename> .RE .RS 4 -...] + ...] .RE .RS 4 [#file <filename> .RE .RS 4 -...] + ...] .RE .LP In words you may have one or more #file directives. Each #file may have |