Mercurial > hg > xemacs-beta
diff src/objects-msw.c @ 272:c5d627a313b1 r21-0b34
Import from CVS: tag r21-0b34
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:28:48 +0200 |
parents | 966663fcf606 |
children | 6330739388db |
line wrap: on
line diff
--- a/src/objects-msw.c Mon Aug 13 10:27:41 2007 +0200 +++ b/src/objects-msw.c Mon Aug 13 10:28:48 2007 +0200 @@ -28,7 +28,7 @@ /* Authorship: Jamie Zawinski, Chuck Thompson, Ben Wing - Rewritten for mswindows by Jonathan Harris, November 1997 for 20.4. + Rewritten for mswindows by Jonathan Harris, November 1997 for 21.0. */ @@ -36,6 +36,7 @@ #include <config.h> #include "lisp.h" +#include "hash.h" #include "console-msw.h" #include "objects-msw.h" @@ -744,7 +745,7 @@ for (i=1; i<strlen(name); i++) { - if (!isxdigit (name[i])) + if (!isxdigit ((int)name[i])) return(-1); } if (strlen(name)==7) @@ -780,7 +781,7 @@ name++; *c = '\0'; - for(i=0; i<(sizeof (mswindows_X_color_map) / sizeof (colormap_t)); i++) + for (i=0; i< countof (mswindows_X_color_map); i++) if (!stricmp (nospaces, mswindows_X_color_map[i].name)) return (mswindows_X_color_map[i].colorref); }