optimize jencode tool

This commit is contained in:
郑树新 2019-07-26 18:30:38 +08:00
parent 649b94dc41
commit a62898e157
4 changed files with 11 additions and 5 deletions

View File

@ -54,7 +54,9 @@ void CAddBOM::ScanAdd(void)
const char* pFile;
while ((pFile = scan.next_file(true)) != NULL) {
acl::string path(pFile);
if (path.end_with(".c") || path.end_with(".h") ||
if (path.end_with("resource.h", false)) {
logger(">>skip file: %s", pFile);
} else if (path.end_with(".c") || path.end_with(".h") ||
path.end_with(".cpp") || path.end_with(".cxx") ||
path.end_with(".hpp") || path.end_with(".hxx") ||
path.end_with(".java") || path.end_with(".txt") ||

View File

@ -55,7 +55,9 @@ void CDelBOM::ScanDel(void)
const char* pFile;
while ((pFile = scan.next_file(true)) != NULL) {
acl::string path(pFile);
if (path.end_with(".c") || path.end_with(".h") ||
if (path.end_with("resource.h", false)) {
logger(">>skip file: %s", pFile);
} else if (path.end_with(".c") || path.end_with(".h") ||
path.end_with(".cpp") || path.end_with(".cxx") ||
path.end_with(".hpp") || path.end_with(".hxx") ||
path.end_with(".java") || path.end_with(".txt") ||

View File

@ -49,8 +49,9 @@ bool CGb2Utf8::TransformPath(const char *path_from, const char *path_to)
const char* pFile;
while ((pFile = scan.next_file(true)) != NULL) {
acl::string path(pFile);
if (path.end_with(".c") || path.end_with(".h") ||
if (path.end_with("resource.h", false)) {
logger(">>skip file: %s", pFile);
} else if (path.end_with(".c") || path.end_with(".h") ||
path.end_with(".cpp") || path.end_with(".cxx") ||
path.end_with(".hpp") || path.end_with(".hxx") ||
path.end_with(".java") || path.end_with(".txt") ||

View File

@ -362,7 +362,8 @@ int main(int argc, char* argv[])
acl::acl_cpp_init();
acl::log::stdout_open(true);
if (!libssl_path.empty() && !access(libssl_path.c_str(), R_OK)) {
if (!libssl_path.empty()
&& !access(libssl_path.c_str(), R_OK)) {
// 设置 libpolarssl.so 库全路径
acl::polarssl_conf::set_libpath(libssl_path);