commit bd4b153ae4e3d8a9e99de300b22a7ca059db49de from: Benjamin Stürz date: Thu Nov 21 09:33:35 2024 UTC make: use C90 comments commit - f629615182e2c7fdb39ef1cb453a80a034eb0f37 commit + bd4b153ae4e3d8a9e99de300b22a7ca059db49de blob - b36e5d8963bad822dcc39dc2c6accd1f1f4dbf23 blob + 4ba03156e9d159ef38c285b46355e56040b76423 --- make/make.c +++ make/make.c @@ -663,7 +663,7 @@ char *s; return 0; } - // TODO: handle empty fields + /* TODO: handle empty fields */ p = trim (p); if (strcmp (p, "DIR") == 0) { sub->type = SC_DIR; @@ -892,7 +892,7 @@ char *path; } m->lazy = 1; } else if (t[-1] == ':') { - // handle both `:=` and `::=` + /* handle both `:=` and `::=` */ t[t[-2] == ':' ? -2 : -1] = '\0'; m->lazy = 0; m->value = strdup (trim (expand (sc, trim (t + 1), NULL))); @@ -1509,7 +1509,7 @@ struct scope *sc; p += 2; /* skip ./ */ } - // TODO: this should be sorted from top to down + /* TODO: this should be sorted from top to down */ for (f = sc->dir->files; f != NULL; f = f->next) { if (f->help == NULL) continue;