https://github.com/root-project/root
Raw File
Tip revision: 2cd3aafb76e161c5e687de877863ffeb4022b4b0 authored by Gerardo Ganis on 11 June 2012, 16:52:22 UTC
Import patch r44048 removing the automatic creation of TDrawFeedback in TProofChain
Tip revision: 2cd3aaf
t993.h
/* -*- C++ -*- */
/*************************************************************************
 * Copyright(c) 1995~2005  Masaharu Goto (cint@pcroot.cern.ch)
 *
 * For the licensing terms see the file COPYING
 *
 ************************************************************************/


/* from <windows.h> looks like */
typedef int DWORD;

typedef struct _tagSOME_STRUCT2 { int a; } SOME_STRUCT2, *PSOME_STRUCT2;
typedef struct _tagSOME_STRUCT3 { int b; int c; } SOME_STRUCT3, *PSOME_STRUCT3;

typedef struct _tagSOME_STRUCT
{
    DWORD some_member;

    union
   {
        /* the union members are structures which can contain additional structures.
	 * all structures have been forward declared (CINT/MAKECINT no errors)*/
        SOME_STRUCT2 s2;
        SOME_STRUCT3 s3;
    } u;

} SOME_STRUCT, *PSOME_STRUCT;

/* in <winfunc.h>: */

#ifdef __MAKECINT__

#pragma link off all functions;
#pragma link off all classes;
#pragma link off all globals;
#pragma link off all typedefs;


#pragma link C class _tagSOME_STRUCT;
#pragma link C typedef SOME_STRUCT;
#pragma link C typedef PSOME_STRUCT; 

#pragma link C nestedclasses;
#pragma link C nestedtypedefs;

#pragma link C class _tagSOME_STRUCT2;
#pragma link C typedef SOME_STRUCT2;
#pragma link C typedef PSOME_STRUCT2; 

#pragma link C class _tagSOME_STRUCT3;
#pragma link C typedef SOME_STRUCT3;
#pragma link C typedef PSOME_STRUCT3; 

#if G__CINTVERSION < 70000000
#pragma link C union SOME_STRUCT::; 
#else
#pragma link C union _tagSOME_STRUCT::*;
#endif


#endif

/* linked the nested structs in too */




back to top