src/SDL_error_c.h
branchSDL-1.3
changeset 1662 782fd950bd46
parent 1659 14717b52abc0
child 2859 99210400e8b9
     1.1 --- a/src/SDL_error_c.h	Sun May 21 17:27:13 2006 +0000
     1.2 +++ b/src/SDL_error_c.h	Sun May 28 13:04:16 2006 +0000
     1.3 @@ -31,28 +31,31 @@
     1.4  #define ERR_MAX_STRLEN	128
     1.5  #define ERR_MAX_ARGS	5
     1.6  
     1.7 -typedef struct SDL_error {
     1.8 -	/* This is a numeric value corresponding to the current error */
     1.9 -	int error;
    1.10 +typedef struct SDL_error
    1.11 +{
    1.12 +    /* This is a numeric value corresponding to the current error */
    1.13 +    int error;
    1.14  
    1.15 -	/* This is a key used to index into a language hashtable containing
    1.16 -	   internationalized versions of the SDL error messages.  If the key
    1.17 -	   is not in the hashtable, or no hashtable is available, the key is
    1.18 -	   used directly as an error message format string.
    1.19 -	*/
    1.20 -	char key[ERR_MAX_STRLEN];
    1.21 +    /* This is a key used to index into a language hashtable containing
    1.22 +       internationalized versions of the SDL error messages.  If the key
    1.23 +       is not in the hashtable, or no hashtable is available, the key is
    1.24 +       used directly as an error message format string.
    1.25 +     */
    1.26 +    char key[ERR_MAX_STRLEN];
    1.27  
    1.28 -	/* These are the arguments for the error functions */
    1.29 -	int argc;
    1.30 -	union {
    1.31 -		void *value_ptr;
    1.32 -#if 0	/* What is a character anyway?  (UNICODE issues) */
    1.33 -		unsigned char value_c;
    1.34 +    /* These are the arguments for the error functions */
    1.35 +    int argc;
    1.36 +    union
    1.37 +    {
    1.38 +        void *value_ptr;
    1.39 +#if 0                           /* What is a character anyway?  (UNICODE issues) */
    1.40 +        unsigned char value_c;
    1.41  #endif
    1.42 -		int value_i;
    1.43 -		double value_f;
    1.44 -		char buf[ERR_MAX_STRLEN];
    1.45 -	} args[ERR_MAX_ARGS];
    1.46 +        int value_i;
    1.47 +        double value_f;
    1.48 +        char buf[ERR_MAX_STRLEN];
    1.49 +    } args[ERR_MAX_ARGS];
    1.50  } SDL_error;
    1.51  
    1.52  #endif /* _SDL_error_c_h */
    1.53 +/* vi: set ts=4 sw=4 expandtab: */