changeset 95984:cf2b26adbb9b

Tweak last change.
author Chong Yidong <cyd@stupidchicken.com>
date Mon, 16 Jun 2008 02:04:45 +0000
parents 104a55eb192a
children 9ab113bb7ed6
files src/font.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/font.c	Mon Jun 16 01:59:40 2008 +0000
+++ b/src/font.c	Mon Jun 16 02:04:45 2008 +0000
@@ -1428,14 +1428,15 @@
 	      Lisp_Object val;
 	      int word_len, prop;
 
-#define PROP_MATCH(STR,N) ((word_len == N) && memcmp (p, STR, N) == 0)
-
 	      for (q = p + 1; *q && *q != '=' && *q != ':'; q++);
 	      word_len = q - p;
 	      if (*q != '=')
 		{
 		  /* Must be an enumerated value.  */
 		  val = font_intern_prop (p, q - p, 1);
+
+#define PROP_MATCH(STR,N) ((word_len == N) && memcmp (p, STR, N) == 0)
+
 		  if (PROP_MATCH ("light", 5)
 		      || PROP_MATCH ("medium", 6)
 		      || PROP_MATCH ("demibold", 8)
@@ -1461,6 +1462,7 @@
 		      bcopy (p, copy, word_len);
 		      copy += word_len;
 		    }
+#undef PROP_MATCH
 		}
 	      else /* KEY=VAL pairs  */
 		{
@@ -1492,7 +1494,6 @@
 		    }
 		}
 	      p = *q ? q + 1 : q;
-#undef PROP_MATCH
 	    }
 	  if (name != copy)
 	    font_put_extra (font, QCfc_unknown_spec,