# HG changeset patch # User Matti Hamalainen # Date 1641047117 -7200 # Node ID 1049033c6bbde3f939fc842ccf7dbb174219b694 # Parent c92b144a44cd545a471652a1faeca888f1717881 Backwards-incompatible change in UX: renamed the 'Copyright' field to 'Released', as it should be per PSID convention. diff -r c92b144a44cd -r 1049033c6bbd sidinfo.c --- a/sidinfo.c Sat Jan 01 16:21:53 2022 +0200 +++ b/sidinfo.c Sat Jan 01 16:25:17 2022 +0200 @@ -87,7 +87,7 @@ { "Name" , NULL , OTYPE_STR , NULL }, { "Author" , NULL , OTYPE_STR , NULL }, - { "Copyright" , NULL , OTYPE_STR , NULL }, + { "Released" , NULL , OTYPE_STR , NULL }, { "Hash" , NULL , OTYPE_STR , NULL }, { "Songlengths" , "Song lengths" , OTYPE_OTHER , NULL }, @@ -171,14 +171,14 @@ printf( "\n" - "Example: %s -x -p -f hash,copyright somesidfile.sid\n" + "Example: %s -x -p -f hash,released somesidfile.sid\n" "\n" "Format strings for '-F' option are composed of @fields@ that get expanded\n" "to their value. Also, escape sequences \\r, \\n and \\t can be used:\n" - " -F \"hash=@hash@\\ncopy=@copyright@\\n\"\n" + " -F \"hash=@hash@\\ncopy=@released@\\n\"\n" "\n" "The -F fields can be further formatted via printf-style specifiers:\n" - " -F \"@copyright:'%%-30s'@\"\n" + " -F \"@released:'%%-30s'@\"\n" "\n" "NOTE: One line output (-l ) also sets escape characters\n" "(option -e ), if escape characters have NOT been separately set.\n" @@ -890,7 +890,7 @@ case 20: PRS(psid->sidName, TRUE); break; case 21: PRS(psid->sidAuthor, TRUE); break; - case 22: PRS(psid->sidCopyright, TRUE); break; + case 22: PRS(psid->sidReleased, TRUE); break; case 23: { diff -r c92b144a44cd -r 1049033c6bbd sidlib.c --- a/sidlib.c Sat Jan 01 16:21:53 2022 +0200 +++ b/sidlib.c Sat Jan 01 16:25:17 2022 +0200 @@ -158,7 +158,7 @@ if (!sidlib_fread_str(ctx, chconv, &psid->sidName, SIDLIB_PSID_STR_LEN) || !sidlib_fread_str(ctx, chconv, &psid->sidAuthor, SIDLIB_PSID_STR_LEN) || - !sidlib_fread_str(ctx, chconv, &psid->sidCopyright, SIDLIB_PSID_STR_LEN)) + !sidlib_fread_str(ctx, chconv, &psid->sidReleased, SIDLIB_PSID_STR_LEN)) { ret = th_io_error(ctx, ctx->status, "Error reading SID file header data."); @@ -283,7 +283,7 @@ { th_free(psid->sidName); th_free(psid->sidAuthor); - th_free(psid->sidCopyright); + th_free(psid->sidReleased); if (psid->allocated) th_free(psid); diff -r c92b144a44cd -r 1049033c6bbd sidlib.h --- a/sidlib.h Sat Jan 01 16:21:53 2022 +0200 +++ b/sidlib.h Sat Jan 01 16:25:17 2022 +0200 @@ -132,7 +132,7 @@ char *sidName; // Descriptive text-fields, ASCIIZ char *sidAuthor; // Converted through SIDLibChConvCtx if conversion is used - char *sidCopyright; + char *sidReleased; // PSIDv2+ data uint16_t flags; // Flags