[PATCH 1/2] Add new file rnet_defs.h

Sergio Durigan Junior sergiodj en sergiodj.net
Mie Oct 22 02:57:08 UTC 2014


This commit adds the new file rnet_defs.h.  This file contains common
includes and definitions of macros for all the C files.  It should be
the first file included in every C file, since it includes config.h.
---
 rnet_defs.h | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 rnet_defs.h

diff --git a/rnet_defs.h b/rnet_defs.h
new file mode 100644
index 0000000..0d94183
--- /dev/null
+++ b/rnet_defs.h
@@ -0,0 +1,29 @@
+/*
+ *  Copyright (C) 2014  Sergio Durigan Junior <sergiodj em sergiodj.net>
+ *
+ *  This program 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.
+ *
+ *  This program 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 this program; if not, write to the Free Software Foundation, Inc.,
+ *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#ifndef RNET_DEFS_H
+#define RNET_DEFS_H
+
+#include "config.h"
+#include <stdio.h>
+#include <stdlib.h>
+
+#define RNET_ERROR(msg, ...) \
+	fprintf(stderr, "ERROR: " msg, ##__VA_ARGS__)
+
+#endif /* ! RNET_DEFS_H */
-- 
1.9.3



Más información sobre la lista de distribución Softwares-impostos