/[mailutils]/mailutils/comsat/action.c
ViewVC logotype

Diff of /mailutils/comsat/action.c

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

revision 1.11 by polak, Sun Feb 9 12:32:58 2003 UTC revision 1.12 by gray, Wed Aug 20 14:35:34 2003 UTC
# Line 79  act_getline (FILE *fp, char **sptr, size Line 79  act_getline (FILE *fp, char **sptr, size
79    return used;    return used;
80  }  }
81    
 /* Convert second character of a backslash sequence to its ASCII  
    value: */  
 static int  
 backslash(int c)  
 {  
   static char transtab[] = "a\ab\bf\fn\nr\rt\t";  
   char *p;  
   
   for (p = transtab; *p; p += 2)  
     {  
       if (*p == c)  
         return p[1];  
     }  
   return c;  
 }  
   
82  static int  static int
83  expand_escape (char **pp, message_t msg, struct obstack *stk)  expand_escape (char **pp, message_t msg, struct obstack *stk)
84  {  {
# Line 213  expand_line (const char *str, message_t Line 197  expand_line (const char *str, message_t
197            p++;            p++;
198            if (*p)            if (*p)
199              {              {
200                c = backslash (*p);                c = argcv_unescape_char (*p);
201                obstack_1grow (&stk, c);                obstack_1grow (&stk, c);
202              }              }
203            break;            break;

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

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