xref: /minix3/external/bsd/file/dist/TODO (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
184d9c625SLionel SambucMost TODOs live in the TODO section of doc/file.man (i.e. file(1)).
284d9c625SLionel SambucThey are more visible there, so please add any further TODOs to that
384d9c625SLionel Sambucfile, not here. More speculative material can live here.
4ef01931fSBen Gras
5835f6802SDirk Vogt(This change was made when Reuben Thomas noticed that all the bugs
6835f6802SDirk Vogtlisted in the BUGS section of the man page had been fixed!)
784d9c625SLionel Sambuc
884d9c625SLionel Sambuc---
984d9c625SLionel Sambuc
1084d9c625SLionel SambucIt would be nice to simplify file considerably. For example,
1184d9c625SLionel Sambucreimplement the apprentice and non-pattern magic methods in Python,
12*0a6a1f1dSLionel Sambucand compile the magic patterns to a giant regex (or something similar;
13*0a6a1f1dSLionel Sambucmaybe using Ragel (http://www.complang.org/ragel/)) so that only a
14*0a6a1f1dSLionel Sambucsmall amount of C is needed (because fast execution is typically only
15*0a6a1f1dSLionel Sambucrequired for soft magic, not the more detailed information given by
16*0a6a1f1dSLionel Sambuchard-wired routines). In this regard, note that hplip, which is
17*0a6a1f1dSLionel SambucBSD-licensed, has a magic reimplementation in Python.
18*0a6a1f1dSLionel Sambuc
19*0a6a1f1dSLionel SambucRead the kerberos magic entry for more ideas.
20