Mercurial > emacs
comparison src/fontset.c @ 17827:95010205f916
(fontset_pattern_regexp): Cast to (char *) before
assigning to P0.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Fri, 16 May 1997 00:43:08 +0000 |
parents | 4bbcc6804b5d |
children | 46f958bf3348 |
comparison
equal
deleted
inserted
replaced
17826:961399e23170 | 17827:95010205f916 |
---|---|
397 char *regex = (char *) alloca (XSTRING (pattern)->size * 2); | 397 char *regex = (char *) alloca (XSTRING (pattern)->size * 2); |
398 char *p0, *p1 = regex; | 398 char *p0, *p1 = regex; |
399 | 399 |
400 /* Convert "*" to ".*", "?" to ".". */ | 400 /* Convert "*" to ".*", "?" to ".". */ |
401 *p1++ = '^'; | 401 *p1++ = '^'; |
402 for (p0 = XSTRING (pattern)->data; *p0; p0++) | 402 for (p0 = (char *) XSTRING (pattern)->data; *p0; p0++) |
403 { | 403 { |
404 if (*p0 == '*') | 404 if (*p0 == '*') |
405 { | 405 { |
406 *p1++ = '.'; | 406 *p1++ = '.'; |
407 *p1++ = '*'; | 407 *p1++ = '*'; |