lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev lynx2-8-1pre6: Broken def7_uni.h ?


From: Leonid Pauzner
Subject: Re: lynx-dev lynx2-8-1pre6: Broken def7_uni.h ?
Date: Sat, 3 Oct 1998 14:05:48 +0400 (MSD)

>>      * From: Serge MUNHOVEN <address@hidden>

>> I just compiled lynx2-8-1pre6 under Digital UNIX 4.0D :

>> Everything compiles fine, except :

>> cc -DHAVE_CONFIG_H  -I. -I.. -Ichrtrans -I./chrtrans -I.. -I../src 
>> -I../WWW/Lib
>> r
>> ary/Implementation  -std1 -O -I/usr/local/include -std1 -DDSYS5  -c 
>> ./UCdomap.c
>> cc: Error: chrtrans/def7_uni.h, line 12: Invalid expression.
>>         , , , , , , , ,
>> --------^

>> and subsequent resulting errors.
>> It appears that the src/chrtrans/def7_uni.h generated by makeuctb contains
>> an empty static u8 dfont_unicount[256] (just 255 commas; no data).

I was plain wrong in my previous mail:
unicount[i] is initialized and printed with printf("%3d", unicount[i]);
any problem?


    /*
     *  For now we assume the default font is always 256 characters.
     */
    fontlen = 256;

    /*
     *  Initialize table.
     */
    for (i = 0; i < fontlen; i++) {
        unicount[i] = 0;
    }

/***********/

    printf("\
/*\n\
 *  uni_hash.tbl\n\
 *\n\
 *  Do not edit this file; it was automatically generated by\n\
 *\n\
 *  %s %s\n\
 *\n\
 */\n\
\n\
static u8 dfont_unicount%s[%d] = \n\
{\n\t", argv[0], argv[1], id_append, fontlen);

    for (i = 0; i < fontlen; i++) {
        if (i >= 128 && unicount[i] > 0 && i < lowest_eight) {
            lowest_eight = i;
        }
        printf("%3d", unicount[i]);
        if (i == (fontlen - 1)) {
            printf("\n};\n");
        } else if ((i % 8) == 7) {
            printf(",\n\t");
        } else {
            printf(", ");
        }
    }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]