ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/encoding.C
(Generate patch)

Comparing rxvt-unicode/src/encoding.C (file contents):
Revision 1.29 by sf-exg, Tue Dec 14 08:01:51 2010 UTC vs.
Revision 1.30 by sf-exg, Sat Dec 18 18:17:38 2010 UTC

21 *----------------------------------------------------------------------*/ 21 *----------------------------------------------------------------------*/
22 22
23#include "../config.h" 23#include "../config.h"
24 24
25#include "encoding.h" 25#include "encoding.h"
26#include "rxvtutil.h"
26 27
27#include <cstdlib> 28#include <cstdlib>
28#include <cstring> 29#include <cstring>
29 30
30static const struct n2cs { 31static const struct n2cs {
285 286
286unicode_t 287unicode_t
287rxvt_compose (unicode_t c1, unicode_t c2) 288rxvt_compose (unicode_t c1, unicode_t c2)
288{ 289{
289 int l = 0; 290 int l = 0;
290 int r = sizeof (rxvt_compose_table) / sizeof (rxvt_compose_entry) - 1; 291 int r = ARRAY_LENGTH(rxvt_compose_table) - 1;
291 int m; 292 int m;
292 293
293 while (r >= l) 294 while (r >= l)
294 { 295 {
295 m = (l + r) / 2; 296 m = (l + r) / 2;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines