pike.git / lib / modules / Protocols.pmod / X.pmod / KeySyms.pmod

version» Context lines:

pike.git/lib/modules/Protocols.pmod/X.pmod/KeySyms.pmod:1:   /* KeySyms.pmod    * -  * $Id: KeySyms.pmod,v 1.2 2002/06/16 17:55:46 nilsson Exp $ +  * $Id: KeySyms.pmod,v 1.3 2003/01/20 17:44:01 nilsson Exp $    */      /*    * Protocols.X, a Pike interface to the X Window System    *    * See COPYRIGHT for copyright information.    *    * This program is free software; you can redistribute it and/or modify    * it under the terms of the GNU General Public License as published by    * the Free Software Foundation; either version 2 of the License, or
pike.git/lib/modules/Protocols.pmod/X.pmod/KeySyms.pmod:1540:    compose_state += sprintf("%4c", keysym);       if(arrayp(compose_patterns[compose_state])) return 0; // More to come..       if(compose_patterns[compose_state])    {    keysym = compose_patterns[compose_state];    compose_state="";    return _LookupKeysym( keysym );    } -  if(strlen(compose_state)>4) +  if(sizeof(compose_state)>4)    {    string res=""; -  while(strlen(compose_state) +  while(sizeof(compose_state)    && (sscanf(compose_state, "%4c%s", keysym, compose_state)==2))    res += _LookupKeysym( keysym ) || ""; -  return strlen(res)?res:0; +  return sizeof(res)?res:0;    }    compose_state="";    return _LookupKeysym( keysym );    }