4 * Copyright (C) 2006 Dan Carpenter.
6 * Licensed under the Open Software License version 1.1
13 typedef void (*reg_func
) (int id
);
14 void register_derefed_params(int id
);
15 void register_null_deref(int id
);
16 void register_smatch_extra(int id
);
17 void register_smatch_ignore(int id
);
18 void register_overflow(int id
);
19 void register_locking(int id
);
20 void register_memory(int id
);
21 /* <- your test goes here */
22 /* void register_template(int id); */
24 const reg_func reg_funcs
[] = {
25 ®ister_smatch_extra
,
26 ®ister_smatch_ignore
,
31 /* <- your test goes here */
32 /* ®ister_template, */
36 int main(int argc
, char **argv
)
41 /* The script IDs start at 1.
42 0 is used for internal stuff. */
43 for(i
= 0; (func
= reg_funcs
[i
]); i
++){
47 if (argc
>= 2 && !strcmp(argv
[1], "--debug")) {