While doing this, remove declarations from header files where the
corresponding definition is declared "static" in order to avoid build
errors.
Also re-order existing headers in ui-*.c so that the file-specific
header always comes immediately after "cgit.h", helping with future
consistency.
Signed-off-by: John Keeping <john@keeping.me.uk>
22 files changed:
* (see COPYING for full license text)
*/
+#include "html.h"
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#ifndef HTML_H
#define HTML_H
-extern int htmlfd;
+#include <stddef.h>
extern void html_raw(const char *txt, size_t size);
extern void html(const char *txt);
*/
#include "cgit.h"
+#include "scan-tree.h"
#include "configfile.h"
#include "html.h"
*/
#include "cgit.h"
+#include "ui-atom.h"
#include "html.h"
#include "ui-shared.h"
*/
#include "cgit.h"
+#include "ui-blob.h"
#include "html.h"
#include "ui-shared.h"
*/
#include "cgit.h"
+#include "ui-clone.h"
#include "html.h"
#include "ui-shared.h"
*/
#include "cgit.h"
+#include "ui-commit.h"
#include "html.h"
#include "ui-shared.h"
#include "ui-diff.h"
*/
#include "cgit.h"
+#include "ui-diff.h"
#include "html.h"
#include "ui-shared.h"
#include "ui-ssdiff.h"
extern void cgit_print_diff_ctrls();
-extern void cgit_print_diffstat(const unsigned char *old_sha1,
- const unsigned char *new_sha1);
-
extern void cgit_print_diff(const char *new_hex, const char *old_hex,
const char *prefix, int show_ctrls);
*/
#include "cgit.h"
+#include "ui-log.h"
#include "html.h"
#include "ui-shared.h"
#include "vector.h"
*/
#include "cgit.h"
+#include "ui-patch.h"
#include "html.h"
#include "ui-shared.h"
#include <stdio.h>
#include "cgit.h"
+#include "ui-plain.h"
#include "html.h"
#include "ui-shared.h"
*/
#include "cgit.h"
+#include "ui-refs.h"
#include "html.h"
#include "ui-shared.h"
*/
#include "cgit.h"
+#include "ui-repolist.h"
#include "html.h"
#include "ui-shared.h"
#include <strings.h>
*/
#include "cgit.h"
+#include "ui-shared.h"
#include "cmd.h"
#include "html.h"
extern void cgit_stats_link(const char *name, const char *title,
const char *class, const char *head,
const char *path);
-extern void cgit_self_link(char *name, const char *title,
- const char *class, struct cgit_context *ctx);
extern void cgit_object_link(struct object *obj);
extern void cgit_submodule_link(const char *class, char *path,
*/
#include "cgit.h"
+#include "ui-snapshot.h"
#include "html.h"
#include "ui-shared.h"
#include "cgit.h"
+#include "ui-ssdiff.h"
#include "html.h"
#include "ui-shared.h"
#include "ui-diff.h"
-#include "ui-ssdiff.h"
extern int use_ssdiff;
#include "cgit.h"
+#include "ui-stats.h"
#include "html.h"
#include "ui-shared.h"
-#include "ui-stats.h"
#ifdef NO_C99_FORMAT
#define SZ_FMT "%u"
*/
#include "cgit.h"
+#include "ui-summary.h"
#include "html.h"
#include "ui-log.h"
#include "ui-refs.h"
*/
#include "cgit.h"
+#include "ui-tag.h"
#include "html.h"
#include "ui-shared.h"
#include <ctype.h>
#include "cgit.h"
+#include "ui-tree.h"
#include "html.h"
#include "ui-shared.h"