in cress COPYCMD param search speed before w3seek does it

svn path=/trunk/; revision=16589
This commit is contained in:
Magnus Olsen 2005-07-15 18:31:42 +00:00
parent 8aa7fc3fb8
commit 6850597254

View file

@ -302,57 +302,49 @@ INT cmd_copy (LPTSTR cmd, LPTSTR param)
{ {
if (_tcsncicmp(_T("/A"),&evar[t],2)==0) if (_tcsncicmp(_T("/A"),&evar[t],2)==0)
{ {
evar[t]=_T(' '); dwFlags |=COPY_ASCII;
evar[t+1]=_T(' '); t++;
} }
else if (_tcsncicmp(_T("/B"),&evar[t],2)==0) else if (_tcsncicmp(_T("/B"),&evar[t],2)==0)
{ {
dwFlags |= COPY_BINARY; dwFlags |= COPY_BINARY;
evar[t]=_T(' '); t++;
evar[t+1]=_T(' ');
} }
else if (_tcsncicmp(_T("/D"),&evar[t],2)==0) else if (_tcsncicmp(_T("/D"),&evar[t],2)==0)
{ {
dwFlags |= COPY_DECRYPT; dwFlags |= COPY_DECRYPT;
evar[t]=_T(' '); t++;
evar[t+1]=_T(' ');
} }
else if (_tcsncicmp(_T("/V"),&evar[t],2)==0) else if (_tcsncicmp(_T("/V"),&evar[t],2)==0)
{ {
dwFlags |= COPY_VERIFY; dwFlags |= COPY_VERIFY;
evar[t]=_T(' '); t++;
evar[t+1]=_T(' ');
} }
else if (_tcsncicmp(_T("/N"),&evar[t],2)==0) else if (_tcsncicmp(_T("/N"),&evar[t],2)==0)
{ {
dwFlags |= COPY_SHORTNAME; dwFlags |= COPY_SHORTNAME;
evar[t]=_T(' '); t++;
evar[t+1]=_T(' ');
} }
else if (_tcsncicmp(_T("/Y"),&evar[t],2)==0) else if (_tcsncicmp(_T("/Y"),&evar[t],2)==0)
{ {
dwFlags |= COPY_NO_PROMPT; dwFlags |= COPY_NO_PROMPT;
evar[t]=_T(' '); t++;
evar[t+1]=_T(' ');
} }
else if (_tcsncicmp(_T("/-Y"),&evar[t],3)==0) else if (_tcsncicmp(_T("/-Y"),&evar[t],3)==0)
{ {
dwFlags |= COPY_PROMPT; dwFlags |= COPY_PROMPT;
evar[t]=_T(' '); t+=2;
evar[t+1]=_T(' ');
evar[t+2]=_T(' ');
} }
else if (_tcsncicmp(_T("/Z"),&evar[t],2)==0) else if (_tcsncicmp(_T("/Z"),&evar[t],2)==0)
{ {
dwFlags |= COPY_PROMPT; dwFlags |= COPY_PROMPT;
evar[t]=_T(' '); t++;
evar[t+1]=_T(' ');
} }
} }
} }