httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: httpd-2.0/build make_exports.awk
Date Sat, 21 Jul 2001 13:33:31 GMT
bjh         01/07/21 06:33:31

  Modified:    build    make_exports.awk
  Log:
  Sander says:
  
    I missed the hook declarations in my previous
    script. This is added by the patch below.
  
    The patch also removes unneeded ; that slipped
    in because I use c a lot more than awk :)
  
    I moved a rule around so removal of leading
    whitespace could go into one rule
    (see AP[RU]?_DECLARE).
  
    Also removed the additional idx variable in
    favor of checking the return value of the
    index function.
  
  Submitted by:	Sander Striker <striker@apache.org>
  Reviewed by:	Brian Havard <brianh@kheldar.apana.org.au>
  
  Revision  Changes    Path
  1.2       +17 -8     httpd-2.0/build/make_exports.awk
  
  Index: make_exports.awk
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/build/make_exports.awk,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- make_exports.awk	2001/07/21 06:34:54	1.1
  +++ make_exports.awk	2001/07/21 13:33:31	1.2
  @@ -70,21 +70,30 @@
   }
   
   function add_symbol(symbol) {
  -    idx = index(symbol, "#")
  -
  -    if (!idx) {
  +    if (!index(symbol, "#")) {
           push("const void *ap_hack_" symbol " = (const void *)" symbol ";")
           scope_used[scope] = 1
       }
   }
   
  -/^[ \t]*AP[RU]?_DECLARE[^(]*[(][^)]*[)]([^ ]* )*[^(]+[(]/  { 
  -    sub("[ \t]*AP[RU]?_DECLARE[^(]*[(][^)]*[)]", "");
  -    sub("[(].*", "");
  -    sub("^[ \t]+", "");
  -    sub("([^ ]* ^([ \t]*[(]))*", "");
  +/^[ \t]*AP[RU]?_DECLARE[^(]*[(][^)]*[)]([^ ]* )*[^(]+[(]/ {
  +    sub("[ \t]*AP[RU]?_DECLARE[^(]*[(][^)]*[)][ \t]*", "")
  +    sub("[(].*", "")
  +    sub("([^ ]* ^([ \t]*[(]))*", "")
   
       add_symbol($0)
  +    next
  +}
  +
  +/^[ \t]*AP_DECLARE_HOOK[^(]*[(][^)]*[)]/ {
  +    split($0, args, ",")
  +    symbol = args[2]
  +    sub("^[ \t]+", "", symbol)
  +    sub("[ \t]+$", "", symbol)
  +
  +    add_symbol("ap_hook_" symbol)
  +    add_symbol("ap_hook_get_" symbol)
  +    add_symbol("ap_run_" symbol)
       next
   }
   
  
  
  

Mime
View raw message