[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master 96de95c 4/4: lib/gnuastro.h.in under version c
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master 96de95c 4/4: lib/gnuastro.h.in under version control |
Date: |
Fri, 23 Sep 2016 15:28:00 +0000 (UTC) |
branch: master
commit 96de95c7d6af8ef82e0e5fc308250b81cfd3e2c6
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>
lib/gnuastro.h.in under version control
Through `.gitignore', we ask Git to ignore files ending in `.in'. However,
`lib/gnuastro.h.in' must not be ignored and is considered part of the
source: we use it go generate the installed `gnuastro.h' header. This had
not been recognized before since no `git clean -fxd' was done since we
created this file. So with this commit, this file is now also version
controlled.
---
lib/gnuastro.h.in | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 61 insertions(+)
diff --git a/lib/gnuastro.h.in b/lib/gnuastro.h.in
new file mode 100644
index 0000000..15fdc9b
--- /dev/null
+++ b/lib/gnuastro.h.in
@@ -0,0 +1,61 @@
+/*********************************************************************
+Functions dealing with general aspects of all Gnuastro.
+
+Original author:
+ Mohammad Akhlaghi <address@hidden>
+Contributing author(s):
+Copyright (C) 2016, Free Software Foundation, Inc.
+
+Gnuastro is free software: you can redistribute it and/or modify it
+under the terms of the GNU General Public License as published by the
+Free Software Foundation, either version 3 of the License, or (at your
+option) any later version.
+
+Gnuastro is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with Gnuastro. If not, see <http://www.gnu.org/licenses/>.
+**********************************************************************/
+#ifndef __GAL_GNUASTRO_H__
+#define __GAL_GNUASTRO_H__
+
+/* Include other headers if necessary here. Note that other header files
+ must be included before the C++ preparations below */
+
+
+
+/* Macros. In gnuastro.h.in, the values in `@' --- `@'', will be replaced
+ with installation specific values. */
+#define GAL_GNUASTRO_VERSION "@VERSION@"
+#define GAL_GNUASTRO_PTHREAD_BARRIER @HAS_PTHREAD_BARRIER@
+
+
+
+/* C++ Preparations */
+#undef __BEGIN_C_DECLS
+#undef __END_C_DECLS
+#ifdef __cplusplus
+# define __BEGIN_C_DECLS extern "C" {
+# define __END_C_DECLS }
+#else
+# define __BEGIN_C_DECLS /* empty */
+# define __END_C_DECLS /* empty */
+#endif
+/* End of C++ preparations */
+
+
+
+/* Actual header contants (the above were for the Pre-processor). */
+__BEGIN_C_DECLS /* From C++ preparations */
+
+
+
+
+
+
+__END_C_DECLS /* From C++ preparations */
+
+#endif /* __GAL_GNUASTRO_H__ */