dag

Djmoch's Auto Generator
git clone git://git.danielmoch.com/dag.git
Log | Files | Refs | README | LICENSE

commit b47b58eafaee9bf8c6075e77a98e92fdee450983
parent 0fefbfc0eef9a8c255deb5236bc09071992a3d82
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Fri, 26 Nov 2021 06:59:26 -0500

Our header files don't need guards. Remove them.

Diffstat:
Mdagfile.h | 6------
Mdb.h | 4----
Mhtml.h | 4----
Mstring.h | 5-----
Mterm.h | 4----
Mxml.h | 4----
6 files changed, 0 insertions(+), 27 deletions(-)

diff --git a/dagfile.h b/dagfile.h @@ -1,8 +1,5 @@ /* See LICENSE file for copyright and license details */ -#ifndef __DAGFILE_H -#define __DAGFILE_H - struct requirement { char *path; struct requirement *next; @@ -45,6 +42,3 @@ int process_dagfile(struct dagfile *df); void free_dagfile(struct dagfile *df); struct dagfile *parse_dagfile(FILE *path); void debug_dagfile(struct dagfile *df); - - -#endif diff --git a/db.h b/db.h @@ -1,6 +1,4 @@ /* See LICENSE file for copyright and license details */ -#ifndef __DB_H -#define __DB_H struct db_entry { char *author; @@ -23,5 +21,3 @@ void db_index_write(struct db_index *index); void db_index_close(struct db_index *index); void db_entry_add(struct db_index *index, struct db_entry *entry); void db_entry_fprint(FILE *fp, struct db_entry *entry); - -#endif diff --git a/html.h b/html.h @@ -1,7 +1,3 @@ /* See LICENSE file for copyright and license details */ -#ifndef __HTML_H -#define __HTML_H void html_db_fmt(struct db_index *index); - -#endif diff --git a/string.h b/string.h @@ -4,9 +4,6 @@ * unless otherwise specified */ -#ifndef __DAG_STRING_H -#define __DAG_STRING_H - int strbegin(const char *big, const char *little); int strend(const char *big, const char *little); void strnswp(char *big, const char *old, const char *new, size_t max); @@ -17,5 +14,3 @@ int sprintf_ct(char *str, char *fmt, char *subst, int ct); /* assumes the last element of strarray is NULL */ void dedup(char **strarray); - -#endif diff --git a/term.h b/term.h @@ -1,7 +1,3 @@ /* See LICENSE file for copyright and license details */ -#ifndef __TERM_H -#define __TERM_H void term_db_fmt(struct db_index *index); - -#endif diff --git a/xml.h b/xml.h @@ -1,10 +1,6 @@ /* See LICENSE file for copyright and license details */ -#ifndef __XML_H -#define __XML_H void xml_db_fmt_sitemapindex(char *fqdn, struct db_index *index); void xml_db_fmt_sitemap(char *fqdn, struct db_index *index); void xml_db_fmt_rss(char *title, char *fqdn, char *description, char *rss_url, char *lang, char *copyright, struct db_index *index); - -#endif