Changeset 283 for trunk


Ignore:
Timestamp:
Mar 31, 2007, 6:15:20 PM (18 years ago)
Author:
cinc
Message:

Fixed unitialized pointer crash. Use new IDL compiler.

Location:
trunk/foundation
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/foundation/Makefile

    r241 r283  
    2323                        -I $(NOMPATH)/class_h -I $(NOMPATH)/include \
    2424                        -I $(GUITKPATH)/class_h -I $(GUITKPATH)/include
     25
     26# NOM IDL compiler
     27NOMIDLINC       =       -I$(TKIDLDIR)
     28NOMIDLCOMPILER  =       $(BINDIR)/nom-idl-compiler.exe
    2529
    2630
     
    5862###################################
    5963
    60 BASE_NOMCOMPILEH        =       $(IDLCOMP) -include=$(TKIDLDIR) --showcpperrors --header --output-dir=$(CLASSINC) $<
    61 BASE_NOMCOMPILEIH       =       $(IDLCOMP) -include=$(TKIDLDIR) --showcpperrors --ihfile --output-dir=$(CLASSINC) $<
     64#BASE_NOMCOMPILEH       =       $(IDLCOMP) -include=$(TKIDLDIR) --showcpperrors --header --output-dir=$(CLASSINC) $<
     65#BASE_NOMCOMPILEIH      =       $(IDLCOMP) -include=$(TKIDLDIR) --showcpperrors --ihfile --output-dir=$(CLASSINC) $<
    6266BASE_NOMCOMPILEC        =       $(IDLCOMP) -include=$(TKIDLDIR) --showcpperrors --c-template --output-dir=$(CLASSTEMPLATEDIR) $<
     67
     68BASE_NOMCOMPILEH        =       gcc -E -x c -D__NOM_IDL_COMPILER__ $(NOMIDLINC) $< | $(NOMIDLCOMPILER) --emit-h -d $(CLASSINC) -
     69BASE_NOMCOMPILEIH       =       gcc -E -x c -D__NOM_IDL_COMPILER__ $(NOMIDLINC) $< | $(NOMIDLCOMPILER) --emit-ih -d $(CLASSINC) -
     70
    6371
    6472
  • trunk/foundation/class_c/nomfilepath.c

    r227 r283  
    9999    return (NOMPath*)NOMPath_appendCString((NOMString*)nomSelf, G_DIR_SEPARATOR_S, ev);
    100100
     101  /* This is not a copy */
     102  chrTemp=NOMPath_queryCString(nomSelf, NULLHANDLE);
    101103  /* Add a separator */
    102104  if(G_DIR_SEPARATOR!=chrTemp[len-1])
     
    184186  PNOMPath nomRetval=(PNOMPath) NOMPath_new(nomSelf, NULLHANDLE);
    185187  gchar *chrTemp;
    186 
     188  g_message("In %s", __FUNCTION__);
    187189  chrTemp=NOMPath_queryCString(nomSelf, NULLHANDLE); /* Not a copy */
    188190
  • trunk/foundation/class_c/nomstring.c

    r241 r283  
    4747#include <string.h>
    4848#include <glib.h>
    49 
     49#include "nomfoundation.h"
    5050#include "nomstring.ih"
    5151
     
    120120  NOMStringData* nomThis=NOMStringGetData(nomSelf);
    121121
     122  //g_message("In %s %d %s", __FUNCTION__, _gString->len, _gString->str );
     123
    122124  return _gString->len;
    123125}
  • trunk/foundation/idl/nomfilepath.idl

    r227 r283  
    4646interface NOMPath : NOMString
    4747{
     48#ifdef __NOM_IDL_COMPILER__
     49  filestem=nomfilepath;
     50#endif
    4851  /**
    4952     The current version of this class is 1.0
  • trunk/foundation/idl/nomstring.idl

    r227 r283  
    5151interface NOMString : NOMObject
    5252{
     53#ifdef __NOM_IDL_COMPILER__
     54  filestem=nomstring;
     55#endif
     56
    5357  /**
    5458     The current version of this class is 1.0
Note: See TracChangeset for help on using the changeset viewer.