groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Groff-commit] groff/src/preproc/tbl table.h


From: Eric S. Raymond
Subject: [Groff-commit] groff/src/preproc/tbl table.h
Date: Fri, 09 Feb 2007 22:03:21 +0000

CVSROOT:        /sources/groff
Module name:    groff
Changes by:     Eric S. Raymond <esr>   07/02/09 22:03:21

Modified files:
        src/preproc/tbl: table.h 

Log message:
        A try at the new rule for block column allocation is now enabled by
        the new "experimental" flag.  It doesn't work right as yet; there
        appears to be some error in the computation of 3avail, the available
        line length.  The purpose of this patch is (a) to make experimenting
        with other formulas easy, and (b) leave the infrastructure for flag
        'experimental' in place for future experiments.  Do not document any
        behavior associated with this flag!

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/groff/src/preproc/tbl/table.h?cvsroot=groff&r1=1.9&r2=1.10

Patches:
Index: table.h
===================================================================
RCS file: /sources/groff/groff/src/preproc/tbl/table.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- table.h     9 Feb 2007 10:50:11 -0000       1.9
+++ table.h     9 Feb 2007 22:03:21 -0000       1.10
@@ -85,7 +85,6 @@
 struct vertical_rule;
 
 class table {
-  unsigned flags;
   int nrows;
   int ncolumns;
   int linesize;
@@ -133,15 +132,16 @@
   int count_block_columns();
 public:
   bool *blockflag;
-  /* used by flags */
+  unsigned flags;
   enum {
-    CENTER = 01,
-    EXPAND = 02,
-    BOX = 04,
-    ALLBOX = 010,
-    DOUBLEBOX = 020,
-    NOKEEP = 040,
-    NOSPACES = 0100
+    CENTER       = 0x00000001,
+    EXPAND       = 0x00000002,
+    BOX          = 0x00000004,
+    ALLBOX       = 0x00000008,
+    DOUBLEBOX    = 0x00000010,
+    NOKEEP       = 0x00000020,
+    NOSPACES     = 0x00000040,
+    EXPERIMENTAL = 0x80000000, // undocumented; use as a hook for experiments
     };
   table(int nc, unsigned flags, int linesize, char decimal_point_char);
   ~table();




reply via email to

[Prev in Thread] Current Thread [Next in Thread]