/[lwip]/lwip/src/core/inet.c
ViewVC logotype

Diff of /lwip/src/core/inet.c

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

revision 1.14 by likewise, Wed Jun 11 22:34:51 2003 UTC revision 1.14.2.1 by jani, Fri Jul 25 13:06:37 2003 UTC
# Line 169  inet_chksum_pbuf(struct pbuf *p) Line 169  inet_chksum_pbuf(struct pbuf *p)
169    return ~(acc & 0xffffUL);    return ~(acc & 0xffffUL);
170  }  }
171    
172    /* Here for now until needed in other places in lwIP */
173    #ifndef isascii
174    #define in_range(c, lo, up)  ((u8_t)c >= lo && (u8_t)c <= up)
175    #define isascii(c)           in_range(c, 0x20, 0x7f)
176    #define isdigit(c)           in_range(c, '0', '9')
177    #define isxdigit(c)          (isdigit(c) || in_range(c, 'a', 'f') || in_range(c, 'A', 'F'))
178    #define islower(c)           in_range(c, 'a', 'z')
179    #define isspace(c)           (c == ' ' || c == '\f' || c == '\n' || c == '\r' || c == '\t' || c == '\v')
180    #endif          
181                    
182  /*-----------------------------------------------------------------------------------*/  /*-----------------------------------------------------------------------------------*/
183   /*   /*
184    * Ascii internet address interpretation routine.    * Ascii internet address interpretation routine.

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.14.2.1

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