[hipl-commit] [trunk] Rev 3541: Moved inclusion of stdlib.h to the place where it is needed. This reduces the header dependencies.

  • From: Tim Just <tim.just@xxxxxxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Sat, 6 Feb 2010 17:21:16 +0200

Committer: Tim Just <tim.just@xxxxxxxxxxxxxx>
Date: Sat Feb 06 16:19:35 2010 +0100
Revision: 3541
Revision-id: tim.just@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Moved inclusion of stdlib.h to the place where it is needed. This reduces the 
header dependencies.

Modified:
  M  lib/core/hashchain.h
  M  lib/core/linkedlist.c
  M  lib/core/linkedlist.h

=== modified file 'lib/core/hashchain.h'
--- lib/core/hashchain.h        2010-01-19 09:28:42 +0000
+++ lib/core/hashchain.h        2010-02-06 15:19:35 +0000
@@ -15,6 +15,8 @@
 #ifndef HASH_CHAIN_H
 #define HASH_CHAIN_H
 
+#include <stdlib.h>
+
 #include "hashtree.h"
 
 /* longest digest in openssl lib */

=== modified file 'lib/core/linkedlist.c'
--- lib/core/linkedlist.c       2010-02-05 09:56:22 +0000
+++ lib/core/linkedlist.c       2010-02-06 15:19:35 +0000
@@ -5,6 +5,8 @@
  * @note    Distributed under <a 
href="http://www.gnu.org/licenses/gpl2.txt";>GNU/GPL</a>.
  * @see     linkedlist.h for usage instructions.
  */
+#include <stdlib.h> /* For malloc(). */
+
 #include "linkedlist.h"
 #include "lib/core/debug.h" /* For debuging macros. */
 

=== modified file 'lib/core/linkedlist.h'
--- lib/core/linkedlist.h       2010-01-19 09:28:42 +0000
+++ lib/core/linkedlist.h       2010-02-06 15:19:35 +0000
@@ -21,8 +21,6 @@
 #ifndef HIP_LL_H
 #define HIP_LL_H
 
-#include <stdlib.h> /* For malloc(). */
-
 /** Linked list node. */
 typedef struct hip_ll_node{
        void *ptr; /**< A pointer to node payload data. */

Other related posts:

  • » [hipl-commit] [trunk] Rev 3541: Moved inclusion of stdlib.h to the place where it is needed. This reduces the header dependencies. - Tim Just