/*!================================================================
 module:    vpr07Macro.h

 responsible: BurkhardD
 
 special area:   Usefull Preprozessor Macros

 description: 
 
 see:  

  -------------------------------------------------------------------------

 



    ========== licence begin  GPL
    Copyright (c) 1998-2005 SAP AG

    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.
    ========== licence end




 ===================================================================*/

/*==================================================================*
 *  MACROS                                                          *
 *==================================================================*/

#define PR07MAX(a, b) ((a > b) ? a : b)
#define PR07MIN(a, b) ((a < b) ? a : b)
#define PR07NUMELEM(a) (sizeof(a)/sizeof(a[0]))
/*Ascii Test*/
#define PR07CIS_ASCII(buf, entype) ((entype) == sp77encodingAscii ? 1 : ((buf) == '\0'))

#define PR07UNREFPARAM(a) a;
/* stolen from vos12uc */
#define PR07PUTBIT(b,i)             \
        { b [ ( unsigned ) i / 8 ] |=  ( 1 << (( unsigned ) i % 8 )); }
#define PR07CLRBIT(b,i)             \
        { b [ ( unsigned ) i / 8 ] &= ~( 1 << (( unsigned ) i % 8 )); }
#define PR07TSTBIT(b,i)             \
        ( b [ ( unsigned ) i / 8 ] &   ( 1 << (( unsigned ) i % 8 ))  )

/*==================================================================*
 *  FUNCTION PROTOTYPES                                             *
 *==================================================================*/

#ifndef externC
#if defined(__cplusplus)
#define externC extern "C"
#else
#define externC
#endif
#endif

externC void pr07C2P(void *pout, void *cin, int len);
externC void pr07P2C(void *cout, void *pin, int len);
externC void pr07Put2Up(char *cinout);
externC void pr07StripChar(char *cin, char *stripc);
