Edit

kc3-lang/libevent/make-event-config.sed

Branch :

  • Show log

    Commit

  • Author : Zack Weinberg
    Date : 2012-04-27 09:32:51
    Hash : 30b6f889
    Message : Generate event-config.h with a single sed script This approach should make the creation of the file more atomic, to fix a bug reported by Dinh. This patch has one change from Zack's original version: it avoids $<, since Dave Hart tells me he thinks that's not so portable. (commit message by nickm)

  • make-event-config.sed
  • # Sed script to postprocess config.h into event-config.h.
    
    1i\
    /* event2/event-config.h\
     *\
     * This file was generated by autoconf when libevent was built, and post-\
     * processed by Libevent so that its macros would have a uniform prefix.\
     *\
     * DO NOT EDIT THIS FILE.\
     *\
     * Do not rely on macros in this file existing in later versions.\
     */\
    \
    #ifndef _EVENT2_EVENT_CONFIG_H_\
    #define _EVENT2_EVENT_CONFIG_H_\
    
    $a\
    \
    #endif /* event2/event-config.h */
    
    s/#define /#define _EVENT_/
    s/#undef /#undef _EVENT_/
    s/#ifndef /#ifndef _EVENT_/