openbsd-ports/devel/coccigrep/distinfo
sthen 6195f2b398 import ports/devel/coccigrep, ok jasper@
coccigrep is a semantic grep for the C language based on coccinelle.
It can be used to find where a given structure is used in code files.
coccigrep depends on the spatch program which comes with coccinelle.

quick contrived example to find lines referencing m_len of a struct
mbuf, regardless of actual variable name:

$ coccigrep -t "struct mbuf" -a m_len /sys/netinet/ip_*.c
2011-09-15 20:20:06 +00:00

6 lines
287 B
Plaintext

MD5 (coccigrep-1.0.tar.gz) = mO56yj2ZKWULgydkmyKVlA==
RMD160 (coccigrep-1.0.tar.gz) = /oCvusvGknLTBULdp2mwknOAVBA=
SHA1 (coccigrep-1.0.tar.gz) = RU4pK2pOVPyoQ/kz3/jK2wRZCUE=
SHA256 (coccigrep-1.0.tar.gz) = e7BSNuZIq3/jUFEkVahu5JehaOq1GOQSGwyeBgK7aEE=
SIZE (coccigrep-1.0.tar.gz) = 28546