MCPcopy Create free account
hub / github.com/apache/nuttx / main

Function main

tools/mkdeps.c:993–1020  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

991 ****************************************************************************/
992
993int main(int argc, char **argv, char **envp)
994{
995 char *lasts;
996 char *files;
997 char *file;
998
999 /* Parse command line parameters */
1000
1001 parse_args(argc, argv);
1002
1003 /* Then generate dependencies for each path on the command line. NOTE
1004 * strtok_r will clobber the files list. But that is okay because we are
1005 * only going to traverse it once.
1006 */
1007
1008 files = g_files;
1009 while ((file = strtok_r(files, " ", &lasts)) != NULL)
1010 {
1011 /* Check if we need to do path conversions for a Windows-natvive tool
1012 * being using in a POSIX/Cygwin environment.
1013 */
1014
1015 do_dependency(file);
1016 files = NULL;
1017 }
1018
1019 return EXIT_SUCCESS;
1020}

Callers

nothing calls this directly

Calls 3

strtok_rFunction · 0.85
do_dependencyFunction · 0.85
parse_argsFunction · 0.70

Tested by

no test coverage detected