(root)/
man-db-2.12.0/
lib/
debug.h
       1  /*
       2   * debug.h: interface to debugging messages
       3   *
       4   * Copyright (C) 2007-2022 Colin Watson.
       5   *
       6   * This file is part of man-db.
       7   *
       8   * man-db is free software; you can redistribute it and/or modify it
       9   * under the terms of the GNU General Public License as published by
      10   * the Free Software Foundation; either version 2 of the License, or
      11   * (at your option) any later version.
      12   *
      13   * man-db is distributed in the hope that it will be useful, but
      14   * WITHOUT ANY WARRANTY; without even the implied warranty of
      15   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      16   * GNU General Public License for more details.
      17   *
      18   * You should have received a copy of the GNU General Public License
      19   * along with man-db; if not, write to the Free Software Foundation,
      20   * Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
      21   */
      22  
      23  #include <stdbool.h>
      24  
      25  #include "attribute.h"
      26  
      27  extern bool debug_level;	/* shows whether -d issued */
      28  extern void init_debug (void);
      29  extern void debug (const char *message, ...)
      30  	ATTRIBUTE_FORMAT ((__printf__, 1, 2));
      31  extern void debug_error (const char *message, ...)
      32  	ATTRIBUTE_FORMAT ((__printf__, 1, 2));