Changes between Initial Version and Version 1 of Developer/Coding/ThirdPartyCode


Ignore:
Timestamp:
04/09/16 21:03:53 (8 years ago)
Author:
Gedare Bloom
Comment:

New page.

Legend:

Unmodified
Added
Removed
Modified
  • Developer/Coding/ThirdPartyCode

    v1 v1  
     1= PAGE_TITLE =
     2
     3[[TOC(Developer/Coding/ThirdPartyCode , depth=2)]]
     4
     5
     6You should retain the original code's licensing and copyright
     7information. Be
     8careful with copyright and code ownership, these things matter. The
     9best approach is to provide an isolated patch that adds all of the
     10code from the 3rd party, and then layer on patches that
     11modify or make use of the 3rd party code. Attempt to minimize changes.
     12
     13When you have to change the
     143rd party code, it is best to provide a clear identification of the
     15change like this, omitting the comments:
     16
     17{{{
     18
     19/* unmodified code */
     20#if defined(__rtems__)
     21/* changes made */
     22#endif
     23/* unmodified code */
     24
     25}}}
     26
     27This approach helps to minimize code review, identify very clearly the
     28origin of source code, and eases maintenance in case of updating the
     293rd party code.