Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
1.8 KiB

  1. /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  2. Copyright (c) 1989-1999 Microsoft Corporation
  3. Module Name:
  4. stana.cxx
  5. Abstract:
  6. structure marshalling / unmarshalling analysis.
  7. Notes:
  8. History:
  9. ----------------------------------------------------------------------------*/
  10. /****************************************************************************
  11. * include files
  12. ***************************************************************************/
  13. #include "allana.hxx"
  14. #pragma hdrstop
  15. /****************************************************************************
  16. * local definitions
  17. ***************************************************************************/
  18. /****************************************************************************
  19. * local data
  20. ***************************************************************************/
  21. /****************************************************************************
  22. * externs
  23. ***************************************************************************/
  24. /****************************************************************************/
  25. CG_STATUS
  26. CG_STRUCT::MarshallAnalysis(
  27. ANALYSIS_INFO * pAna )
  28. {
  29. pAna;
  30. return CG_OK;
  31. }
  32. CG_STATUS
  33. CG_STRUCT::UnMarshallAnalysis( ANALYSIS_INFO* )
  34. {
  35. return CG_OK;
  36. }
  37. CG_STATUS
  38. CG_COMP::S_OutLocalAnalysis(
  39. ANALYSIS_INFO * pAna )
  40. {
  41. if( pAna->IsRefAllocDone() )
  42. {
  43. if( pAna->GetCurrentSide() != C_SIDE )
  44. {
  45. char Buffer[ 256 ];
  46. CG_NDR * pLPC = pAna->GetLastPlaceholderClass();
  47. strcpy( Buffer, pLPC->GetType()->GetSymName() );
  48. PNAME pName = pAna->GenTRNameOffLastParam( Buffer );
  49. pAna->AddLocalResource( pName,
  50. MakeIDNode( pName, GetType() )
  51. );
  52. }
  53. SetAllocatedOnStack( 1 );
  54. }
  55. return CG_OK;
  56. }