diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-11-10 10:25:17 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-11-10 10:25:17 +0000 |
commit | 522d28cda597706bae8ff7308c71f17901457300 (patch) | |
tree | c6b46252224cdee2c3907b5020f2e52c58aa0fe6 /Build/source/texk/makeindexk/sortid.c | |
parent | 5a42ce90064cbba406d8be759ca67aa2972144da (diff) |
towards TL2010: texk/makeindexk
git-svn-id: svn://tug.org/texlive/trunk@15962 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/makeindexk/sortid.c')
-rw-r--r-- | Build/source/texk/makeindexk/sortid.c | 55 |
1 files changed, 9 insertions, 46 deletions
diff --git a/Build/source/texk/makeindexk/sortid.c b/Build/source/texk/makeindexk/sortid.c index c38ebcefb0f..be75fb5f7b7 100644 --- a/Build/source/texk/makeindexk/sortid.c +++ b/Build/source/texk/makeindexk/sortid.c @@ -33,16 +33,16 @@ static long idx_gc; -static int check_mixsym ARGS((char *x,char *y)); -static int compare ARGS((struct KFIELD * *a,struct KFIELD * *b)); -static int compare_one ARGS((char *x,char *y)); -static int compare_page ARGS((struct KFIELD * *a,struct KFIELD * *b)); -static int compare_string ARGS((unsigned char *a,unsigned char *b)); -static int new_strcmp ARGS((unsigned char *a, unsigned char *b, - int option)); +static int check_mixsym (char *x,char *y); +static int compare (struct KFIELD * *a,struct KFIELD * *b); +static int compare_one (char *x,char *y); +static int compare_page (struct KFIELD * *a,struct KFIELD * *b); +static int compare_string (unsigned char *a,unsigned char *b); +static int new_strcmp (unsigned char *a, unsigned char *b, + int option); void -sort_idx(VOID_ARG) +sort_idx(void) { #ifdef HAVE_SETLOCALE char *prev_locale; @@ -56,7 +56,7 @@ sort_idx(VOID_ARG) idx_dc = 0; idx_gc = 0L; qqsort((char *) idx_key, (int) idx_gt, (int) sizeof(FIELD_PTR), - (int (*) ARGS((char*,char*)))compare); + (int (*)(char*,char*))compare); #ifdef HAVE_SETLOCALE setlocale(LC_COLLATE, prev_locale); #endif @@ -64,13 +64,7 @@ sort_idx(VOID_ARG) } static int -#if STDC compare(FIELD_PTR *a, FIELD_PTR *b) -#else -compare(a, b) -FIELD_PTR *a; -FIELD_PTR *b; -#endif { int i; int dif; @@ -95,13 +89,7 @@ FIELD_PTR *b; } static int -#if STDC compare_one(char *x,char *y) -#else -compare_one(x, y) -char *x; -char *y; -#endif { int m; int n; @@ -153,13 +141,7 @@ char *y; } static int -#if STDC check_mixsym(char *x, char *y) -#else -check_mixsym(x, y) -char *x; -char *y; -#endif { int m; int n; @@ -178,13 +160,7 @@ char *y; static int -#if STDC compare_string(unsigned char *a, unsigned char *b) -#else -compare_string(a, b) -unsigned char *a; -unsigned char *b; -#endif { int i = 0; int j = 0; @@ -219,13 +195,7 @@ unsigned char *b; } static int -#if STDC compare_page(FIELD_PTR *a, FIELD_PTR *b) -#else -compare_page(a, b) -FIELD_PTR *a; -FIELD_PTR *b; -#endif { int m = 0; short i = 0; @@ -323,14 +293,7 @@ FIELD_PTR *b; static int -#if STDC new_strcmp(unsigned char *s1, unsigned char *s2, int option) -#else -new_strcmp(s1, s2, option) -unsigned char *s1; -unsigned char *s2; -int option; -#endif { int i; |