Server 0.0.1
HTTP/REST server implementation

include/commons.h File Reference

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

Go to the source code of this file.

Defines

#define Bool   char
#define TRUE   1
#define FALSE   0
#define MAX(a, b)   ((a)>(b)? (a) : (b))
#define MIN(a, b)   ((a)<(b)? (a) : (b))
#define SWAP_FUN(a, b)   ((a)^=(b),(b)^=(a),(a)^=(b))
#define SWAP(type, a, b)

Detailed Description

Author:
Georg Hopp

Copyright © 2012 Georg Hopp

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, see <http://www.gnu.org/licenses/>.

Definition in file commons.h.


Define Documentation

#define Bool   char

Definition at line 26 of file commons.h.

#define FALSE   0

Definition at line 28 of file commons.h.

#define MAX (   a,
 
)    ((a)>(b)? (a) : (b))

Definition at line 31 of file commons.h.

#define MIN (   a,
 
)    ((a)<(b)? (a) : (b))

Definition at line 35 of file commons.h.

#define SWAP (   type,
  a,
 
)
Value:
do { \
        type tmp = (a);           \
        (a) = (b);                \
        (b) = tmp;                \
} while(0);

Definition at line 40 of file commons.h.

#define SWAP_FUN (   a,
 
)    ((a)^=(b),(b)^=(a),(a)^=(b))

Definition at line 38 of file commons.h.

#define TRUE   1

Definition at line 27 of file commons.h.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines