old_contents: # Copyright (c) 2001, Stanford University
  # All rights reserved.
  #
  # See the file LICENSE.txt for information on redistributing this software.
  
  
  import sys
  
  sys.path.append( "../glapi_parser" )
  import apiutil
  
  apiutil.CopyrightDef()
  
  print """DESCRIPTION ""
  EXPORTS
  """
  
  keys = apiutil.GetDispatchedFunctions("../glapi_parser/APIspec.txt")
  
  for func_name in apiutil.AllSpecials( 'state' ):
  	print "crState%s" % func_name
  
  for func_name in apiutil.AllSpecials( 'state_feedback' ):
  	print "crStateFeedback%s" % func_name
  
  for func_name in apiutil.AllSpecials( 'state_select' ):
  	print "crStateSelect%s" % func_name
  
  print """crStateInit
  crStateCreateContext
  crStateDestroyContext
  crStateDiffContext
  crStateSwitchContext
  crStateMakeCurrent
  crStateSetCurrent
  crStateFlushFunc
  crStateFlushArg
  crStateDiffAPI
  crStateSetCurrentPointers
  crStateCurrentRecover
  crStateTransformUpdateTransform
  crStateColorMaterialRecover
  crStateError
  crStateUpdateColorBits
  crStateClientInit
  crStateGetCurrent
  crStateLimitsInit
  crStateMergeExtensions
  crStateRasterPosUpdate
  crStateTextureCheckDirtyImages
  crStateExtensionsInit
  crStateSetExtensionString
  crStateNativePixelPacking
  crStateUseServerArrays
  crStateComputeVersion
  __currentBits
  """
  
new_contents: # Copyright (c) 2001, Stanford University
  # All rights reserved.
  #
  # See the file LICENSE.txt for information on redistributing this software.
  
  
  import sys
  
  sys.path.append( "../glapi_parser" )
  import apiutil
  
  apiutil.CopyrightDef()
  
  print """DESCRIPTION ""
  EXPORTS
  """
  
  keys = apiutil.GetDispatchedFunctions("../glapi_parser/APIspec.txt")
  
  for func_name in apiutil.AllSpecials( 'state' ):
  	print "crState%s" % func_name
  
  for func_name in apiutil.AllSpecials( 'state_feedback' ):
  	print "crStateFeedback%s" % func_name
  
  for func_name in apiutil.AllSpecials( 'state_select' ):
  	print "crStateSelect%s" % func_name
  
  print """crStateInit
  crStateReadPixels
  crStateGetChromiumParametervCR
  crStateCreateContext
  crStateDestroyContext
  crStateDiffContext
  crStateSwitchContext
  crStateMakeCurrent
  crStateSetCurrent
  crStateFlushFunc
  crStateFlushArg
  crStateDiffAPI
  crStateSetCurrentPointers
  crStateCurrentRecover
  crStateTransformUpdateTransform
  crStateColorMaterialRecover
  crStateError
  crStateUpdateColorBits
  crStateClientInit
  crStateGetCurrent
  crStateLimitsInit
  crStateMergeExtensions
  crStateRasterPosUpdate
  crStateTextureCheckDirtyImages
  crStateExtensionsInit
  crStateSetExtensionString
  crStateNativePixelPacking
  crStateUseServerArrays
  crStateComputeVersion
  __currentBits
  """
  
subject: Fix defs for ReadPixels and GetChromiumParametervCR