62 Commits

Author SHA1 Message Date
Eric S. Raymond
96a1f8c597 Reveal the candidates when macroscope has a name collision. 2007-04-29 12:29:21 +00:00
Eric S. Raymond
c64898235a New macroscope visibility rules are now working for resource files. 2007-04-29 11:15:05 +00:00
Eric S. Raymond
00fd700a48 Minor refactoring step. 2007-04-29 04:25:44 +00:00
Eric S. Raymond
685965c5f1 Move macroscope's visibility rules for files and resources...
...much closer to the WML interpreters.  Macro definitions are now
visible only in other files under the same directory they were found
in. Resource files have to be done next.
2007-04-29 03:00:45 +00:00
Eric S. Raymond
bb4c74ec1c Refactored macroscope to use iterators.
This will enable better visibility checking.
2007-04-28 23:25:00 +00:00
Eric S. Raymond
a3dc1b12db Cope with unbalanced #undef statements. 2007-04-28 11:37:03 +00:00
Eric S. Raymond
d1ba962b74 Macroscope now takes multiple directory arguments. 2007-04-28 05:06:08 +00:00
Eric S. Raymond
234ddfe2d9 Macroscope can now handle multiple definitions of macros gracefully,
as long as all but one is local (e.g. scope is terminated by an #undef)
2007-04-27 21:57:30 +00:00
Eric S. Raymond
2244511853 Fix the code for extracting the macro reference. 2007-04-27 14:22:55 +00:00
Eric S. Raymond
69e98dc8ca Move report header before parsing...
...so messages to stderr happen in the right order.
2007-04-27 11:01:38 +00:00
Eric S. Raymond
5f3b1fd333 Avoid an odd glitch that causes some false messages abot duplicates. 2007-04-27 04:43:09 +00:00
Eric S. Raymond
2add57a040 Add some documentation. 2007-04-26 21:28:02 +00:00
Eric S. Raymond
b9c08ea5d0 Warn of duplicated reference names. 2007-04-26 19:14:46 +00:00
Eric S. Raymond
ecebe4f1cf More incremental improvements. More UMC resource conversions. 2007-04-26 13:46:09 +00:00
Eric S. Raymond
07fd01f3cd More incremental improvements to macroscope and upconvert. 2007-04-26 08:55:47 +00:00
Eric S. Raymond
4270406a95 Help the duplicate-checking in macroscope cope with some wacky UMC. 2007-04-26 05:16:10 +00:00
Eric S. Raymond
cca726bd96 Give macroscope the ability to detect duplicate resource files. 2007-04-26 03:41:11 +00:00
Eric S. Raymond
4ef2a83572 Don't issue a warning om duplicated but identical maacro definitions.
-w 1 can be used to force warning on duplicates.
2007-04-26 02:47:20 +00:00
Eric S. Raymond
0031d37b42 Macroscope needs to be able to see filenames with leading dots. 2007-04-26 01:38:11 +00:00
Eric S. Raymond
bf41f5e59c Small cleanup change. 2007-04-25 14:34:13 +00:00
Eric S. Raymond
b1a6452c62 Working on resolving as many UMC references as possible. 2007-04-25 13:33:53 +00:00
Eric S. Raymond
a67d072c85 Incremenrtal improvements for macroscope and upconvert. 2007-04-25 11:37:55 +00:00
Eric S. Raymond
a35307ddfe Ignore backup files in macroscope and upconvert. 2007-04-25 10:31:16 +00:00
Eric S. Raymond
364e9da699 OK, automatic documentation extraction from macros is fully working. 2007-04-17 03:31:37 +00:00
Eric S. Raymond
2848838cf5 Third step in automated documentation extraction for macros.
We're making web pages that pass XHTML validation now; 
the rest of the work is cleanup and polishing.
2007-04-17 02:34:51 +00:00
Eric S. Raymond
506b7c92eb Second stage of automatic documentation extraction for utility macros. 2007-04-16 16:43:20 +00:00
Eric S. Raymond
7a7457d7dd Added --listfiles option. 2007-04-14 17:10:13 +00:00
Eric S. Raymond
4fda35480f Optimization step. 2007-04-14 16:42:46 +00:00
Eric S. Raymond
4915c221ae First xut at reference-checking from a definitions file. 2007-04-14 16:07:34 +00:00
Eric S. Raymond
f1ff10acab Added the capability to make definition lists. 2007-04-14 15:49:43 +00:00
Eric S. Raymond
0f9a28b24d Note the existence of implicit references through attack=. 2007-04-12 16:59:30 +00:00
Eric S. Raymond
f28009a000 Fix two minor bugs turned up by running macroscope on UMC. 2007-04-12 16:38:43 +00:00
Eric S. Raymond
848412a7f7 Cleanup. Catch bell.wav...
...up to the rest of the UI sound files, and simplify a macroscope
reporting format.
2007-04-11 15:03:46 +00:00
Eric S. Raymond
04c3ea7103 Added an --exclude option to supress looking at a subset of files. 2007-04-11 10:31:38 +00:00
Eric S. Raymond
c4b19239fd Make macroscope able to ignore apparently unreferenced terrain files. 2007-04-11 09:52:20 +00:00
Eric S. Raymond
c210423fdf Refactoring step. 2007-04-11 08:28:37 +00:00
Eric S. Raymond
4a475cb695 Fix stupid error in cross-referencing image files from subdirectories. 2007-04-11 03:40:55 +00:00
Eric S. Raymond
cede36acc3 Typo fix. 2007-04-10 22:55:33 +00:00
Eric S. Raymond
528b7b1333 Better documentation of macroscope. 2007-04-10 22:54:10 +00:00
Eric S. Raymond
4ef45d7482 Change report format so Emacs compilation mode can be used...
...to step through unresolved symbols.
2007-04-10 05:25:19 +00:00
Eric S. Raymond
83b8c614e9 Fix 7 of approximately 90 unresolved-image references.
Some have FIXME comments that should be gone over by an art developer.

(Found by macroscope.)
2007-04-09 08:33:17 +00:00
Eric S. Raymond
c23559c3ab macroscope now handles wildcarded resource-file references. 2007-04-09 04:05:47 +00:00
Eric S. Raymond
b8165f2f9e Macroscope refactoring step. 2007-04-09 02:33:44 +00:00
Eric S. Raymond
531d865801 Macroscope's incidence of false reports of dangling references...
...for images is now low enough that information on real problems can
be extracted from the clutter.
2007-04-08 23:36:54 +00:00
Eric S. Raymond
36a962e8c8 Slightly more clever version of logic for cross-checking sound and music files. 2007-04-08 10:30:28 +00:00
Eric S. Raymond
3d26c70190 Sound crosschecks are reallly working now. 2007-04-08 09:11:02 +00:00
Eric S. Raymond
9cacb77a96 Resource validation is buggy.
Leave a temporary version that does macros only in the repo.
2007-04-08 04:14:28 +00:00
Eric S. Raymond
227c8f4d19 macroscope can now check image and sound resource reference consistency.
Some weird macros can confuse it, though.
2007-04-08 03:43:18 +00:00
Eric S. Raymond
4768190f4e A half-step towards consistency-checking resource references. 2007-04-08 03:09:50 +00:00
Eric S. Raymond
2af1b8eb19 Improve documentation, speed up processing in macroscope. 2007-04-07 23:09:56 +00:00