[Python-checkins] python/dist/src/Mac/Modules/ah ahscan.py, 1.1, 1.2 ahsupport.py, 1.3, 1.4

tim_one at users.sourceforge.net tim_one at users.sourceforge.net
Sun Jul 18 07:58:40 CEST 2004


Update of /cvsroot/python/python/dist/src/Mac/Modules/ah
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29056/Modules/ah

Modified Files:
	ahscan.py ahsupport.py 
Log Message:
Whitespace normalization, via reindent.py.


Index: ahscan.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/ah/ahscan.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ahscan.py	22 Aug 2002 23:31:37 -0000	1.1
--- ahscan.py	18 Jul 2004 05:58:07 -0000	1.2
***************
*** 12,52 ****
  
  def main():
! 	input = LONG + ".h"
! 	output = SHORT + "gen.py"
! 	defsoutput = TOOLBOXDIR + LONG + ".py"
! 	scanner = MyScanner(input, output, defsoutput)
! 	scanner.scan()
! 	scanner.close()
! 	print "=== Testing definitions output code ==="
! 	execfile(defsoutput, {}, {})
! 	print "=== Done scanning and generating, now importing the generated code... ==="
! 	exec "import " + SHORT + "support"
! 	print "=== Done.  It's up to you to compile it now! ==="
  
  class MyScanner(Scanner_OSX):
  
! 	def destination(self, type, name, arglist):
! 		classname = "Function"
! 		listname = "functions"
! 		if arglist:
! 			t, n, m = arglist[0]
! 			# This is non-functional today
! 			if t == OBJECT and m == "InMode":
! 				classname = "Method"
! 				listname = "methods"
! 		return classname, listname
  
! 	def makeblacklistnames(self):
! 		return [
! 			]
  
! 	def makeblacklisttypes(self):
! 		return [
! 			]
  
- 	def makerepairinstructions(self):
- 		return [
- 			]
- 			
  if __name__ == "__main__":
! 	main()
--- 12,52 ----
  
  def main():
!     input = LONG + ".h"
!     output = SHORT + "gen.py"
!     defsoutput = TOOLBOXDIR + LONG + ".py"
!     scanner = MyScanner(input, output, defsoutput)
!     scanner.scan()
!     scanner.close()
!     print "=== Testing definitions output code ==="
!     execfile(defsoutput, {}, {})
!     print "=== Done scanning and generating, now importing the generated code... ==="
!     exec "import " + SHORT + "support"
!     print "=== Done.  It's up to you to compile it now! ==="
  
  class MyScanner(Scanner_OSX):
  
!     def destination(self, type, name, arglist):
!         classname = "Function"
!         listname = "functions"
!         if arglist:
!             t, n, m = arglist[0]
!             # This is non-functional today
!             if t == OBJECT and m == "InMode":
!                 classname = "Method"
!                 listname = "methods"
!         return classname, listname
  
!     def makeblacklistnames(self):
!         return [
!                 ]
  
!     def makeblacklisttypes(self):
!         return [
!                 ]
! 
!     def makerepairinstructions(self):
!         return [
!                 ]
  
  if __name__ == "__main__":
!     main()

Index: ahsupport.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/ah/ahsupport.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ahsupport.py	19 Nov 2003 16:13:23 -0000	1.3
--- ahsupport.py	18 Jul 2004 05:58:07 -0000	1.4
***************
*** 7,17 ****
  
  # Declarations that change for each manager
! MACHEADERFILE = 'AppleHelp.h'		# The Apple header file
! MODNAME = '_AH'				# The name of the module
  
  # The following is *usually* unchanged but may still require tuning
! MODPREFIX = 'Ah'			# The prefix for module-wide routines
  INPUTFILE = string.lower(MODPREFIX) + 'gen.py' # The file generated by the scanner
! OUTPUTFILE = MODNAME + "module.c"	# The file generated by this program
  
  from macsupport import *
--- 7,17 ----
  
  # Declarations that change for each manager
! MACHEADERFILE = 'AppleHelp.h'           # The Apple header file
! MODNAME = '_AH'                         # The name of the module
  
  # The following is *usually* unchanged but may still require tuning
! MODPREFIX = 'Ah'                        # The prefix for module-wide routines
  INPUTFILE = string.lower(MODPREFIX) + 'gen.py' # The file generated by the scanner
! OUTPUTFILE = MODNAME + "module.c"       # The file generated by this program
  
  from macsupport import *
***************
*** 44,46 ****
  SetOutputFileName(OUTPUTFILE)
  module.generate()
- 
--- 44,45 ----



More information about the Python-checkins mailing list