[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-recutils] [PATCH] librec: Don't #include <config.h> in rec.h.
From: |
Thien-Thi Nguyen |
Subject: |
[bug-recutils] [PATCH] librec: Don't #include <config.h> in rec.h. |
Date: |
Mon, 15 Aug 2011 15:01:54 +0200 |
* src/rec.h: Don't #include <config.h>.
---
IIUC, config.h is not intended to leave the build-tree,
so it is not proper that it should be #include:d by
the publicly installed ${includedir}/rec.h.
ChangeLog | 5 +++++
src/rec.h | 16 +++++++---------
2 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 5559702..fdeaeee 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-08-15 Thien-Thi Nguyen <address@hidden> (tiny change)
+
+ librec: Don't #include <config.h> in rec.h.
+ * src/rec.h: Don't #include <config.h>.
+
2011-08-05 Jose E. Marchesi <address@hidden>
librec: acknowledge %sort entries when renaming fields.
diff --git a/src/rec.h b/src/rec.h
index befa928..9d2816f 100644
--- a/src/rec.h
+++ b/src/rec.h
@@ -26,13 +26,11 @@
#ifndef REC_H
#define REC_H
-#include <config.h>
-
#include <stdbool.h>
#include <stdio.h>
#include <fcntl.h>
-/*
+/*
* rec format version implemented by this library.
*/
@@ -40,7 +38,7 @@
#define REC_VERSION_MINOR 0
#define REC_VERSION_STRING "1.0"
-/*
+/*
* INITIALIZATION of the library
*/
@@ -139,7 +137,7 @@ rec_field_name_t rec_field_name_dup (rec_field_name_t
fname);
* - Two given field names are EQUAL if and only if their name parts
* with the biggest index are identical. The following names are
* thus equal:
- *
+ *
* A:B:C: .EQUAL. X:Y:C: .EQUAL. C:
*
* - A given field name NAME2 is a reference of a field name NAME1 if
@@ -322,7 +320,7 @@ const char *rec_type_name (rec_type_t type);
void rec_type_set_name (rec_type_t type, const char *name);
/* Determine whether two types are the same type.
- *
+ *
* Two types are equal if,
*
* - They are of the same kind, and
@@ -330,7 +328,7 @@ void rec_type_set_name (rec_type_t type, const char *name);
* - Depending on the kind of types:
*
* + For sizes
- *
+ *
* The maximum size specified in both types is the same.
*
* + For ranges
@@ -859,7 +857,7 @@ enum rec_writer_mode_e
REC_WRITER_NORMAL,
REC_WRITER_SEXP
};
-
+
typedef enum rec_writer_mode_e rec_writer_mode_t;
bool rec_write_comment (rec_writer_t writer, rec_comment_t comment,
rec_writer_mode_t mode);
@@ -905,7 +903,7 @@ bool rec_sex_eval (rec_sex_t sex, rec_record_t record, bool
*status);
char *rec_sex_eval_str (rec_sex_t sex, rec_record_t record);
void rec_sex_print_ast (rec_sex_t sex);
-
+
#endif /* !REC_H */
/* End of rec.h */
--
1.6.3.2
- [bug-recutils] [PATCH] librec: Don't #include <config.h> in rec.h.,
Thien-Thi Nguyen <=