[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: treecc/etc cpp_skel.cc,1.4,1.5
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: treecc/etc cpp_skel.cc,1.4,1.5 |
Date: |
Tue, 28 Jan 2003 19:16:19 -0500 |
Update of /cvsroot/dotgnu-pnet/treecc/etc
In directory subversions:/tmp/cvs-serv19446/etc
Modified Files:
cpp_skel.cc
Log Message:
Add the "allocator" and "no_allocator" options, which allow treecc's
C/C++ node allocators to be replaced with third party node allocators.
Index: cpp_skel.cc
===================================================================
RCS file: /cvsroot/dotgnu-pnet/treecc/etc/cpp_skel.cc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** cpp_skel.cc 5 Mar 2002 05:07:19 -0000 1.4
--- cpp_skel.cc 29 Jan 2003 00:16:17 -0000 1.5
***************
*** 121,124 ****
--- 121,126 ----
}
+ #ifdef YYNODESTATE_USE_ALLOCATOR
+
/*
* Allocate a block of memory.
***************
*** 163,166 ****
--- 165,176 ----
/*
+ * Deallocate a block of memory.
+ */
+ void *YYNODESTATE::dealloc(void *ptr__, size_t size__)
+ {
+ /* Nothing to do for this type of node allocator */
+ }
+
+ /*
* Push the node allocation state.
*/
***************
*** 240,243 ****
--- 250,255 ----
used__ = 0;
}
+
+ #endif /* YYNODESTATE_USE_ALLOCATOR */
/*
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: treecc/etc cpp_skel.cc,1.4,1.5,
Rhys Weatherley <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] CVS: treecc/tests output5.out,1.5,1.6 output6.out,1.5,1.6 output9.out,1.5,1.6
- Next by Date:
[Dotgnu-pnet-commits] CVS: treecc ChangeLog,1.76,1.77 main.c,1.4,1.5
- Previous by thread:
[Dotgnu-pnet-commits] CVS: treecc/tests output5.out,1.5,1.6 output6.out,1.5,1.6 output9.out,1.5,1.6
- Next by thread:
[Dotgnu-pnet-commits] CVS: treecc ChangeLog,1.76,1.77 main.c,1.4,1.5
- Index(es):