You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by bj...@apache.org on 2001/03/26 12:22:34 UTC

cvs commit: apr/build make_export.awk

bjh         01/03/26 02:22:34

  Modified:    build    make_export.awk
  Log:
  Add hooks declared with AP_DECLARE_HOOK to the list of exported symbols.
  
  Revision  Changes    Path
  1.2       +14 -4     apr/build/make_export.awk
  
  Index: make_export.awk
  ===================================================================
  RCS file: /home/cvs/apr/build/make_export.awk,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- make_export.awk	2001/02/18 13:36:15	1.1
  +++ make_export.awk	2001/03/26 10:22:33	1.2
  @@ -31,22 +31,32 @@
   	next
   }
   
  -/^[ \t]*(AP[RU]?_DECLARE[^(]*[(])?(const[ \t])?[a-z_]+[ \t\*]*[)]?[ \t]+[*]?([A-Za-z0-9_]+)\(/ {
  +function add_symbol (sym_name) {
   	if (count) {
   		found++
   	}
   	for (i = 0; i < count; i++) {
   		line = line "\t"
   	}
  -	sub("^[ \t]*(AP[UR]?_DECLARE[^(]*[(])?(const[ \t])?[a-z_]+[ \t\*]*[)]?[ \t]+[*]?", "");
  -	sub("[(].*", "");
  -	line = line $0 "\n"
  +	line = line sym_name "\n"
   
   	if (count == 0) {
   		printf("%s", line)
   		line = ""
   	}
  +}
  +
  +/^[ \t]*(AP[RU]?_DECLARE[^(]*[(])?(const[ \t])?[a-z_]+[ \t\*]*[)]?[ \t]+[*]?([A-Za-z0-9_]+)\(/ {
  +	sub("^[ \t]*(AP[UR]?_DECLARE[^(]*[(])?(const[ \t])?[a-z_]+[ \t\*]*[)]?[ \t]+[*]?", "");
  +	sub("[(].*", "");
  +	add_symbol($0);
   	next
  +}
  +
  +/^[ \t]*AP_DECLARE_HOOK[(][^,]+,[a-z_]+,.+[)]$/ {
  +	split($0, args, ",");
  +	add_symbol("ap_hook_" args[2]);
  +	add_symbol("ap_run_" args[2]);
   }
   
   END {