xref: /freebsd/contrib/libevent/make-event-config.sed (revision b50261e21f39a6c7249a49e7b60aa878c98512a8)
1c43e99fdSEd Maste# Sed script to postprocess config.h into event-config.h.
2c43e99fdSEd Maste
3c43e99fdSEd Maste1i\
4c43e99fdSEd Maste/* event2/event-config.h\
5c43e99fdSEd Maste *\
6c43e99fdSEd Maste * This file was generated by autoconf when libevent was built, and post-\
7c43e99fdSEd Maste * processed by Libevent so that its macros would have a uniform prefix.\
8c43e99fdSEd Maste *\
9c43e99fdSEd Maste * DO NOT EDIT THIS FILE.\
10c43e99fdSEd Maste *\
11c43e99fdSEd Maste * Do not rely on macros in this file existing in later versions.\
12c43e99fdSEd Maste */\
13c43e99fdSEd Maste\
14c43e99fdSEd Maste#ifndef EVENT2_EVENT_CONFIG_H_INCLUDED_\
15c43e99fdSEd Maste#define EVENT2_EVENT_CONFIG_H_INCLUDED_\
16c43e99fdSEd Maste
17c43e99fdSEd Maste$a\
18c43e99fdSEd Maste\
19c43e99fdSEd Maste#endif /* event2/event-config.h */
20c43e99fdSEd Maste
21*b50261e2SCy Schubert/#\( *\)undef STDC_HEADERS\>/b
22*b50261e2SCy Schubert/#\( *\)define STDC_HEADERS\>/b
23*b50261e2SCy Schubert
24*b50261e2SCy Schubert# Only rewrite symbols starting with capitals
25*b50261e2SCy Schuberts/#\( *\)define \([A-Z]\)/#\1define EVENT__\2/
26*b50261e2SCy Schuberts/#\( *\)undef \([A-Z]\)/#\1undef EVENT__\2/
27*b50261e2SCy Schuberts/#\( *\)if\(n*\)def \([A-Z]\)/#\1if\2def EVENT__\2/
28