"Fossies" - the Fresh Open Source Software Archive

Member "cook-2.34/c_incl/sniff.h" (25 Sep 2010, 2140 Bytes) of package /linux/misc/old/cook-2.34.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ 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.

    1 /*
    2  *      cook - file construction tool
    3  *      Copyright (C) 1993-1995, 1997-1999, 2001, 2002, 2006-2008 Peter Miller
    4  *
    5  *      This program is free software; you can redistribute it and/or modify
    6  *      it under the terms of the GNU General Public License as published by
    7  *      the Free Software Foundation; either version 3 of the License, or
    8  *      (at your option) any later version.
    9  *
   10  *      This program is distributed in the hope that it will be useful,
   11  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
   12  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   13  *      GNU General Public License for more details.
   14  *
   15  *      You should have received a copy of the GNU General Public License
   16  *      along with this program. If not, see
   17  *      <http://www.gnu.org/licenses/>.
   18  */
   19 
   20 #ifndef C_INCL_SNIFF_H
   21 #define C_INCL_SNIFF_H
   22 
   23 #include <common/main.h>
   24 
   25 enum
   26 {
   27         absent_ignore,
   28         absent_mention,
   29         absent_error
   30 };
   31 
   32 typedef struct option_ty option_ty;
   33 struct option_ty
   34 {
   35         int     o_verbose;
   36         int     o_absent_local;
   37         int     o_absent_system;
   38         int     o_absent_program;
   39         int     no_src_rel_inc;
   40         int     absolute;
   41         int     recursive;
   42         int     stripdot;
   43         int     escape_newline;
   44         int     quote_filenames;
   45         char    *output;
   46 };
   47 extern option_ty option;
   48 
   49 struct input_ty;
   50 struct string_list_ty;
   51 
   52 typedef struct sniff_ty sniff_ty;
   53 struct sniff_ty
   54 {
   55         int (*scan)(struct input_ty *, struct string_list_ty *,
   56                 struct string_list_ty *);
   57         void (*prepare)(void);
   58 };
   59 
   60 void sniff(char *);
   61 void sniff_include(char *);
   62 void sniff_include_cut(void);
   63 long sniff_include_count(void);
   64 void sniff_use_this(char *);
   65 void sniff_use_this_cut(void);
   66 long sniff_use_this_count(void);
   67 void sniff_prepare(void);
   68 void sniff_language(sniff_ty *);
   69 
   70 void sniff_remove_leading_path(char *);
   71 void sniff_substitute_leading_path(char *, char *);
   72 
   73 int absolute_filename_test(char *);
   74 
   75 void sniff_prefix_set(char *);
   76 void sniff_suffix_set(char *);
   77 void sniff_exclude(char *);
   78 
   79 #endif /* C_INCL_SNIFF_H */