Semantic Patching (was Re: Current osmo-pcu patch set)

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/osmocom-net-gprs@lists.osmocom.org/.

Harald Welte laforge at gnumonks.org
Sat Sep 23 04:47:45 UTC 2017


Hi Max,

On Thu, Sep 21, 2017 at 01:14:39PM +0200, Max wrote:
> > I think int->bool and 1->true adds little value for an application but if
> > it is important then please do it by semantic patching so they can be easily
> > reviewed.
> 
> Could you please point me to an example of such patch in one of the Osmocom projects?

http://cgit.osmocom.org/osmo-trx/commit/?id=e210f1a864b0752f5baeb14de8ddcfc7320007a4

> Would be nice to have it as a guideline/blueprint of how it should be done. Also, do
> we have a wiki page which explains it?

http://coccinelle.lip6.fr/sp.php - no sure if we want to replicate that in the osmocom wiki.

-- 
- Harald Welte <laforge at gnumonks.org>           http://laforge.gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
                                                  (ETSI EN 300 175-7 Ch. A6)



More information about the osmocom-net-gprs mailing list