[Tinyos-2-commits] CVS: tinyos-2.x/tools/tinyos/ncc/nesdoc-py archive.py, 1.5, 1.6
David Gay
idgay at users.sourceforge.net
Tue Jun 17 12:02:05 PDT 2008
Update of /cvsroot/tinyos/tinyos-2.x/tools/tinyos/ncc/nesdoc-py
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv24867/nesdoc-py
Modified Files:
archive.py
Log Message:
quick fix for commands in specs of generic components - produces large XML files
Index: archive.py
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tools/tinyos/ncc/nesdoc-py/archive.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** archive.py 2 May 2008 20:49:44 -0000 1.5
--- archive.py 17 Jun 2008 19:02:03 -0000 1.6
***************
*** 151,155 ****
for x in functions.getElementsByTagName("function"):
# hack: tasks don't show up with a command/event attribute
! if x.hasAttribute("event") or x.hasAttribute("command"):
incomponent = get1(x, "component-ref").getAttribute("qname")
if speclist.has_key(incomponent):
--- 151,156 ----
for x in functions.getElementsByTagName("function"):
# hack: tasks don't show up with a command/event attribute
! # don't include commands/events from interfaces
! if (x.hasAttribute("event") or x.hasAttribute("command")) and (not xml_tag(x, "interface-ref")):
incomponent = get1(x, "component-ref").getAttribute("qname")
if speclist.has_key(incomponent):
More information about the Tinyos-2-commits
mailing list