projects
/
igor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6ffafd
)
Add closing semicolons (;) to C structures in docstrings.
author
W. Trevor King
<wking@tremily.us>
Sat, 21 Jul 2012 19:39:21 +0000
(15:39 -0400)
committer
W. Trevor King
<wking@tremily.us>
Sat, 21 Jul 2012 19:39:21 +0000
(15:39 -0400)
igor/struct.py
patch
|
blob
|
history
diff --git
a/igor/struct.py
b/igor/struct.py
index 6a19e2ca790b9f60ff1ae8bfb2699035e52ffa26..a50ede52966fe322883821dcf5d06d96e483f121 100644
(file)
--- 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