Ignore:
Timestamp:
Apr 1, 2007, 2:03:04 PM (18 years ago)
Author:
cinc
Message:

Hunting bugs...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/idl-compiler/parser_c/interface_parser.c

    r287 r289  
    4646{
    4747  PSYMBOL pNewSymbol=g_malloc0(sizeof(SYMBOL));
     48
     49  // g_message("In %s for %s", __FUNCTION__, pParseInfo->pCurInterface->chrName);
    4850
    4951  pParseInfo->pCurInterface->pSymbolIFace=pNewSymbol;
     
    7981static void deRegisterInterface(PINTERFACE pif)
    8082{
     83  //  g_message("In %s", __FUNCTION__);
     84
    8185  /* Remove the interface from our list */
    8286  g_ptr_array_remove(pParseInfo->pInterfaceArray, (gpointer) pif);
     
    363367          g_free(pParseInfo->pCurInterface);
    364368        }
    365       pParseInfo->pCurInterface->chrSourceFileName=g_strdup(pParseInfo->chrCurrentSourceFile);
    366       pParseInfo->pCurInterface->fIsForwardDeclaration=TRUE;
    367       /* It's save to register the interface right here even if the struct is almost empty.
    368          If anything goes wrong later we will exit anyway. */
    369       registerInterface(); 
     369      else{
     370        pParseInfo->pCurInterface->chrSourceFileName=g_strdup(pParseInfo->chrCurrentSourceFile);
     371        pParseInfo->pCurInterface->fIsForwardDeclaration=TRUE;
     372        /* It's save to register the interface right here even if the struct is almost empty.
     373           If anything goes wrong later we will exit anyway. */
     374        registerInterface(); 
     375      }
    370376    }
    371377  else
     
    396402        }
    397403      pParseInfo->pCurInterface->chrSourceFileName=g_strdup(pParseInfo->chrCurrentSourceFile);
    398       pParseInfo->pCurInterface->fIsForwardDeclaration=TRUE;
    399404      /* It's save to register the interface right here even if the struct is almost empty.
    400405         If anything goes wrong later we will exit anyway. */
    401406      registerInterface(); 
    402407      if(matchNext(':'))
    403         {
    404          
     408        {         
    405409          parseSubclassedIFace();
    406410        }
Note: See TracChangeset for help on using the changeset viewer.