[FFmpeg-cvslog] r23824 - trunk/doc/tablegen.txt
reimar
subversion
Sun Jun 27 16:31:50 CEST 2010
Author: reimar
Date: Sun Jun 27 16:31:50 2010
New Revision: 23824
Log:
Update tablegen documentation for WRITE_ARRAY macro.
Modified:
trunk/doc/tablegen.txt
Modified: trunk/doc/tablegen.txt
==============================================================================
--- trunk/doc/tablegen.txt Sun Jun 27 16:16:54 2010 (r23823)
+++ trunk/doc/tablegen.txt Sun Jun 27 16:31:50 2010 (r23824)
@@ -28,9 +28,14 @@ them.
The printing code typically looks like this:
write_fileheader();
printf("static const uint8_t my_array[100] = {\n");
- write_uint8_array(my_array, 100);
+ write_uint8_t_array(my_array, 100);
printf("};\n");
+This is the more generic form, in case you need to do something special.
+Usually you should instead use the short form:
+ write_fileheader();
+ WRITE_ARRAY("static const", uint8_t, my_array);
+
write_fileheader() adds some minor things like a "this is a generated file"
comment and some standard includes.
tablegen.h defines some write functions for one- and two-dimensional arrays
More information about the ffmpeg-cvslog
mailing list