#endif /* Cygwin */
-static int
-memq_no_quit (Lisp_Object elt, Lisp_Object list)
-{
- while (CONSP (list) && ! EQ (XCAR (list), elt))
- list = XCDR (list);
- return (CONSP (list));
-}
-
Lisp_Object
intern_font_name (char * string)
{
certain until we open it. Also if the font claims support for the script
the character is from, it may only have partial coverage, so we still
can't be certain until we open the font. */
- if (NILP (script) || memq_no_quit (script, supported_scripts))
+ if (NILP (script) || !NILP (memq_no_quit (script, supported_scripts)))
return -1;
/* Font reports what scripts it supports, and none of them are the script
return 1;
family = intern_font_name (logical_font->elfLogFont.lfFaceName);
- if (! memq_no_quit (family, *list))
+ if (NILP (memq_no_quit (family, *list)))
*list = Fcons (family, *list);
return 1;
{
Lisp_Object support
= font_supported_scripts (&font->ntmFontSig);
- if (! memq_no_quit (val, support))
+ if (NILP (memq_no_quit (val, support)))
return 0;
/* Avoid using non-Japanese fonts for Japanese, even
match_data->orig_font_spec, backend,
&logical_font->elfLogFont)
|| (!NILP (match_data->known_fonts)
- && memq_no_quit
- (intern_font_name (logical_font->elfLogFont.lfFaceName),
- match_data->known_fonts)))
+ && !NILP (memq_no_quit
+ (intern_font_name (logical_font->elfLogFont.lfFaceName),
+ match_data->known_fonts))))
|| !w32font_coverage_ok (&physical_font->ntmFontSig,
match_data->pattern.lfCharSet))
return 1;
/* Used by uniscribe_otf_capability. */
static Lisp_Object otf_features (HDC context, const char *table);
-static int
-memq_no_quit (Lisp_Object elt, Lisp_Object list)
-{
- while (CONSP (list) && ! EQ (XCAR (list), elt))
- list = XCDR (list);
- return (CONSP (list));
-}
-
\f
/* Uniscribe function pointers. */
static HRESULT (WINAPI * pfnScriptItemize) (const WCHAR *,
return 1;
family = intern_font_name (logical_font->elfLogFont.lfFaceName);
- if (! memq_no_quit (family, *list))
+ if (NILP (memq_no_quit (family, *list)))
*list = Fcons (family, *list);
return 1;