From: Michael K. <ki...@cs...> - 2003-02-14 17:06:29
|
This code underwent some changes since I first wrote it, but the reason I think was that tilde_expand_filename is only one of the cases considered in expand_filename (where you go to the password file, etc.) If you see how these can be simplified -- go ahead. The other question probably is why should tilde_expand_filename be exposed to Prolog as a builtin. That I don't know. It is used twice in the loader, but I am not sure why expand_filename is not used instead. --michael > Hi, > > I have one question: what is the rationale for having these two very > similar (in functionality) functions in pathname_xsb.c: > > char *expand_filename(char *filename); and > char *tilde_expand_filename(char *filename) ? > > It seems that the only difference would be that one expands tildes, > whereas the other doesn't. But they have completely different > implementations, with subtle differences that are biting me, now. > > Any reason I shouldn't unify both, expanding tildes on systems where > that makes sense, automatically? > > Thanks, > -Luis > > > ------------------------------------------------------- > This SF.NET email is sponsored by: FREE SSL Guide from Thawte > are you planning your Web Server Security? Click here to get a FREE > Thawte SSL guide and find the answers to all your SSL security issues. > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en > _______________________________________________ > Xsb-development mailing list > Xsb...@li... > https://lists.sourceforge.net/lists/listinfo/xsb-development > |