aboutsummaryrefslogtreecommitdiffstats
path: root/doc/tablegen.txt
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2010-06-27 14:31:50 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2010-06-27 14:31:50 +0000
commitc9f789ef46bc0170f052ec6d18aea56e644202ee (patch)
tree8bec19fdeb9754c68b4f6ffd010f7ff8178153e0 /doc/tablegen.txt
parent765e61349c479475f9dcdd68328bd08d6863562f (diff)
downloadffmpeg-c9f789ef46bc0170f052ec6d18aea56e644202ee.tar.gz
Update tablegen documentation for WRITE_ARRAY macro.
Originally committed as revision 23824 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'doc/tablegen.txt')
-rw-r--r--doc/tablegen.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/tablegen.txt b/doc/tablegen.txt
index 6fd0ae9a41..4c4f036e6a 100644
--- a/doc/tablegen.txt
+++ b/doc/tablegen.txt
@@ -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