From 3e3d8d6c13e6b4207a97aee117236b8ca70b9fbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Fri, 26 Aug 2022 09:10:38 +0200 Subject: Use CMake. I don't love it, but it makes it possible to support Visual Studio in addition to MinGW GCC. --- showtodo | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 showtodo (limited to 'showtodo') diff --git a/showtodo b/showtodo deleted file mode 100644 index 475e492..0000000 --- a/showtodo +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env perl - -use strict; -use warnings; - -# Note that this script only supports /* C-style */ comments. - -while (my $f = glob("c/*.*")) { - open my $fh, "<", $f; - my $line; - while (<$fh>) { - $line++; - next if not m{TODO:}; # Skip fast. - - next if not m{^\s*/?\*.*\s(TODO:.*)\s*(\*/)?}; - print "$f:$line: $1\n"; - next if $2; - - # Continue text if comment is not finished. - my $pad = " " x length("$f:$line: "); - while (<$fh>) { - (my $text = $_) =~ s{^\s*\*?\s*|\s*\*/}{}g; - print "$pad$text"; - last if m{\*/}; - } - } -} -- cgit v1.2.3