diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2005-01-02 23:49:58 -0500 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2005-01-02 23:49:58 -0500 |
commit | 1fc1d8afcb5b9947e2b9665514dbfd1e86c0bf3f (patch) | |
tree | a83fd699321c8545516d56abcda6c9718fd1f4fb /WWW/Library/Implementation/HTAAUtil.c | |
parent | bed9a2c79bfdde6e4ec89d9d02a5d6e88ae12f79 (diff) | |
download | lynx-snapshots-1fc1d8afcb5b9947e2b9665514dbfd1e86c0bf3f.tar.gz |
snapshot of project "lynx", label v2-8-6dev_10
Diffstat (limited to 'WWW/Library/Implementation/HTAAUtil.c')
-rw-r--r-- | WWW/Library/Implementation/HTAAUtil.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/WWW/Library/Implementation/HTAAUtil.c b/WWW/Library/Implementation/HTAAUtil.c index a5651d16..6270338a 100644 --- a/WWW/Library/Implementation/HTAAUtil.c +++ b/WWW/Library/Implementation/HTAAUtil.c @@ -205,7 +205,7 @@ BOOL HTAAMethod_inList(HTAAMethod method, HTList *list) * sometimes so hard...) * * ON ENTRY: - * template is a template string to match the file name + * ctemplate is a template string to match the file name * against, may contain a single wildcard * character * which matches zero or more * arbitrary characters. @@ -216,10 +216,10 @@ BOOL HTAAMethod_inList(HTAAMethod method, HTList *list) * returns YES, if filename matches the template. * NO, otherwise. */ -BOOL HTAA_templateMatch(const char *template, +BOOL HTAA_templateMatch(const char *ctemplate, const char *filename) { - const char *p = template; + const char *p = ctemplate; const char *q = filename; int m; @@ -266,10 +266,10 @@ BOOL HTAA_templateMatch(const char *template, * returns YES, if filename matches the template. * NO, otherwise. */ -BOOL HTAA_templateCaseMatch(const char *template, +BOOL HTAA_templateCaseMatch(const char *ctemplate, const char *filename) { - const char *p = template; + const char *p = ctemplate; const char *q = filename; int m; @@ -315,25 +315,25 @@ BOOL HTAA_templateCaseMatch(const char *template, */ char *HTAA_makeProtectionTemplate(const char *docname) { - char *template = NULL; + char *ctemplate = NULL; char *slash = NULL; if (docname) { - StrAllocCopy(template, docname); - slash = strrchr(template, '/'); + StrAllocCopy(ctemplate, docname); + slash = strrchr(ctemplate, '/'); if (slash) slash++; else - slash = template; + slash = ctemplate; *slash = '\0'; - StrAllocCat(template, "*"); + StrAllocCat(ctemplate, "*"); } else - StrAllocCopy(template, "*"); + StrAllocCopy(ctemplate, "*"); CTRACE((tfp, "make_template: made template `%s' for file `%s'\n", - template, docname)); + ctemplate, docname)); - return template; + return ctemplate; } /* |