Print this page
11462 enable smatch by default

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/smatch/src/smatch.h
          +++ new/usr/src/tools/smatch/src/smatch.h
↓ open down ↓ 5 lines elided ↑ open up ↑
   6    6   * as published by the Free Software Foundation; either version 2
   7    7   * of the License, or (at your option) any later version.
   8    8   *
   9    9   * This program is distributed in the hope that it will be useful,
  10   10   * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11   11   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12   12   * GNU General Public License for more details.
  13   13   *
  14   14   * You should have received a copy of the GNU General Public License
  15   15   * along with this program; if not, see http://www.gnu.org/copyleft/gpl.txt
       16 + *
       17 + * Copyright 2019 Joyent, Inc.
  16   18   */
  17   19  
  18   20  #ifndef         SMATCH_H_
  19   21  # define        SMATCH_H_
  20   22  
  21   23  #include <stdio.h>
  22   24  #include <string.h>
  23   25  #include <limits.h>
  24   26  #include <sys/time.h>
  25   27  #include <sqlite3.h>
↓ open down ↓ 167 lines elided ↑ open up ↑
 193  195  const char *get_filename(void);
 194  196  const char *get_base_file(void);
 195  197  char *get_function(void);
 196  198  int get_lineno(void);
 197  199  extern int final_pass;
 198  200  extern struct symbol *cur_func_sym;
 199  201  extern int option_debug;
 200  202  extern int local_debug;
 201  203  extern int option_info;
 202  204  extern int option_spammy;
      205 +extern int option_timeout;
 203  206  extern char *trace_variable;
 204  207  extern struct stree *global_states;
 205  208  int is_skipped_function(void);
 206  209  int is_silenced_function(void);
 207  210  
 208  211  /* smatch_impossible.c */
 209  212  int is_impossible_path(void);
 210  213  void set_path_impossible(void);
 211  214  
 212  215  extern FILE *sm_outfd;
↓ open down ↓ 1081 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX