]> www.fi.muni.cz Git - evince.git/blobdiff - backend/dvi/mdvi-lib/special.c
Include config.h. Bug #504721.
[evince.git] / backend / dvi / mdvi-lib / special.c
index 23c070e16fe79c3f2ee8584e659daa05a56114b5..e0e6b8ef7a17d4243e35667208c868618c20bf57 100644 (file)
@@ -16,6 +16,7 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
+#include <config.h>
 #include <ctype.h>
 #include <string.h>
 
 #include <ctype.h>
 #include <string.h>
 
@@ -65,6 +66,7 @@ static void register_builtin_specials(void)
        int     i;
 
        ASSERT(registered_builtins == 0);       
        int     i;
 
        ASSERT(registered_builtins == 0);       
+       registered_builtins = 1;
        for(i = 0; i < NSPECIALS; i++)
                mdvi_register_special(
                        builtins[i].label,
        for(i = 0; i < NSPECIALS; i++)
                mdvi_register_special(
                        builtins[i].label,
@@ -72,7 +74,6 @@ static void register_builtin_specials(void)
                        builtins[i].regex,
                        builtins[i].handler,
                        1 /* replace if exists */);
                        builtins[i].regex,
                        builtins[i].handler,
                        1 /* replace if exists */);
-       registered_builtins = 1;
 }
 
 static DviSpecial *find_special_prefix(const char *prefix)
 }
 
 static DviSpecial *find_special_prefix(const char *prefix)