summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormaddaat <git@maddaat.org>2026-04-10 18:20:08 +0400
committermaddaat <git@maddaat.org>2026-04-10 18:20:08 +0400
commit06ec4982b1d3be9582d1be8cc93f7285ca948a05 (patch)
tree041bd798c864c5998dfae39af7156b399641afd4 /src
downloadautotools-project-master.tar
autotools-project-master.tar.gz
autotools-project-master.tar.bz2
autotools-project-master.tar.lz
autotools-project-master.tar.xz
autotools-project-master.tar.zst
autotools-project-master.zip
Initial commitHEADmaster
Diffstat (limited to 'src')
-rw-r--r--src/common.c10
-rw-r--r--src/common.h6
-rw-r--r--src/lib.c12
-rw-r--r--src/main.c8
4 files changed, 36 insertions, 0 deletions
diff --git a/src/common.c b/src/common.c
new file mode 100644
index 0000000..0a5c687
--- /dev/null
+++ b/src/common.c
@@ -0,0 +1,10 @@
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "common.h"
+
+int foobar_internal(const int a, const int b)
+{
+ return a + b;
+}
diff --git a/src/common.h b/src/common.h
new file mode 100644
index 0000000..6c1d0a4
--- /dev/null
+++ b/src/common.h
@@ -0,0 +1,6 @@
+#ifndef _FOOBAR_SRC_COMMON_H
+#define _FOOBAR_SRC_COMMON_H
+
+int foobar_internal(int a, int b);
+
+#endif
diff --git a/src/lib.c b/src/lib.c
new file mode 100644
index 0000000..959b5d5
--- /dev/null
+++ b/src/lib.c
@@ -0,0 +1,12 @@
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <foobar.h>
+
+#include "common.h"
+
+int foobar(const int a, const int b)
+{
+ return foobar_internal(a, b);
+}
diff --git a/src/main.c b/src/main.c
new file mode 100644
index 0000000..c12bda8
--- /dev/null
+++ b/src/main.c
@@ -0,0 +1,8 @@
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+int main(void)
+{
+ return 0;
+}