utils.h File Reference

Macros and definitions if not defined in the operation system. More...

#include <stdlib.h>

Include dependency graph for utils.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define min(a, b)   ((a) <= (b) ? (a) : (b))
#define max(a, b)   ((a) >= (b) ? (a) : (b))
#define TRUE   1
#define FALSE   0

Typedefs

typedef int BOOL


Detailed Description

Macros and definitions if not defined in the operation system.

Author
peltotal
Date
2007/02/26 13:48:19
Revision
1.10

MAD-ALCLIB: Implementation of ALC/LCT protocols, Compact No-Code FEC, Simple XOR FEC, Reed-Solomon FEC, and RLC Congestion Control protocol. Copyright (c) 2003-2007 TUT - Tampere University of Technology main authors/contacts: jani.peltotalo@tut.fi and sami.peltotalo@tut.fi

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 2 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

In addition, as a special exception, TUT - Tampere University of Technology gives permission to link the code of this program with the OpenSSL library (or with modified versions of OpenSSL that use the same license as OpenSSL), and distribute linked combinations including the two. You must obey the GNU General Public License in all respects for all of the code used other than OpenSSL. If you modify this file, you may extend this exception to your version of the file, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.

Definition in file utils.h.


Define Documentation

#define FALSE   0

Define FALSE if not defined in Operation System.

Definition at line 65 of file utils.h.

Referenced by add_pkt_to_tx_queue(), alc_recv(), alc_recv2(), alc_recv3(), block_ready_to_decode(), decode_fdt_payload(), encode_directory(), encode_file(), fdtbasedrecv(), fdtbasedsend(), flute_file_repair(), flute_receiver_report(), init_mad_rlc(), is_received_instance(), IsFECOTIInFDT(), mad_rlc_fill_header(), object_completed(), open_alc_channel(), parse_args(), parse_sdp_file(), receiver_in_ui_mode(), repair_sender_in_fdt_based_mode(), send_unit(), sender_in_fdt_based_mode(), set_fdt_instance_parsed(), startElement_FDT(), and tx_thread().

#define max ( a,
 )     ((a) >= (b) ? (a) : (b))

A macro that returns the maximum of a and b if not defined in Operation System.

Definition at line 50 of file utils.h.

#define min ( a,
 )     ((a) <= (b) ? (a) : (b))

A macro that returns the minimum of a and b if not defined in Operation System.

Definition at line 45 of file utils.h.

Referenced by init_alc_socket(), and mad_rlc_next_sp().

#define TRUE   1

Define TRUE if not defined in Operation System.

Definition at line 60 of file utils.h.

Referenced by alc_init(), analyze_packet(), block_ready_to_decode(), decode_fdt_payload(), fdtbasedrecv(), fdtbasedsend(), flute_file_repair(), flute_receiver_report(), flute_sender(), flute_session_size(), is_received_instance(), IsFECOTIInFDT(), mad_rlc_add_lost(), mad_rlc_fill_header(), main(), object_completed(), open_alc_channel(), open_alc_session(), parse_args(), parse_sdp_file(), receiver_in_ui_mode(), repair_sender_in_fdt_based_mode(), sender_in_fdt_based_mode(), and startElement_FDT().


Typedef Documentation

typedef int BOOL

A type definition for BOOL if not defined in Operation System.

Definition at line 55 of file utils.h.


Generated on Fri Mar 9 20:01:33 2007 for MAD-FCL by  doxygen 1.5.0