LCOV - code coverage report
Current view: top level - libs/libgroff - device.cpp (source / functions) Hit Total Coverage
Test: GNU roff Lines: 4 5 80.0 %
Date: 2026-01-16 17:51:41 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* Copyright 1989-2020 Free Software Foundation, Inc.
       2             :      Written by James Clark (jjc@jclark.com)
       3             : 
       4             : This file is part of groff, the GNU roff typesetting system.
       5             : 
       6             : groff is free software; you can redistribute it and/or modify it under
       7             : the terms of the GNU General Public License as published by the Free
       8             : Software Foundation, either version 3 of the License, or
       9             : (at your option) any later version.
      10             : 
      11             : groff is distributed in the hope that it will be useful, but WITHOUT ANY
      12             : WARRANTY; without even the implied warranty of MERCHANTABILITY or
      13             : FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
      14             : for more details.
      15             : 
      16             : You should have received a copy of the GNU General Public License
      17             : along with this program.  If not, see <http://www.gnu.org/licenses/>. */
      18             : 
      19             : #ifdef HAVE_CONFIG_H
      20             : #include <config.h>
      21             : #endif
      22             : 
      23             : #include <stdlib.h>
      24             : 
      25             : #include "device.h"
      26             : #include "defs.h"
      27             : 
      28             : const char *device = DEFAULT_DEVICE;
      29             : 
      30             : struct device_init {
      31             :   device_init();
      32             : } _device_init;
      33             : 
      34        2934 : device_init::device_init()
      35             : {
      36        2934 :   char *tem = getenv("GROFF_TYPESETTER");
      37        2934 :   if (tem && tem[0])
      38           0 :     device = tem;
      39        2934 : }
      40             : 
      41             : // Local Variables:
      42             : // fill-column: 72
      43             : // mode: C++
      44             : // End:
      45             : // vim: set cindent noexpandtab shiftwidth=2 textwidth=72:

Generated by: LCOV version 1.14