Fix ubconfc
authorIan Lynagh <igloo@earth.li>
Fri, 13 Jun 2008 20:14:56 +0000 (20:14 +0000)
committerIan Lynagh <igloo@earth.li>
Fri, 13 Jun 2008 20:14:56 +0000 (20:14 +0000)
The current code doesn't seem to be what was used to generate WCsubst.c,
so I'm not sure if it never worked, or if my tools work slightly
differently to those of the previous user.

cbits/ubconfc

index cf0967c..47637a9 100644 (file)
@@ -153,8 +153,8 @@ function dumpblock()
        updist=up-self
        lowdist=low-self
        titledist=title-self
-       rule="GENCAT_"cat", NUMCAT_"cat", "((convpos==1)?
-                               ("1, " updist ", " lowdist ", " titledist):
+       rule="GENCAT_"cat", NUMCAT_"cat", "((convpos==1)?                   \
+                               ("1, " updist ", " lowdist ", " titledist): \
                                ("0, 0, 0, 0"))
        if(cats[cat]=="")
        {
@@ -329,7 +329,7 @@ int p(int c) \\
 { \\
        const struct _convrule_ *rule=getrule(convchars,NUM_CONVBLOCKS,c);\\
        if(rule==&nullrule) return c;\\
-       return c+rule->##to;\\
+       return c+rule->to;\\
 }
 
 caseconv(u_towupper,updist)