2 * (c) Oleg Puchinin 2006
3 * graycardinalster@gmail.com
17 extern "C" DArray
* plugin_init (struct env_t
*env
);
19 void find_one_ext (char * ext
)
21 sblib_find ("./", ext
, "./cfiles");
24 char cfiles_opt (DArray
* d_opts
, int * pos
)
28 if (! d_opts
|| ! pos
)
31 S
= d_opts
->get (*pos
);
32 if (EQ (S
, "--cfiles")) {
35 find_one_ext ("*.cpp");
36 find_one_ext ("*.cc");
37 find_one_ext ("*.cxx");
46 printf ("C/C++ files.\n");
47 printf ("Version: 1.0\n");
48 printf ("options: --cfiles\n");
51 DArray
* plugin_init (struct env_t
*env
)
54 struct mod_feature
* pm
;
58 pm
= CNEW (mod_feature
, 1);
59 bzero (pm
, sizeof (mod_feature
));
60 pm
->mod
.Type
= TYPE_FEATURE
;
61 pm
->mod
.Version
= strdup ("1.0");
62 pm
->mod
.info
= cfiles_info
;
65 Ret
->add (LPCHAR (pm
));