From: W. Trevor King Date: Sat, 21 Jul 2012 19:39:21 +0000 (-0400) Subject: Add closing semicolons (;) to C structures in docstrings. X-Git-Tag: v0.3~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b81f29eab02abfac6b0d0ffe86c614e8cc016f1c;p=igor.git Add closing semicolons (;) to C structures in docstrings. --- diff --git a/igor/struct.py b/igor/struct.py index 6a19e2c..a50ede5 100644 --- a/igor/struct.py +++ b/igor/struct.py @@ -373,12 +373,12 @@ class Structure (_struct.Struct): struct run { unsigned int time; short data[2][3]; - } + }; struct experiment { unsigned short version; struct run runs[2]; - } + }; As: @@ -632,7 +632,7 @@ class DynamicStructure (Structure): struct vector { unsigned int length; short data[length]; - } + }; You can generate a Python version of this structure in two ways, with a dynamic ``length``, or with a dynamic ``data``. In both