[GRASS-SVN] r62440 - in grass/trunk/include: Make defs

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Oct 28 08:36:03 PDT 2014


Author: glynn
Date: 2014-10-28 08:36:03 -0700 (Tue, 28 Oct 2014)
New Revision: 62440

Modified:
   grass/trunk/include/Make/Compile.make
   grass/trunk/include/defs/gis.h
Log:
Include directory in filenames for allocation failure errors


Modified: grass/trunk/include/Make/Compile.make
===================================================================
--- grass/trunk/include/Make/Compile.make	2014-10-28 14:42:48 UTC (rev 62439)
+++ grass/trunk/include/Make/Compile.make	2014-10-28 15:36:03 UTC (rev 62440)
@@ -20,7 +20,7 @@
 linker_cxx = $(call linker_x,$(CXX))
 linker = $(call linker_x,$(LINK))
 
-ALL_CFLAGS = $(LFS_CFLAGS) $(EXTRA_CFLAGS) $(NLS_CFLAGS) $(DEFS) $(EXTRA_INC) $(INC)
+ALL_CFLAGS = $(LFS_CFLAGS) $(EXTRA_CFLAGS) $(NLS_CFLAGS) $(DEFS) $(EXTRA_INC) $(INC) -DRELDIR=\"$(RELDIR)\"
 
 compiler_x = $(1) $(2) $(ALL_CFLAGS) -o $@ -c $<
 compiler_c = $(call compiler_x,$(CC),$(COMPILE_FLAGS_C) $($*_c_FLAGS))

Modified: grass/trunk/include/defs/gis.h
===================================================================
--- grass/trunk/include/defs/gis.h	2014-10-28 14:42:48 UTC (rev 62439)
+++ grass/trunk/include/defs/gis.h	2014-10-28 15:36:03 UTC (rev 62440)
@@ -81,9 +81,9 @@
 #endif
 
 #ifndef CTYPESGEN
-#define G_malloc(n)     G__malloc(__FILE__, __LINE__, (n))
-#define G_calloc(m, n)  G__calloc(__FILE__, __LINE__, (m), (n))
-#define G_realloc(p, n) G__realloc(__FILE__, __LINE__, (p), (n))
+#define G_malloc(n)     G__malloc(RELDIR "/" __FILE__, __LINE__, (n))
+#define G_calloc(m, n)  G__calloc(RELDIR "/" __FILE__, __LINE__, (m), (n))
+#define G_realloc(p, n) G__realloc(RELDIR "/" __FILE__, __LINE__, (p), (n))
 #else
 #define G_malloc(n)     G__malloc("<ctypesgen>", 0, (n))
 #define G_calloc(m, n)  G__calloc("<ctypesgen>", 0, (m), (n))



More information about the grass-commit mailing list