coan 4.2.4
swiss_army.h File Reference
#include "opts.h"
Include dependency graph for swiss_army.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define PODSWAP(Type, lhs, rhs)   do { Type tmp = *(lhs); *lhs = *rhs; *rhs = tmp; } while(0)

Detailed Description

This file provides generic utility routines

Definition in file swiss_army.h.


Define Documentation

#define PODSWAP (   Type,
  lhs,
  rhs 
)    do { Type tmp = *(lhs); *lhs = *rhs; *rhs = tmp; } while(0)

Swap the POD objects addressed by pair of pointers.

Parameters:
TypeThe type of the objects addressed by the pointers.
lhsPointer to the first POD object to swap
rhsPointer to the second POD object to swap

Definition at line 53 of file swiss_army.h.

Referenced by canonical_string_swap(), file_tree_swap(), ptr_set_swap(), ptr_vector_swap(), and symbol_swap().

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines