"Fossies" - the Fresh Open Source Software Archive

Member "di-4.47.2/D/dispopts.d" (30 Oct 2019, 571 Bytes) of package /linux/privat/di-4.47.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) D source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "dispopts.d" see the Fossies "Dox" file reference documentation.

    1 // written in the D programming language
    2 
    3 module dispopts;
    4 
    5 import std.stdio;
    6 import std.string;
    7 
    8 import config;
    9 
   10 enum real
   11   size1000 = 1000.0,
   12   size1024 = 1024.0;
   13 enum int
   14   idx1000 = 0,
   15   idx1024 = 1;
   16 
   17 struct DisplayOpts {
   18   bool              posixCompat = false;
   19   real              dispBlockSize = 0;
   20   real              baseDispSize = size1024;
   21   int               baseDispIdx = idx1024;
   22   short             precision = 0;
   23   short             width = 0;
   24   short             inodeWidth = 0;
   25   string            dbsstr = "H";
   26   string            dispBlockLabel;
   27 };
   28