changeset 31:8c2087e7d381

misc: config.h is no more
author David Demelier <markand@malikania.fr>
date Thu, 04 Aug 2022 14:56:14 +0200
parents 43333d18e4b8
children 081e1c258e64
files Makefile config.def.h scictl/scictl.c scid/page-index.c
diffstat 4 files changed, 2 insertions(+), 41 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Thu Aug 04 14:54:43 2022 +0200
+++ b/Makefile	Thu Aug 04 14:56:14 2022 +0200
@@ -128,10 +128,6 @@
 
 -include ${LIBSCI_DEPS} ${SCICTL_DEPS} ${SCID_DEPS} ${SCIWORKERD_DEPS} ${TESTS_DEPS}
 
-config.h:
-	@echo "using default configuration"
-	cp config.def.h $@
-
 bcc: extern/bcc/bcc.c
 	${CC} ${CFLAGS} -o $@ $< ${LDFLAGS}
 
@@ -139,7 +135,7 @@
 
 ${SQL_OBJS}: bcc
 
-${LIBSCI_OBJS}: config.h ${SQL_OBJS}
+${LIBSCI_OBJS}: ${SQL_OBJS}
 
 ${LIBSCI}: ${LIBSCI_OBJS}
 	${AR} -rc $@ ${LIBSCI_OBJS}
@@ -185,7 +181,7 @@
 	cp ${MAN8} ${DESTDIR}${MANDIR}/man8
 
 clean:
-	rm -f bcc config.h tags cscope.out ${MAN7} ${MAN8} ${SQL_OBJS}
+	rm -f bcc tags cscope.out ${MAN7} ${MAN8} ${SQL_OBJS}
 	rm -f ${LIBSCI} ${LIBSCI_OBJS} ${LIBSCI_DEPS}
 	rm -f ${SCICTL} ${SCICTL_OBJS} ${SCICTL_DEPS}
 	rm -f ${SCID} ${SCID_OBJS} ${SCID_DEPS}
--- a/config.def.h	Thu Aug 04 14:54:43 2022 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,33 +0,0 @@
-/*
- * config.def.h -- configuration and limits
- *
- * Copyright (c) 2021 David Demelier <markand@malikania.fr>
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
-
-#ifndef SCI_CONFIG_H
-#define SCI_CONFIG_H
-
-/* Database limits. */
-#define SCI_PROJECT_MAX   64                            /* Projects allowed in database. */
-#define SCI_WORKER_MAX    32                            /* Workers allowed in database. */
-#define SCI_TAG_MAX       128
-
-/* Usage limits. */
-#define SCI_JOB_LIST_MAX 128                            /* Jobs max list size. */
-
-/* Miscellaneous limits. */
-#define SCI_URL_MAX      256
-
-#endif /* !SCI_CONFIG_H */
--- a/scictl/scictl.c	Thu Aug 04 14:54:43 2022 +0200
+++ b/scictl/scictl.c	Thu Aug 04 14:56:14 2022 +0200
@@ -27,7 +27,6 @@
 #include <utlist.h>
 
 #include "apic.h"
-#include "config.h"
 #include "util.h"
 
 static void
--- a/scid/page-index.c	Thu Aug 04 14:54:43 2022 +0200
+++ b/scid/page-index.c	Thu Aug 04 14:56:14 2022 +0200
@@ -19,7 +19,6 @@
 #include <errno.h>
 #include <string.h>
 
-#include "config.h"
 #include "db.h"
 #include "log.h"
 #include "pageutil.h"