Firstly, strupper isn't a C function, and I can't find anything about it in my manpages.
Secondly, passing a filename to a program - the OS shouldn't interpret program arguments, so if you run "tcc foo.c", even if foo.c is actually called FOO.C, tcc should still recognise it as a C file, try to open it, and *then* the OS will match "foo.c" with the upper-case "FOO.C". I don't see this as a problem (if anything, it's a problem with case-preserving, case-insensitive file systems ;) but if you want to push a fix, the mob branch is open to all. On Wednesday 08 April 2009 15:46:32 lostgallifreyan wrote: > Joshua Phillips <jp.sittingd...@gmail.com> wrote: > (08/04/2009 14:51) > > >strcmp definitely does not use regular expressions! > > Oh? Never mind, if I remember right there can be strupper() on the incoming > sample of the file extension. Same thing would solve the .def extension > case. > > >With regards to file.c and file.C, although the Windows filesystem isn't > > case sensitive, the build system (make, or scons, or just running the > > command manually) passes the filenames to the compiler without losing > > case. > > It's already lost, if that DOS 8.3 path convention has been applied to it > by the OS. That's why TCC sees a C when the file is a c. I can fix this in > my copy, soon. I advocate that fix on a general level though. I doubt that > many people really favour C as a C++ file when there are at least FIVE > other ways to specify such files with little risk of ambiguity and > typographical error. Comparing what GCC's man page says for C, C++ and > Fortran, the naming conventions are a mess anyway, so I think this is a > step toward being clearer. > > > > _______________________________________________ > Tinycc-devel mailing list > Tinycc-devel@nongnu.org > http://lists.nongnu.org/mailman/listinfo/tinycc-devel
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Tinycc-devel mailing list Tinycc-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/tinycc-devel