Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
バイナリ整数を出力する M4 マクロを定義することは可能ですか? 例えば:
define(`foo', $1) foo(42)
値が 42 の 1 バイトを出力する必要があります。
define(`foo', `esyscmd(`python -c "import sys; sys.stdout.write(chr($1))"')') dnl foo(`42')
次のように展開します。
*
ただし、それは少しチートです。