cvs commit: ALFS/nALFS/src handlers.c

kpfleming at linuxfromscratch.org kpfleming at linuxfromscratch.org
Sat Mar 13 20:47:09 PST 2004


kpfleming    04/03/13 21:47:09

  Modified:    nALFS/src handlers.c
  Log:
  provide child element validator for root element handler
  
  Revision  Changes    Path
  1.27      +9 -0      ALFS/nALFS/src/handlers.c
  
  Index: handlers.c
  ===================================================================
  RCS file: /home/cvsroot/ALFS/nALFS/src/handlers.c,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- handlers.c	28 Feb 2004 05:55:21 -0000	1.26
  +++ handlers.c	14 Mar 2004 04:47:09 -0000	1.27
  @@ -59,6 +59,14 @@
   	return 0;
   }
   
  +static int root_valid_child(const element_s * const element,
  +			    const element_s * const child)
  +{
  +	(void) element;
  +	(void) child;
  +	return 1;
  +}
  +
   static int comment_main(const element_s * const el)
   {
   	(void) el;
  @@ -73,6 +81,7 @@
   		.syntax_version = "all",
   		.main = root_main,
   		.type = HTYPE_NORMAL,
  +		.valid_child = root_valid_child,
   	},
   #if HANDLER_SYNTAX_2_0
   	{
  
  
  



More information about the alfs-log mailing list