summaryrefslogtreecommitdiff
path: root/plugins/MirOTR/ekhtml/src/ekhtml_mktables.c
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-02 20:55:18 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-02 20:55:18 +0000
commit78c0815c4118fe24ab78cce2dc48a6232dcd824a (patch)
tree8512c50df70b8dd80c919e88ade3419207c95956 /plugins/MirOTR/ekhtml/src/ekhtml_mktables.c
parentce816d83a8c75808e0eb06832592bffefe4a8dc4 (diff)
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirOTR/ekhtml/src/ekhtml_mktables.c')
-rw-r--r--plugins/MirOTR/ekhtml/src/ekhtml_mktables.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/MirOTR/ekhtml/src/ekhtml_mktables.c b/plugins/MirOTR/ekhtml/src/ekhtml_mktables.c
index 9a8dea2a03..235a0a7e75 100644
--- a/plugins/MirOTR/ekhtml/src/ekhtml_mktables.c
+++ b/plugins/MirOTR/ekhtml/src/ekhtml_mktables.c
@@ -106,21 +106,21 @@ static EKHTML_CHARMAP_TYPE charmap_values(char in){
#define EKHTML_STRINGIFY(x) #x
-static void print_charmap(char *name, EKHTML_CHARMAP_TYPE (*cmap_func)(char)){
+static void print_charmap(char *name, EKHTML_CHARMAP_TYPE (*cmap_func)(char)) {
int ch;
char sbuf[256];
sprintf_s(sbuf, 256, "0x%%0%dx ", EKHTML_CHARMAP_LEN * 2);
printf("#ifdef EKHTML_USE_TABLES\n");
printf("const %s %s[256] = {\n", EKHTML_CHARMAP_TYPE_S, name);
- for(ch=0; ch < 256; ch++){
+ for(ch=0; ch < 256; ch++) {
printf(sbuf, cmap_func((char)ch));
if(isgraph(ch))
printf("/* '%c' */", ch);
else
printf("/* 0x%.2x */", ch);
printf(", ");
- if(!((ch + 1) % 4))
+ if (!((ch + 1) % 4))
printf("\n");
}
printf("};\n\n");
@@ -129,7 +129,7 @@ static void print_charmap(char *name, EKHTML_CHARMAP_TYPE (*cmap_func)(char)){
printf("#endif\n");
}
-int main(int argc, char *argv[]){
+int main(int argc, char *argv[]) {
printf("#ifndef EKHTML_MKTABLES_DOT_H\n");
printf("#define EKHTML_MKTABLES_DOT_H\n");