[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemacs-devel] Changes to qemacs/charsetmore.c
From: |
Charlie Gordon |
Subject: |
[Qemacs-devel] Changes to qemacs/charsetmore.c |
Date: |
Wed, 11 May 2005 11:12:15 -0400 |
Index: qemacs/charsetmore.c
diff -u qemacs/charsetmore.c:1.1.1.1 qemacs/charsetmore.c:1.2
--- qemacs/charsetmore.c:1.1.1.1 Sat May 29 10:18:34 2004
+++ qemacs/charsetmore.c Wed May 11 15:12:14 2005
@@ -53,12 +53,12 @@
int i, n;
table = s->table;
- for(i=0;i<charset->min_char;i++)
+ for (i = 0; i < charset->min_char; i++)
*table++ = i;
n = charset->max_char - charset->min_char + 1;
- for(i=0;i<n;i++)
+ for (i = 0; i < n; i++)
*table++ = charset->private_table[i];
- for(i=charset->max_char + 1;i<256;i++)
+ for (i = charset->max_char + 1; i < 256;i++)
*table++ = i;
}
@@ -75,7 +75,7 @@
} else {
n = charset->max_char - charset->min_char + 1;
table = charset->private_table;
- for(i=0;i<n;i++) {
+ for (i = 0; i < n; i++) {
if (table[i] == c)
goto found;
}
@@ -113,9 +113,11 @@
{
b1 -= 0x21;
b2 -= 0x21;
+
if (b1 > 76)
return 0;
- switch(b1) {
+
+ switch (b1) {
case 0:
case 2:
case 3:
@@ -149,11 +151,12 @@
{
unsigned short *table = s->table;
int i;
- for(i=0;i<256;i++)
+
+ for (i = 0; i < 256; i++)
table[i] = i;
table[0x8e] = ESCAPE_CHAR;
table[0x8f] = ESCAPE_CHAR;
- for(i=0xa1;i<=0xfe;i++)
+ for (i = 0xa1; i <= 0xfe; i++)
table[i] = ESCAPE_CHAR;
}
@@ -224,17 +227,17 @@
unsigned short *table = s->table;
int i;
- for(i=0;i<256;i++)
+ for (i = 0; i < 256; i++)
table[i] = i;
table['\\'] = 0x00a5;
table[0x80] = '\\';
- for(i=0x81;i<=0x9f;i++)
+ for (i = 0x81; i <= 0x9f; i++)
table[i] = ESCAPE_CHAR;
- for(i=0xa1;i<=0xdf;i++)
+ for (i = 0xa1; i <= 0xdf; i++)
table[i] = i - 0xa1 + 0xff61;
- for(i=0xe0;i<=0xef;i++)
+ for (i = 0xe0; i <= 0xef; i++)
table[i] = ESCAPE_CHAR;
- for(i=0xf0;i<=0xfc;i++)
+ for (i = 0xf0; i <= 0xfc; i++)
table[i] = ESCAPE_CHAR;
table[0xfd] = 0xa9;
table[0xfe] = 0x2122;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemacs-devel] Changes to qemacs/charsetmore.c,
Charlie Gordon <=