2 * (c) Oleg Puchinin 2006
3 * graycardinalster@gmail.com
9 extern char * d_lpsz_operators
[]; // from nogui_indent.cpp
11 char * flist_iter (char * d_ptr
, char * d_name
, bool b_repair
)
18 d_operators
.push (d_lpsz_operators
);
21 ch
= t_op (&d_ptr
, &d_out
);
22 d_len
= strlen (d_out
);
27 if (d_operators
.snfind (d_out
) != -1)
30 if (what_is_this (d_out
, ch
) == GLOBAL_TYPE_FUNCTION
) {
40 // $ silent_bob --file
41 // Get functions list from file.
42 void flist_main (char * d_file
)
44 struct tt_state_t
* d_tt_state
;
48 if (access (d_file
, R_OK
) != F_OK
) {
49 printf ("/*** %s ***/\n", d_file
);
54 d_tt_state
= CNEW (tt_state_t
, 1);
55 d_tt_state
->d_file_name
= d_file
;
56 d_ptr
= THE_TT::do_tt_file (d_tt_state
);
58 d_ptr
= do_tt(d_tt_state
);
60 printf ("/*** %s ***/\n", d_file
);
62 d_ptr
= flist_iter (d_ptr
, NULL
, false);
66 printf ("%s{\n", d_ptr
);
67 d_ptr
+= strlen (d_ptr
);
72 THE_TT::free_tt_state (d_tt_state
);