/[anubis]/anubis/src/map.c
ViewVC logotype

Diff of /anubis/src/map.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by gray, Fri Feb 7 12:42:23 2003 UTC revision 1.4 by polak, Fri Feb 7 18:23:44 2003 UTC
# Line 120  translate_parser(int method, int key, ch Line 120  translate_parser(int method, int key, ch
120                                    
121                  for (ptr2 = ptr1; *ptr2 && !isspace(*ptr2); ptr2++)                  for (ptr2 = ptr1; *ptr2 && !isspace(*ptr2); ptr2++)
122                          ;                          ;
   
123                  if (!*ptr2) {                  if (!*ptr2) {
124                          info(VERBOSE, _("Translation map: incorrect syntax."));                          info(VERBOSE, _("Translation map: incorrect syntax."));
125                          break;                          break;
# Line 129  translate_parser(int method, int key, ch Line 128  translate_parser(int method, int key, ch
128                  *ptr2++ = 0;                  *ptr2++ = 0;
129                  for (; *ptr2 && isspace(*ptr2); ptr2++)                  for (; *ptr2 && isspace(*ptr2); ptr2++)
130                          ;                          ;
                   
131                  if (!*ptr2 || strncmp(ptr2, "into", 4)) {                  if (!*ptr2 || strncmp(ptr2, "into", 4)) {
132                          info(VERBOSE, _("Translation map: incorrect syntax."));                          info(VERBOSE, _("Translation map: incorrect syntax."));
133                          break;                          break;
# Line 137  translate_parser(int method, int key, ch Line 135  translate_parser(int method, int key, ch
135    
136                  for (ptr2 += 4; *ptr2 && isspace(*ptr2); ptr2++)                  for (ptr2 += 4; *ptr2 && isspace(*ptr2); ptr2++)
137                          ;                          ;
138                    if (!*ptr2 || strncmp(ptr2, "=", 1)) {
139                            info(VERBOSE, _("Translation map: incorrect syntax."));
140                            break;
141                    }
142    
143                    for (ptr2 += 1; *ptr2 && isspace(*ptr2); ptr2++)
144                            ;
145    
146                  safe_strcpy(env->translate, ptr1);                  safe_strcpy(env->translate, ptr1);
147                  safe_strcpy(env->into, ptr2);                  safe_strcpy(env->into, ptr2);

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26