mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Whitespace normalization, via reindent.py.
This commit is contained in:
parent
e6ddc8b20b
commit
182b5aca27
453 changed files with 31318 additions and 31452 deletions
|
@ -9,16 +9,16 @@
|
|||
import string
|
||||
|
||||
# Declarations that change for each manager
|
||||
MACHEADERFILE = 'Scrap.h' # The Apple header file
|
||||
MODNAME = '_Scrap' # The name of the module
|
||||
OBJECTNAME = 'Scrap' # The basic name of the objects used here
|
||||
MACHEADERFILE = 'Scrap.h' # The Apple header file
|
||||
MODNAME = '_Scrap' # The name of the module
|
||||
OBJECTNAME = 'Scrap' # The basic name of the objects used here
|
||||
|
||||
# The following is *usually* unchanged but may still require tuning
|
||||
MODPREFIX = 'Scrap' # The prefix for module-wide routines
|
||||
OBJECTTYPE = OBJECTNAME + 'Ref' # The C type used to represent them
|
||||
OBJECTPREFIX = MODPREFIX + 'Obj' # The prefix for object methods
|
||||
MODPREFIX = 'Scrap' # The prefix for module-wide routines
|
||||
OBJECTTYPE = OBJECTNAME + 'Ref' # The C type used to represent them
|
||||
OBJECTPREFIX = MODPREFIX + 'Obj' # The prefix for object methods
|
||||
INPUTFILE = string.lower(MODPREFIX) + 'gen.py' # The file generated by the scanner
|
||||
OUTPUTFILE = '@' + MODNAME + "module.c" # The file generated by this program
|
||||
OUTPUTFILE = '@' + MODNAME + "module.c" # The file generated by this program
|
||||
|
||||
from macsupport import *
|
||||
|
||||
|
@ -33,12 +33,12 @@ includestuff = includestuff + """
|
|||
*/
|
||||
static PyObject *
|
||||
SCRRec_New(itself)
|
||||
ScrapStuff *itself;
|
||||
ScrapStuff *itself;
|
||||
{
|
||||
|
||||
return Py_BuildValue("lO&hhO&", itself->scrapSize,
|
||||
ResObj_New, itself->scrapHandle, itself->scrapCount, itself->scrapState,
|
||||
PyMac_BuildStr255, itself->scrapName);
|
||||
return Py_BuildValue("lO&hhO&", itself->scrapSize,
|
||||
ResObj_New, itself->scrapHandle, itself->scrapCount, itself->scrapState,
|
||||
PyMac_BuildStr255, itself->scrapName);
|
||||
}
|
||||
"""
|
||||
|
||||
|
@ -49,7 +49,7 @@ ScrapFlavorFlags = Type('ScrapFlavorFlags', 'l')
|
|||
putscrapbuffer = FixedInputBufferType('void *')
|
||||
|
||||
class MyObjectDefinition(PEP253Mixin, GlobalObjectDefinition):
|
||||
pass
|
||||
pass
|
||||
|
||||
# Create the generator groups and link them
|
||||
module = MacModule(MODNAME, MODPREFIX, includestuff, finalstuff, initstuff)
|
||||
|
@ -73,4 +73,3 @@ for f in methods: object.add(f)
|
|||
# generate output (open the output file as late as possible)
|
||||
SetOutputFileName(OUTPUTFILE)
|
||||
module.generate()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue