include/SDL_version.h
changeset 7191 75360622e65f
parent 6885 700f1b25f77f
child 7803 97a1127629fb
     1.1 --- a/include/SDL_version.h	Sat May 18 12:48:50 2013 -0700
     1.2 +++ b/include/SDL_version.h	Sat May 18 14:17:52 2013 -0700
     1.3 @@ -21,7 +21,7 @@
     1.4  
     1.5  /**
     1.6   *  \file SDL_version.h
     1.7 - *  
     1.8 + *
     1.9   *  This header defines the current SDL version.
    1.10   */
    1.11  
    1.12 @@ -33,20 +33,18 @@
    1.13  #include "begin_code.h"
    1.14  /* Set up for C function definitions, even when using C++ */
    1.15  #ifdef __cplusplus
    1.16 -/* *INDENT-OFF* */
    1.17  extern "C" {
    1.18 -/* *INDENT-ON* */
    1.19  #endif
    1.20  
    1.21  /**
    1.22   *  \brief Information the version of SDL in use.
    1.23 - *  
    1.24 + *
    1.25   *  Represents the library's version as three levels: major revision
    1.26   *  (increments with massive changes, additions, and enhancements),
    1.27   *  minor revision (increments with backwards-compatible changes to the
    1.28   *  major revision), and patchlevel (increments with fixes to the minor
    1.29   *  revision).
    1.30 - *  
    1.31 + *
    1.32   *  \sa SDL_VERSION
    1.33   *  \sa SDL_GetVersion
    1.34   */
    1.35 @@ -59,30 +57,30 @@
    1.36  
    1.37  /* Printable format: "%d.%d.%d", MAJOR, MINOR, PATCHLEVEL
    1.38  */
    1.39 -#define SDL_MAJOR_VERSION	2
    1.40 -#define SDL_MINOR_VERSION	0
    1.41 -#define SDL_PATCHLEVEL		0
    1.42 +#define SDL_MAJOR_VERSION   2
    1.43 +#define SDL_MINOR_VERSION   0
    1.44 +#define SDL_PATCHLEVEL      0
    1.45  
    1.46  /**
    1.47   *  \brief Macro to determine SDL version program was compiled against.
    1.48 - *  
    1.49 + *
    1.50   *  This macro fills in a SDL_version structure with the version of the
    1.51   *  library you compiled against. This is determined by what header the
    1.52   *  compiler uses. Note that if you dynamically linked the library, you might
    1.53   *  have a slightly newer or older version at runtime. That version can be
    1.54   *  determined with SDL_GetVersion(), which, unlike SDL_VERSION(),
    1.55   *  is not a macro.
    1.56 - *  
    1.57 + *
    1.58   *  \param x A pointer to a SDL_version struct to initialize.
    1.59 - *  
    1.60 + *
    1.61   *  \sa SDL_version
    1.62   *  \sa SDL_GetVersion
    1.63   */
    1.64 -#define SDL_VERSION(x)							\
    1.65 -{									\
    1.66 -	(x)->major = SDL_MAJOR_VERSION;					\
    1.67 -	(x)->minor = SDL_MINOR_VERSION;					\
    1.68 -	(x)->patch = SDL_PATCHLEVEL;					\
    1.69 +#define SDL_VERSION(x)                          \
    1.70 +{                                   \
    1.71 +    (x)->major = SDL_MAJOR_VERSION;                 \
    1.72 +    (x)->minor = SDL_MINOR_VERSION;                 \
    1.73 +    (x)->patch = SDL_PATCHLEVEL;                    \
    1.74  }
    1.75  
    1.76  /**
    1.77 @@ -90,23 +88,23 @@
    1.78   *  \verbatim
    1.79      (1,2,3) -> (1203)
    1.80      \endverbatim
    1.81 - *  
    1.82 + *
    1.83   *  This assumes that there will never be more than 100 patchlevels.
    1.84   */
    1.85 -#define SDL_VERSIONNUM(X, Y, Z)						\
    1.86 -	((X)*1000 + (Y)*100 + (Z))
    1.87 +#define SDL_VERSIONNUM(X, Y, Z)                     \
    1.88 +    ((X)*1000 + (Y)*100 + (Z))
    1.89  
    1.90  /**
    1.91   *  This is the version number macro for the current SDL version.
    1.92   */
    1.93  #define SDL_COMPILEDVERSION \
    1.94 -	SDL_VERSIONNUM(SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL)
    1.95 +    SDL_VERSIONNUM(SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL)
    1.96  
    1.97  /**
    1.98   *  This macro will evaluate to true if compiled with SDL at least X.Y.Z.
    1.99   */
   1.100  #define SDL_VERSION_ATLEAST(X, Y, Z) \
   1.101 -	(SDL_COMPILEDVERSION >= SDL_VERSIONNUM(X, Y, Z))
   1.102 +    (SDL_COMPILEDVERSION >= SDL_VERSIONNUM(X, Y, Z))
   1.103  
   1.104  /**
   1.105   *  \brief Get the version of SDL that is linked against your program.
   1.106 @@ -115,11 +113,11 @@
   1.107   *  current version will be different than the version you compiled against.
   1.108   *  This function returns the current version, while SDL_VERSION() is a
   1.109   *  macro that tells you what version you compiled with.
   1.110 - *  
   1.111 + *
   1.112   *  \code
   1.113   *  SDL_version compiled;
   1.114   *  SDL_version linked;
   1.115 - *  
   1.116 + *
   1.117   *  SDL_VERSION(&compiled);
   1.118   *  SDL_GetVersion(&linked);
   1.119   *  printf("We compiled against SDL version %d.%d.%d ...\n",
   1.120 @@ -127,9 +125,9 @@
   1.121   *  printf("But we linked against SDL version %d.%d.%d.\n",
   1.122   *         linked.major, linked.minor, linked.patch);
   1.123   *  \endcode
   1.124 - *  
   1.125 + *
   1.126   *  This function may be called safely at any time, even before SDL_Init().
   1.127 - *  
   1.128 + *
   1.129   *  \sa SDL_VERSION
   1.130   */
   1.131  extern DECLSPEC void SDLCALL SDL_GetVersion(SDL_version * ver);
   1.132 @@ -155,9 +153,7 @@
   1.133  
   1.134  /* Ends C function definitions when using C++ */
   1.135  #ifdef __cplusplus
   1.136 -/* *INDENT-OFF* */
   1.137  }
   1.138 -/* *INDENT-ON* */
   1.139  #endif
   1.140  #include "close_code.h"
   1.141