diff tableprint.c @ 11979:59f399926c12 libavcodec

tableprint: use the type name as-is for the functions' names. This drops one parameter from the functions' macros, and require structures to be typedeffed, but ensures that it is possible to map 1-to-1 the type to the function name.
author flameeyes
date Sun, 27 Jun 2010 12:20:39 +0000
parents 8ad2b8f20e6a
children
line wrap: on
line diff
--- a/tableprint.c	Sun Jun 27 09:44:10 2010 +0000
+++ b/tableprint.c	Sun Jun 27 12:20:39 2010 +0000
@@ -24,16 +24,16 @@
 #include <inttypes.h>
 #include "tableprint.h"
 
-WRITE_1D_FUNC(int8,   int8_t,   "%3"PRIi8, 15)
-WRITE_1D_FUNC(uint8,  uint8_t,  "0x%02"PRIx8, 15)
-WRITE_1D_FUNC(uint16, uint16_t, "0x%08"PRIx16, 7)
-WRITE_1D_FUNC(uint32, uint32_t, "0x%08"PRIx32, 7)
-WRITE_1D_FUNC(float,  float,    "%.18e", 3)
+WRITE_1D_FUNC(int8_t,   "%3"PRIi8, 15)
+WRITE_1D_FUNC(uint8_t,  "0x%02"PRIx8, 15)
+WRITE_1D_FUNC(uint16_t, "0x%08"PRIx16, 7)
+WRITE_1D_FUNC(uint32_t, "0x%08"PRIx32, 7)
+WRITE_1D_FUNC(float,    "%.18e", 3)
 
-WRITE_2D_FUNC(int8,   int8_t)
-WRITE_2D_FUNC(uint8,  uint8_t)
-WRITE_2D_FUNC(uint32, uint32_t)
-WRITE_2D_FUNC(float,  float)
+WRITE_2D_FUNC(int8_t)
+WRITE_2D_FUNC(uint8_t)
+WRITE_2D_FUNC(uint32_t)
+WRITE_2D_FUNC(float)
 
 void write_fileheader(void) {
     printf("/* This file was generated by libavcodec/tableprint */\n");