Changeset: 4fc969181c36 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=4fc969181c36
Modified Files:
        MonetDB/src/gdk/gdk_bbp.mx
Branch: Oct2010
Log Message:

Add extra @c directives.
After my change in 082d38a64b82, line numbers in gdb were off.  This
was because many #line directives that Mx produced were inside C
comments, and hence not effective.  By adding extra @c directives
outside of those C comments, Mx generates extra #line directives which
put the compiler back on track.


diffs (195 lines):

diff -r e8ddfd20bc4c -r 4fc969181c36 MonetDB/src/gdk/gdk_bbp.mx
--- a/MonetDB/src/gdk/gdk_bbp.mx        Mon Sep 27 20:43:55 2010 +0200
+++ b/MonetDB/src/gdk/gdk_bbp.mx        Tue Sep 28 10:24:28 2010 +0200
@@ -163,6 +163,7 @@
 @{
 @c
 */
+...@c
 BBPrec *BBP = NULL;            /* fixed base VM address of BBP array */
 bat BBPmaxsize = BBPMAXSIZE;   /* size of non-committed VM BBP array */
 bat BBPlimit = 0;              /* current committed VM BBP array */
@@ -407,6 +408,7 @@
 held and it will allocate memory. This could trigger a BBPtrim, causing 
deadlock.
 @c
 */
+...@c
 void
 BBPextend(dbl factor, int buildhash)
 {
@@ -951,6 +953,7 @@
 @{
 @c
 */
+...@c
 
 void
 BBPexit(void)
@@ -1035,6 +1038,7 @@
 @{
 @c
 */
+...@c
 static int
 new_bbpentry(stream *s, bat i)
 {
@@ -1373,6 +1377,7 @@
 BBP index lookup by BAT name:
 @c
 */
+...@c
 static INLINE bat
 BBP_find(str nme, int lock)
 {
@@ -1457,6 +1462,7 @@
 An existing BAT is inserted into the BBP 
 @c
 */
+...@c
 static INLINE str
 BBPsubdir_recursive(str s, bat i)
 {
@@ -1624,6 +1630,7 @@
 used in BBPfree (bat swapped out) and BBPclear (bat destroyed forever).
 @c
 */
+...@c
 
 void
 BBPuncacheit(bat i)
@@ -1661,6 +1668,7 @@
 @%BBPclear@ removes a BAT from the BBP directory forever.
 @c
 */
+...@c
 static INLINE void
 bbpclear(bat i, int idx, str lock)
 {
@@ -1734,6 +1742,7 @@
 @{
 @c
 */
+...@c
 int
 BBPrename(bat bid, str nme)
 {
@@ -2086,6 +2095,7 @@
 [first step, initiate code change]
 @c
 */
+...@c
 void
 BBPkeepref(bat i)
 {
@@ -2153,6 +2163,7 @@
  1 = unload failed (due to write-to-disk failure)
 @c
 */
+...@c
 int
 BBPreclaim(BAT *b)
 {
@@ -2174,6 +2185,7 @@
 have at least one fix on the BAT before calling this.
 @c
 */
+...@c
 static BAT *
 getBBPdescriptor(bat i, int lock)
 {
@@ -2235,6 +2247,7 @@
 that want to save or unload this BAT must spin lock on the BBP_status field.
 @c
 */
+...@c
 int
 BBPsave(BAT *b)
 {
@@ -2290,6 +2303,7 @@
 unloaded (or even destroyed, if the BAT is not persistent).
 @c
 */
+...@c
 static int BBPaddtobin(BAT *b);
 static int
 BBPdestroy(BAT *b)
@@ -2440,6 +2454,7 @@
 @{
 @c
 */
+...@c
 #define BBPMAXTRIM 40000
 #define BBPSMALLBAT 1000
 
@@ -2827,6 +2842,7 @@
 @{
 @c
 */
+...@c
 static int
 complexatom(int t, int delaccess)
 {
@@ -2895,6 +2911,7 @@
 @{
 @c
 */
+...@c
 #define BATCACHE_NOTYPE(t)     (ATOMstorage(t) > TYPE_str || 
BATatoms[t].atomFix != NULL)
 #define BATCACHE_SIZE          1023    /* max size: 32767 */
 #define BATCACHE_DIMS          6       /* 0,1,2,4,8 byte types + str */
@@ -3362,6 +3379,7 @@
 @{
 @c
 */
+...@c
 static BAT *
 dirty_bat(bat *i, int subcommit)
 {
@@ -3394,6 +3412,7 @@
 @{
 @c
 */
+...@c
 static int
 file_move(str srcdir, str dstdir, str name, str e)
 {
@@ -3488,6 +3507,7 @@
 @{
 @c
 */
+...@c
 static int backup_files = 0, backup_dir = 0, backup_subdir = 0;
 
 static int
@@ -3620,6 +3640,7 @@
 @{
 @c
 */
+...@c
 int
 BBPsync(int cnt, bat *subcommit)
 {
@@ -3725,6 +3746,7 @@
 @{
 @c
 */
+...@c
 static int
 force_move(str srcdir, str dstdir, str name)
 {
@@ -3869,6 +3891,7 @@
 We do recognize moving back BBP.dir and set backed_up_subdir accordingly.
 @c
 */
+...@c
 int
 BBPrecover_subdir(void)
 {
@@ -3920,6 +3943,7 @@
 @{
 @c
 */
+...@c
 static int
 persistent_bat(bat bid)
 {
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to