old_contents: # Copyright (c) 2001, Stanford University
  # All rights reserved.
  #
  # See the file LICENSE.txt for information on redistributing this software.
  
  
  import sys,os;
  import cPickle;
  import string;
  import re;
  
  sys.path.append( "../opengl_stub" )
  parsed_file = open( "../glapi_parser/gl_header.parsed", "rb" )
  gl_mapping = cPickle.load( parsed_file )
  
  import stub_common;
  
  stub_common.CopyrightDef()
  
  print """DESCRIPTION ""
  EXPORTS
  """
  
  keys = gl_mapping.keys()
  keys.sort();
  
  for func_name in stub_common.AllSpecials( 'state' ):
  	print "crState%s" % func_name
  
  for func_name in stub_common.AllSpecials( 'state_feedback' ):
  	print "crStateFeedback%s" % func_name
  
  for func_name in stub_common.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
  __currentBits
  __stateChromiumExtensions
  __stateExtensionString
  __stateAppOnlyExtensions
  """
  
new_contents: # Copyright (c) 2001, Stanford University
  # All rights reserved.
  #
  # See the file LICENSE.txt for information on redistributing this software.
  
  
  import sys,os;
  import cPickle;
  import string;
  import re;
  
  sys.path.append( "../opengl_stub" )
  parsed_file = open( "../glapi_parser/gl_header.parsed", "rb" )
  gl_mapping = cPickle.load( parsed_file )
  
  import stub_common;
  
  stub_common.CopyrightDef()
  
  print """DESCRIPTION ""
  EXPORTS
  """
  
  keys = gl_mapping.keys()
  keys.sort();
  
  for func_name in stub_common.AllSpecials( 'state' ):
  	print "crState%s" % func_name
  
  for func_name in stub_common.AllSpecials( 'state_feedback' ):
  	print "crStateFeedback%s" % func_name
  
  for func_name in stub_common.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
  crStateTextureCheckDirtyImages
  __currentBits
  __stateChromiumExtensions
  __stateExtensionString
  __stateAppOnlyExtensions
  """
  
subject: add crStateTextureCheckDirtyImages