The following commit has been merged in the master branch: commit f3a2a92e6a2e793fa16f5ca021e0bdaa5a05451c Author: Marek Lindner lindner_marek@yahoo.de Date: Thu Mar 8 14:23:23 2007 +0100
add missing header file
diff --git a/allocate.h b/bitarray.h similarity index 53% copy from allocate.h copy to bitarray.h index 6f610ec..3a02bd9 100644 --- a/allocate.h +++ b/bitarray.h @@ -1,6 +1,6 @@ /* * Copyright (C) 2006 B.A.T.M.A.N. contributors: - * Thomas Lopatic, Corinna 'Elektra' Aichele, Axel Neumann, Marek Lindner + * Simon Wunderlich, Axel Neumann, Marek Lindner * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. @@ -19,12 +19,16 @@
-#include <stdint.h> +#define TYPE_OF_WORD unsigned long /* you should choose something big, if you don't want to waste cpu */ +#define WORD_BIT_SIZE ( sizeof(TYPE_OF_WORD) * 8 )
-void checkIntegrity(void); -void checkLeak(void); -void *debugMalloc(uint32_t length, int32_t tag); -void *debugRealloc(void *memory, uint32_t length, int32_t tag); -void debugFree(void *memoryParameter, int32_t tag); +void bit_init( TYPE_OF_WORD *seq_bits ); +uint8_t get_bit_status( TYPE_OF_WORD *seq_bits, uint16_t last_seqno, uint16_t curr_seqno ); +char *bit_print( TYPE_OF_WORD *seq_bits ); +void bit_mark( TYPE_OF_WORD *seq_bits, int32_t n ); +void bit_shift( TYPE_OF_WORD *seq_bits, int32_t n ); +char bit_get_packet( TYPE_OF_WORD *seq_bits, int32_t seq_num_diff, int8_t set_mark ); +int bit_packet_count( TYPE_OF_WORD *seq_bits ); +