/* *Important:Thebelowgeneratedsource_foo.oanddeps_foo.ovariable *assignmentsareparsednotonlybymake,butalsobytherathersimple *parserinscripts/mod/sumversion.c.
*/ staticvoid parse_dep_file(void *map, size_t len)
{ char *m = map; char *end = m + len; char *p; char s[PATH_MAX]; int is_target, has_target = 0; int saw_any_target = 0; int is_first_dep = 0;
while (m < end) { /* Skip any "white space" */ while (m < end && (*m == ' ' || *m == '\\' || *m == '\n'))
m++; /* Find next "white space" */
p = m; while (p < end && *p != ' ' && *p != '\\' && *p != '\n')
p++; /* Is the token we found a target name? */
is_target = (*(p-1) == ':'); /* Don't write any target names into the dependency file */ if (is_target) { /* The /next/ file is the first dependency */
is_first_dep = 1;
has_target = 1;
} elseif (has_target) { /* Save this token/filename */
memcpy(s, m, p-m);
s[p - m] = 0;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.