comparison plugins/gestures/stroke.c @ 6063:5239a3b4ab33

[gaim-migrate @ 6513] clean up a lot of compiler warnings. Hopefully I didn't break anything too badly. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 08 Jul 2003 06:11:49 +0000
parents 16540914c963
children 19fd43d52d18
comparison
equal deleted inserted replaced
6062:2cd7c409d71d 6063:5239a3b4ab33
129 else { 129 else {
130 /* we are moving to a new bin -- consider adding to the sequence */ 130 /* we are moving to a new bin -- consider adding to the sequence */
131 if ((bin_count > (metrics->point_count * GSTROKE_BIN_COUNT_PERCENT)) 131 if ((bin_count > (metrics->point_count * GSTROKE_BIN_COUNT_PERCENT))
132 || (first_bin == TRUE)) { 132 || (first_bin == TRUE)) {
133 133
134 //gchar val = '0' + prev_bin; 134 /*
135 //printf ("%c", val);fflush (stdout); 135 gchar val = '0' + prev_bin;
136 //g_string_append (&sequence, &val); 136 printf ("%c", val);fflush (stdout);
137 g_string_append (&sequence, &val);
138 */
137 139
138 first_bin = FALSE; 140 first_bin = FALSE;
139 sequence[sequence_count++] = '0' + prev_bin; 141 sequence[sequence_count++] = '0' + prev_bin;
140 /* printf ("DEBUG:: adding sequence: %d\n", prev_bin); */ 142 /* printf ("DEBUG:: adding sequence: %d\n", prev_bin); */
141 143
156 /* printf ("DEBUG:: adding final sequence: %d\n", current_bin); */ 158 /* printf ("DEBUG:: adding final sequence: %d\n", current_bin); */
157 159
158 _gstroke_init (metrics); 160 _gstroke_init (metrics);
159 161
160 { 162 {
161 // FIXME: get rid of this block 163 /* FIXME: get rid of this block
162 //gchar val = '0' + current_bin; 164 gchar val = '0' + current_bin;
163 //printf ("%c\n", val);fflush (stdout); 165 printf ("%c\n", val);fflush (stdout);
164 //g_string_append (&sequence, '\0'); 166 g_string_append (&sequence, '\0');
167 */
165 sequence[sequence_count] = '\0'; 168 sequence[sequence_count] = '\0';
166 } 169 }
167 170
168 return TRUE; 171 return TRUE;
169 } 172 }