[9fans] Fwd: Fix for using Plan9 compose sequences with Spanish keyboards in X

2011-01-04 Thread pmarin
Spanish keyboards use different keysyms which are generated by the
following dead keys:

asciitilde →  dead_tilde
grave  → dead_grave
asciicircum → dead_circumflex
apostrophe → dead_acute

The attached awk script can be used to fix the output of 'mklatinkbd -x':

 mklatinkbd -x $PLAN9/lib/keyboard | awk -f spkeys.awk $HOME/.XCompose

Cheers.
Pmarin


spkeys.awk
Description: Binary data


Re: [9fans] Fix for using Plan9 compose sequences with Spanish keyboards in X

2011-01-04 Thread pmarin
Sorry I forgot the diaeresis:
quotedbl → dead_diaeresis

Reattached the awk script.

On Tue, Jan 4, 2011 at 12:26 PM, pmarin pmarin.m...@gmail.com wrote:
 Spanish keyboards use different keysyms which are generated by the
 following dead keys:

 asciitilde →  dead_tilde
 grave  → dead_grave
 asciicircum → dead_circumflex
 apostrophe → dead_acute

 The attached awk script can be used to fix the output of 'mklatinkbd -x':

  mklatinkbd -x $PLAN9/lib/keyboard | awk -f spkeys.awk $HOME/.XCompose

 Cheers.
 Pmarin



spkeys.awk
Description: Binary data


Re: [9fans] vlong double-spill botch

2011-01-04 Thread Fernan Bolando
On Mon, Jan 3, 2011 at 10:56 PM, erik quanstrom
quans...@labs.coraid.com wrote:
 what does vlong double-spill botch mean in
 r = (a * b) + (((a * u) + (b * t))  18);          /* low is only 35b */


 this is a workaround that i put in the compiler;
 it's not in the distribution.  the distribution
 compiler happily miscompiles.

 if both the left and rhs side of an expression
 need to allocate more registers, then 8c often
 miscompiles.  you may be able to fix this by
 changing 18 to 18ull, but you might as well
 do it this way:

        r = a*u + b*t;
        r = 18ull;
        r += a*b;

This did not work, but this did
ra = a * b;
rb = a * u;
rc = b * t;
r = ra + ((rb + rc)  18);