xref: /freebsd/contrib/ntp/sntp/libevent/make-event-config.sed (revision a466cc55373fc3cf86837f09da729535b57e69a1)
12b15cb3dSCy Schubert# Sed script to postprocess config.h into event-config.h.
22b15cb3dSCy Schubert
32b15cb3dSCy Schubert1i\
42b15cb3dSCy Schubert/* event2/event-config.h\
52b15cb3dSCy Schubert *\
62b15cb3dSCy Schubert * This file was generated by autoconf when libevent was built, and post-\
72b15cb3dSCy Schubert * processed by Libevent so that its macros would have a uniform prefix.\
82b15cb3dSCy Schubert *\
92b15cb3dSCy Schubert * DO NOT EDIT THIS FILE.\
102b15cb3dSCy Schubert *\
112b15cb3dSCy Schubert * Do not rely on macros in this file existing in later versions.\
122b15cb3dSCy Schubert */\
132b15cb3dSCy Schubert\
142b15cb3dSCy Schubert#ifndef EVENT2_EVENT_CONFIG_H_INCLUDED_\
152b15cb3dSCy Schubert#define EVENT2_EVENT_CONFIG_H_INCLUDED_\
162b15cb3dSCy Schubert
172b15cb3dSCy Schubert$a\
182b15cb3dSCy Schubert\
192b15cb3dSCy Schubert#endif /* event2/event-config.h */
202b15cb3dSCy Schubert
21*a466cc55SCy Schubert/#\( *\)undef STDC_HEADERS\>/b
22*a466cc55SCy Schubert/#\( *\)define STDC_HEADERS\>/b
23*a466cc55SCy Schubert
24*a466cc55SCy Schubert# Only rewrite symbols starting with capitals
25*a466cc55SCy Schuberts/#\( *\)define \([A-Z]\)/#\1define EVENT__\2/
26*a466cc55SCy Schuberts/#\( *\)undef \([A-Z]\)/#\1undef EVENT__\2/
27*a466cc55SCy Schuberts/#\( *\)if\(n*\)def \([A-Z]\)/#\1if\2def EVENT__\2/
28