Update of /cvsroot/playerstage/code/player/libplayercore
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2784/libplayercore
Modified Files:
playerinterfacegen.py
Log Message:
fix for driver code/name mapping table
Index: playerinterfacegen.py
===================================================================
RCS file: /cvsroot/playerstage/code/player/libplayercore/playerinterfacegen.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** playerinterfacegen.py 20 Aug 2007 06:37:26 -0000 1.1
--- playerinterfacegen.py 27 Aug 2007 03:51:44 -0000 1.2
***************
*** 132,142 ****
"""
interfaces.sort()
! last_code = 0
for interface in interfaces:
! while interface[0] > last_code + 1:
print """ {0xFFFF, "nointerf%d"},""" % last_code
last_code += 1
print """ {PLAYER_%(i)s_CODE, PLAYER_%(i)s_STRING},""" % {"i" :
interface[1].upper() }
- last_code += 1
print """
{0,NULL}
--- 132,142 ----
"""
interfaces.sort()
! last_code = -1 # start at -1 so that we generate and entry for 0
for interface in interfaces:
! last_code += 1
! while interface[0] > last_code:
print """ {0xFFFF, "nointerf%d"},""" % last_code
last_code += 1
print """ {PLAYER_%(i)s_CODE, PLAYER_%(i)s_STRING},""" % {"i" :
interface[1].upper() }
print """
{0,NULL}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit