Cosmetic changes to comments

This commit is contained in:
Matthias Clasen
2011-12-28 11:32:44 -05:00
parent 849770ac54
commit 694bbf4ac0

View File

@ -70,11 +70,11 @@ struct _GtkComposeTableCompact
/* This file contains the table of the compose sequences, /* This file contains the table of the compose sequences,
* static const guint16 gtk_compose_seqs_compact[] = {} * static const guint16 gtk_compose_seqs_compact[] = {}
* IT is generated from the compose-parse.py script. * It is generated from the compose-parse.py script.
*/ */
#include "gtkimcontextsimpleseqs.h" #include "gtkimcontextsimpleseqs.h"
/* From the values below, the value 23 means the number of different first keysyms /* From the values below, the value 24 means the number of different first keysyms
* that exist in the Compose file (from Xorg). When running compose-parse.py without * that exist in the Compose file (from Xorg). When running compose-parse.py without
* parameters, you get the count that you can put here. Needed when updating the * parameters, you get the count that you can put here. Needed when updating the
* gtkimcontextsimpleseqs.h header file (contains the compose sequences). * gtkimcontextsimpleseqs.h header file (contains the compose sequences).
@ -253,7 +253,7 @@ check_table (GtkIMContextSimple *context_simple,
guint16 *prev_seq; guint16 *prev_seq;
/* Back up to the first sequence that matches to make sure /* Back up to the first sequence that matches to make sure
* we find the exact match if their is one. * we find the exact match if there is one.
*/ */
while (seq > table->data) while (seq > table->data)
{ {
@ -480,7 +480,8 @@ check_normalize_nfc (gunichar* combination_buffer, gint n_compose)
/* Xorg reuses dead_tilde for the perispomeni diacritic mark. /* Xorg reuses dead_tilde for the perispomeni diacritic mark.
* We check if base character belongs to Greek Unicode block, * We check if base character belongs to Greek Unicode block,
* and if so, we replace tilde with perispomeni. */ * and if so, we replace tilde with perispomeni.
*/
if (combination_buffer[0] >= 0x390 && combination_buffer[0] <= 0x3FF) if (combination_buffer[0] >= 0x390 && combination_buffer[0] <= 0x3FF)
{ {
for (i = 1; i < n_compose; i++ ) for (i = 1; i < n_compose; i++ )
@ -589,9 +590,8 @@ check_algorithmically (GtkIMContextSimple *context_simple,
i--; i--;
} }
/* If the buffer normalizes to a single character, /* If the buffer normalizes to a single character, then modify the order
* then modify the order of combination_buffer accordingly, if necessary, * of combination_buffer accordingly, if necessary, and return TRUE.
* and return TRUE.
*/ */
if (check_normalize_nfc (combination_buffer, n_compose)) if (check_normalize_nfc (combination_buffer, n_compose))
{ {
@ -668,7 +668,7 @@ check_hex (GtkIMContextSimple *context_simple,
n = strtoul (str->str, &nptr, 16); n = strtoul (str->str, &nptr, 16);
/* if strtoul fails it probably means non-latin digits were used; /* If strtoul fails it probably means non-latin digits were used;
* we should in principle handle that, but we probably don't. * we should in principle handle that, but we probably don't.
*/ */
if (nptr - str->str < str->len) if (nptr - str->str < str->len)