2 * (c) Oleg Puchinin 2006
3 * graycardinalster@gmail.com
7 #include <gclib/gclib.h>
13 extern "C" DArray
* plugin_init (struct env_t
*env
);
15 char cfiles_opt (DArray
* d_opts
, int * pos
)
20 if (! d_opts
|| ! pos
)
23 S
= d_opts
->get (*pos
);
24 if (EQ (S
, "--cfiles") ||
28 sprintf (m_buf
, "mv \"%s\" ./cfiles", ENV
->tmp_files
);
38 printf ("C/C++ files.\n");
39 printf ("Version: 1.0\n");
40 printf ("options: --cfiles\n");
43 DArray
* plugin_init (struct env_t
*env
)
46 struct mod_feature
* pm
;
50 pm
= CNEW (mod_feature
, 1);
51 memset (pm
, 0, sizeof (mod_feature
));
52 pm
->mod
.Type
= TYPE_FEATURE
;
53 pm
->mod
.Version
= strdup ("1.0");
54 pm
->mod
.info
= cfiles_info
;
57 Ret
->add (LPCHAR (pm
));