Add deprecation notices.
authorRalf Corsépius <corsepiu@fedoraproject.org>
Sat, 27 Oct 2007 03:50:32 +0000 (05:50 +0200)
committerRalf Corsépius <corsepiu@fedoraproject.org>
Sat, 27 Oct 2007 03:50:32 +0000 (05:50 +0200)
Depend upon C99-fixed-size types.

rpmdb/rpmints.h.in

index 6a93b99..e117c73 100644 (file)
@@ -6,41 +6,22 @@
 
 #ifdef __RPM_USES_STDINT_H__
 #include <stdint.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef int32_t        int_32;
-typedef int16_t        int_16;
-typedef int8_t         int_8;
-
-typedef uint32_t       uint_32;
-typedef uint16_t       uint_16;
-typedef uint8_t        uint_8;
-
-#ifdef __cplusplus
-}
 #endif
 
-#else
-
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-typedef int            int_32;
-typedef short int      int_16;
-typedef char           int_8;
+typedef int32_t        int_32; /*!< @deprecated Provided for backward compatibility only. Don't use in new code. */
+typedef int16_t        int_16; /*!< @deprecated Provided for backward compatibility only. Don't use in new code. */
+typedef int8_t         int_8;  /*!< @deprecated Provided for backward compatibility only. Don't use in new code. */
 
-typedef unsigned int   uint_32;
-typedef unsigned short uint_16;
-typedef unsigned char  uint_8;
+typedef uint32_t       uint_32; /*!< @deprecated Provided for backward compatibility only. Don't use in new code. */
+typedef uint16_t       uint_16; /*!< @deprecated Provided for backward compatibility only. Don't use in new code. */
+typedef uint8_t        uint_8;  /*!< @deprecated Provided for backward compatibility only. Don't use in new code. */
 
 #ifdef __cplusplus
 }
 #endif
 
 #endif
-
-#endif