Ported to Universal Header 2.0.1f (i.e. CW6)

This commit is contained in:
Jack Jansen 1995-06-09 20:56:31 +00:00
parent a0e76bebd3
commit 7d0bc8343f
32 changed files with 519 additions and 490 deletions

View file

@ -16,6 +16,11 @@ ScriptCode = Type("ScriptCode", "h")
Size = Type("Size", "l")
Style = Type("Style", "b")
UInt16 = Type("UInt16", "h")
SInt16 = Type("SInt16", "h")
UInt32 = Type("UInt32", "l")
SInt32 = Type("SInt32", "l")
# Pascal strings
ConstStr255Param = OpaqueArrayType("Str255", "PyMac_BuildStr255", "PyMac_GetStr255")
Str255 = OpaqueArrayType("Str255", "PyMac_BuildStr255", "PyMac_GetStr255")

View file

@ -30,7 +30,7 @@ except ImportError:
#CREATOR = 'KAHL' # Guido's favorite text editor on the Mac
#INCLUDEDIR = "D:Development:THINK C:Mac #includes:Apple #includes:"
CREATOR = 'MPCC' # Jack's favorite text editor on the Mac
INCLUDEDIR = "Moes:CW5 GOLD Ä:Metrowerks C/C++ Ä:Headers Ä:Universal Headers 2.0a3 Ä:"
INCLUDEDIR = "Moes:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:"
Error = "scantools.Error"
@ -309,7 +309,10 @@ class Scanner:
except IOError:
pass
# If not on the path, or absolute, try default open()
return open(filename, 'r')
try:
return open(filename, 'r')
except IOError, arg:
raise IOError, (arg, filename)
def getline(self):
if not self.scanfile: