Print this page
11972 resync smatch

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/smatch/src/parse.h
          +++ new/usr/src/tools/smatch/src/parse.h
↓ open down ↓ 127 lines elided ↑ open up ↑
 128  128  
 129  129  extern int show_statement(struct statement *);
 130  130  extern void show_statement_list(struct statement_list *, const char *);
 131  131  extern int show_expression(struct expression *);
 132  132  
 133  133  typedef void (*validate_decl_t)(struct symbol *decl);
 134  134  extern struct token *external_declaration(struct token *, struct symbol_list **, validate_decl_t);
 135  135  
 136  136  extern struct symbol *ctype_integer(int size, int want_unsigned);
 137  137  
 138      -extern void copy_statement(struct statement *src, struct statement *dst);
 139  138  extern int inline_function(struct expression *expr, struct symbol *sym);
 140  139  extern void uninline(struct symbol *sym);
 141  140  extern void init_parser(int);
 142  141  
 143  142  static inline void stmt_set_parent_stmt(struct statement *stmt, struct statement *parent)
 144  143  {
 145  144          if (!stmt)
 146  145                  return;
 147  146          stmt->parent = parent;
 148  147  }
 149  148  
 150  149  static inline struct statement *stmt_get_parent_stmt(struct statement *stmt)
 151  150  {
 152  151          return stmt->parent;
 153  152  }
 154  153  
 155  154  #endif /* PARSE_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX