~vcs-imports/gawk/master

« back to all changes in this revision

Viewing changes to awkgram.y

  • Committer: Arnold D. Robbins
  • Date: 2010-12-25 19:41:40 UTC
  • Revision ID: git-v1:ca298b87ce3da706ba7f4854c978b32936fe5b41
Some fixes for z/OS and also Autoconf.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1810
1810
/* tokcompare --- lexicographically compare token names for sorting */
1811
1811
 
1812
1812
static int
1813
 
tokcompare(void *l, void *r)
 
1813
tokcompare(const void *l, const void *r)
1814
1814
{
1815
1815
        struct token *lhs, *rhs;
1816
1816
 
5855
5855
        static int did_sort = FALSE;
5856
5856
 
5857
5857
        if (! did_sort) {
5858
 
                qsort(tokentab, sizeof(tokentab) / sizeof(tokentab[0]),
 
5858
                qsort((void *) tokentab,
 
5859
                                sizeof(tokentab) / sizeof(tokentab[0]),
5859
5860
                                sizeof(tokentab[0]), tokcompare);
5860
5861
                did_sort = TRUE;
5861
5862
        }