logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

sen.awk (244B)


  1. BEGIN {
  2. print "enum {"
  3. print "SEN_printargs = 0,"
  4. }
  5. match($0, /SEN\([^)]+\)/) {
  6. name = substr($0, RSTART + 4, RLENGTH - 5)
  7. if (name != "printargs")
  8. print "SEN_" name "," | "sort -u"
  9. }
  10. END {
  11. if (close("sort -u"))
  12. exit 1
  13. print "};"
  14. }