comparison plugins/spellchk.c @ 7631:ea2d07ad05a9

[gaim-migrate @ 8255] long car rides and a power inverter can generate some interesting code tweaks committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 25 Nov 2003 07:16:11 +0000
parents 08c9d0dcf906
children 8720427121f5
comparison
equal deleted inserted replaced
7630:2df4d470c12a 7631:ea2d07ad05a9
138 138
139 139
140 140
141 static int num_words(const char *m) { 141 static int num_words(const char *m) {
142 int count = 0; 142 int count = 0;
143 int pos; 143 guint pos;
144 int state = 0; 144 int state = 0;
145 145
146 for (pos = 0; pos < strlen(m); pos++) { 146 for (pos = 0; pos < strlen(m); pos++) {
147 switch (state) { 147 switch (state) {
148 case 0: /* expecting word */ 148 case 0: /* expecting word */
167 return count; 167 return count;
168 } 168 }
169 169
170 static int get_word(char *m, int word) { 170 static int get_word(char *m, int word) {
171 int count = 0; 171 int count = 0;
172 int pos = 0; 172 guint pos = 0;
173 int state = 0; 173 int state = 0;
174 174
175 for (pos = 0; pos < strlen(m) && count <= word; pos++) { 175 for (pos = 0; pos < strlen(m) && count <= word; pos++) {
176 switch (state) { 176 switch (state) {
177 case 0: 177 case 0: