gcontini
2020-05-03 8d7d51f6a300d132110e18e4b884b10b9fbe3aa6
api rename project_name->feature_name
3个文件已修改
6 ■■■■ 已修改文件
extern/license-generator @ c19bf1 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/inspector/inspector.cpp 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/library/licensecc.cpp 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
extern/license-generator
@@ -1 +1 @@
Subproject commit 1b460c3bf32b849c5edeb4f8b9fc15c431996748
Subproject commit c19bf172e8f364b4ec17a3fc8155ce82b48830ba
src/inspector/inspector.cpp
@@ -69,7 +69,7 @@
    for (CSimpleIniA::Entry section : sections) {
        const string section_name(section.pItem, 15);
        if (section_name != LCC_PROJECT_NAME) {
            std::copy(section_name.begin(), section_name.end(), callerInformation.project_name);
            std::copy(section_name.begin(), section_name.end(), callerInformation.feature_name);
            LCC_EVENT_TYPE result = acquire_license(&callerInformation, &licLocation, &licenseInfo);
            if (result == LICENSE_OK) {
                cout << "project [" << section.pItem << "]: license OK" << endl;
src/library/licensecc.cpp
@@ -77,7 +77,7 @@
    string project;
    size_t str_size;
    if (callerInformation != nullptr &&
        (str_size = license::mstrnlen_s(callerInformation->feature_name, sizeof callerInformation->project_name)) > 0) {
        (str_size = license::mstrnlen_s(callerInformation->feature_name, sizeof callerInformation->feature_name)) > 0) {
        project = string(callerInformation->feature_name, str_size);
    } else {
        project = string(LCC_PROJECT_NAME);