m4-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] -C, --synclines-as-comments


From: docelic-m4
Subject: [PATCH] -C, --synclines-as-comments
Date: Sun, 3 May 2020 21:20:37 -0400
User-agent: NeoMutt/20170113 (1.7.2)

Hello,

Attached is a prototype patch which adds option -C (--synclines-as-comments).

When enabled, it is intended to output synclines enclosed in comment
delimiters. This is useful for using m4 and option -s outside of the
context of a C compiler.

Example:

#config.m4:
changecom(`(*', `*)')
define(A, B)

#file1.m4:
A

# m4 config.m4 -s file1.m4
(* #line 1 "file1.m4" *)
B

I do not have the latest toolchain needed to build m4 so the patch
is a prototype; it needs a couple more lines to work. Please
complete it if possible.

Thanks,
Davor

Attachment: synclines-as-comments.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]