projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
One more pass at README.developers now that it's clear that my
[mmh]
/
uip
/
picksbr.c
diff --git
a/uip/picksbr.c
b/uip/picksbr.c
index
3d4e978
..
ebebf6c
100644
(file)
--- a/
uip/picksbr.c
+++ b/
uip/picksbr.c
@@
-6,7
+6,7
@@
*/
#include <h/mh.h>
*/
#include <h/mh.h>
-#include <zotnet/tws/tws.h>
+#include <h/tws.h>
#include <h/picksbr.h>
#ifdef TIME_WITH_SYS_TIME
#include <h/picksbr.h>
#ifdef TIME_WITH_SYS_TIME
@@
-690,7
+690,7
@@
plist
if (*p2 == CCHR) {
c = p2[1];
do {
if (*p2 == CCHR) {
c = p2[1];
do {
- if (*p1 == c || cc[(int)*p1] == c)
+ if (*p1 == c || cc[(unsigned char)*p1] == c)
if (advance (p1, p2))
return 1;
} while (*p1++);
if (advance (p1, p2))
return 1;
} while (*p1++);
@@
-715,7
+715,7
@@
advance (char *alp, char *aep)
for (;;)
switch (*ep++) {
case CCHR:
for (;;)
switch (*ep++) {
case CCHR:
- if (*ep++ == *lp++ || ep[-1] == cc[(int)lp[-1]])
+ if (*ep++ == *lp++ || ep[-1] == cc[(unsigned char)lp[-1]])
continue;
return 0;
continue;
return 0;
@@
-754,7
+754,7
@@
advance (char *alp, char *aep)
case CCHR | STAR:
curlp = lp;
case CCHR | STAR:
curlp = lp;
- while (*lp++ == *ep || cc[(int)lp[-1]] == *ep)
+ while (*lp++ == *ep || cc[(unsigned char)lp[-1]] == *ep)
continue;
ep++;
goto star;
continue;
ep++;
goto star;