Page MenuHomeFreeBSD

Bring in bit operation functions, ala gawk.
ClosedPublic

Authored by imp on Sep 13 2017, 8:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 3, 4:29 AM
Unknown Object (File)
Mar 10 2024, 8:37 PM
Unknown Object (File)
Mar 10 2024, 8:37 PM
Unknown Object (File)
Mar 10 2024, 8:37 PM
Unknown Object (File)
Mar 10 2024, 8:37 PM
Unknown Object (File)
Mar 10 2024, 8:37 PM
Unknown Object (File)
Mar 10 2024, 8:37 PM
Unknown Object (File)
Mar 7 2024, 9:33 PM
Subscribers

Details

Summary

These are from OpenBSD:

Extend awk with bitwise operations. This is an extension to the awk
spec and documented as such, but comes in handy from time to time.
The prototypes make it compatible with a similar GNU awk extension.

ok millert@, enthusiasm from deraadt@

Obtained From: OpenBSD awk.h 1.12, lex.c 1.10, run.c 1.29

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Sep 13 2017, 8:20 PM
jhb added a subscriber: jhb.

Thanks

pfg added a subscriber: pfg.

Minor tab/space issues but otherwise looks fine. Thanks!

contrib/one-true-awk/awk.h
129 ↗(On Diff #33039)

There should be TAB instead of space after the #define.

In D12361#256383, @pfg wrote:

Minor tab/space issues but otherwise looks fine. Thanks!

Thanks! Fixed. Won't re-upload unless there's other changes.

Minor tweaks: fix error messages and pendantic white space issues.

This revision now requires review to proceed.Sep 14 2017, 3:35 AM
imp marked an inline comment as done.Sep 14 2017, 3:38 AM

Implement the gawk aribtrary number args for and, or, and xor.

Looks like someone s/0/NULL in the context of a pointer,
so make it look the same.

OK. All the bugs I found are fixed, and the gawk extensions are now implemented more fully. I intend to commit this, unless I hear otherwise.

This revision is now accepted and ready to land.Sep 14 2017, 4:51 AM
This revision was automatically updated to reflect the committed changes.