include/SDL_test_crc32.h
changeset 7191 75360622e65f
parent 6885 700f1b25f77f
child 8149 681eb46b8ac4
     1.1 --- a/include/SDL_test_crc32.h	Sat May 18 12:48:50 2013 -0700
     1.2 +++ b/include/SDL_test_crc32.h	Sat May 18 14:17:52 2013 -0700
     1.3 @@ -21,16 +21,16 @@
     1.4  
     1.5  /**
     1.6   *  \file SDL_test_crc32.h
     1.7 - *  
     1.8 + *
     1.9   *  Include file for SDL test framework.
    1.10   *
    1.11   *  This code is a part of the SDL2_test library, not the main SDL library.
    1.12   */
    1.13  
    1.14 -/* 
    1.15 +/*
    1.16  
    1.17   Implements CRC32 calculations (default output is Perl String::CRC32 compatible).
    1.18 -  
    1.19 +
    1.20  */
    1.21  
    1.22  #ifndef _SDL_test_crc32_h
    1.23 @@ -39,9 +39,7 @@
    1.24  #include "begin_code.h"
    1.25  /* Set up for C function definitions, even when using C++ */
    1.26  #ifdef __cplusplus
    1.27 -/* *INDENT-OFF* */
    1.28  extern "C" {
    1.29 -/* *INDENT-ON* */
    1.30  #endif
    1.31  
    1.32  
    1.33 @@ -50,20 +48,20 @@
    1.34  /* Definition shared by all CRC routines */
    1.35  
    1.36  #ifndef CrcUint32
    1.37 - #define CrcUint32	unsigned int
    1.38 + #define CrcUint32  unsigned int
    1.39  #endif
    1.40  #ifndef CrcUint8
    1.41 - #define CrcUint8	unsigned char
    1.42 + #define CrcUint8   unsigned char
    1.43  #endif
    1.44  
    1.45  #ifdef ORIGINAL_METHOD
    1.46 - #define CRC32_POLY 0x04c11db7 	 /* AUTODIN II, Ethernet, & FDDI */
    1.47 + #define CRC32_POLY 0x04c11db7   /* AUTODIN II, Ethernet, & FDDI */
    1.48  #else
    1.49   #define CRC32_POLY 0xEDB88320   /* Perl String::CRC32 compatible */
    1.50  #endif
    1.51  
    1.52 -/** 
    1.53 - * Data structure for CRC32 (checksum) computation 
    1.54 +/**
    1.55 + * Data structure for CRC32 (checksum) computation
    1.56   */
    1.57    typedef struct {
    1.58      CrcUint32    crc32_table[256]; /* CRC table */
    1.59 @@ -71,12 +69,12 @@
    1.60  
    1.61  /* ---------- Function Prototypes ------------- */
    1.62  
    1.63 -/** 
    1.64 +/**
    1.65   * /brief Initialize the CRC context
    1.66   *
    1.67   * Note: The function initializes the crc table required for all crc calculations.
    1.68   *
    1.69 - * /param crcContext		pointer to context variable
    1.70 + * /param crcContext        pointer to context variable
    1.71   *
    1.72   * /returns 0 for OK, -1 on error
    1.73   *
    1.74 @@ -86,8 +84,8 @@
    1.75  
    1.76  /**
    1.77   * /brief calculate a crc32 from a data block
    1.78 - * 
    1.79 - * /param crcContext	     pointer to context variable
    1.80 + *
    1.81 + * /param crcContext         pointer to context variable
    1.82   * /param inBuf              input buffer to checksum
    1.83   * /param inLen              length of input buffer
    1.84   * /param crc32              pointer to Uint32 to store the final CRC into
    1.85 @@ -106,7 +104,7 @@
    1.86  /**
    1.87   * /brief clean up CRC context
    1.88   *
    1.89 - * /param crcContext		pointer to context variable
    1.90 + * /param crcContext        pointer to context variable
    1.91   *
    1.92   * /returns 0 for OK, -1 on error
    1.93   *
    1.94 @@ -117,9 +115,7 @@
    1.95  
    1.96  /* Ends C function definitions when using C++ */
    1.97  #ifdef __cplusplus
    1.98 -/* *INDENT-OFF* */
    1.99  }
   1.100 -/* *INDENT-ON* */
   1.101  #endif
   1.102  #include "close_code.h"
   1.103