]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.h
cgit.c: remove useless null check
[ps-cgit] / cgit.h
diff --git a/cgit.h b/cgit.h
index 508179a7fccad8f26027a51b27ed5f2541a2e68a..b7eccdd2bd982198df2971060002f3d6f155c783 100644 (file)
--- a/cgit.h
+++ b/cgit.h
@@ -25,6 +25,9 @@
 #include <notes.h>
 #include <graph.h>
 
+/* Add isgraph(x) to Git's sane ctype support (see git-compat-util.h) */
+#undef isgraph
+#define isgraph(x) (isprint((x)) && !isspace((x)))
 
 /*
  * Dateformats used on misc. pages
@@ -388,4 +391,6 @@ extern int readfile(const char *path, char **buf, size_t *size);
 
 extern char *expand_macros(const char *txt);
 
+extern char *get_mimetype_for_filename(const char *filename);
+
 #endif /* CGIT_H */