RTEMS Tools | misc/bin2c/rtems-bin2c.c: Add feature to include license header in generated C files (!58)

Harinder Singh Dhanoa (@hsd1807) gitlab at rtems.org
Sat Mar 22 08:19:21 UTC 2025




Harinder Singh Dhanoa commented on a discussion on misc/bin2c/rtems-bin2c.c: https://gitlab.rtems.org/rtems/tools/rtems-tools/-/merge_requests/58#note_121605

 >        exit(1);
 >      }
 >    }
 > +  
 > +  /* Read license header if specified */
 > +  char *license_header = NULL;
 > +  if (licensefile) {
 > +    license_header = read_license_file(licensefile);
 > +  } else if (usebsdlicense) {
 > +    license_header = strdup(

okay, I will revert it to `strdup`. I did that to ensure the `license_header` can be safely freed without additional conditional checks.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/tools/rtems-tools/-/merge_requests/58#note_121605
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250322/ae1f0633/attachment.htm>


More information about the bugs mailing list