cvs commit: ALFS/nALFS/src/handlers alfs.c chroot.c copy.c digest.c download.c stage.c unpack.c

kpfleming at linuxfromscratch.org kpfleming at linuxfromscratch.org
Sat Feb 28 19:13:48 PST 2004


kpfleming    04/02/28 20:13:48

  Modified:    nALFS/src/handlers alfs.c chroot.c copy.c digest.c
                        download.c stage.c unpack.c
  Log:
  handler attribute/parameter type enums should be anonymous (names are pointless)
  
  Revision  Changes    Path
  1.20      +1 -1      ALFS/nALFS/src/handlers/alfs.c
  
  Index: alfs.c
  ===================================================================
  RCS file: /home/cvsroot/ALFS/nALFS/src/handlers/alfs.c,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- alfs.c	25 Feb 2004 04:07:01 -0000	1.19
  +++ alfs.c	29 Feb 2004 03:13:47 -0000	1.20
  @@ -36,7 +36,7 @@
   #include "utility.h"
   
   
  -enum alfs_attribute_types {
  +enum {
   	ALFS_VERSION
   };
   
  
  
  
  1.19      +1 -1      ALFS/nALFS/src/handlers/chroot.c
  
  Index: chroot.c
  ===================================================================
  RCS file: /home/cvsroot/ALFS/nALFS/src/handlers/chroot.c,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- chroot.c	28 Feb 2004 05:45:13 -0000	1.18
  +++ chroot.c	29 Feb 2004 03:13:47 -0000	1.19
  @@ -46,7 +46,7 @@
   
   #if HANDLER_SYNTAX_2_0
   
  -enum chroot_attribute_types {
  +enum {
   	CHROOT_DIR,
   };
   
  
  
  
  1.20      +2 -1      ALFS/nALFS/src/handlers/copy.c
  
  Index: copy.c
  ===================================================================
  RCS file: /home/cvsroot/ALFS/nALFS/src/handlers/copy.c,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- copy.c	28 Feb 2004 05:45:13 -0000	1.19
  +++ copy.c	29 Feb 2004 03:13:47 -0000	1.20
  @@ -40,8 +40,9 @@
   #include "backend.h"
   
   
  -enum copy_info_types {
  +enum {
   	COPY_OPTIONS,
  +	COPY_OPTION,
   	COPY_BASE,
   	COPY_SOURCE,
   	COPY_DESTINATION,
  
  
  
  1.4       +1 -1      ALFS/nALFS/src/handlers/digest.c
  
  Index: digest.c
  ===================================================================
  RCS file: /home/cvsroot/ALFS/nALFS/src/handlers/digest.c,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- digest.c	25 Feb 2004 05:40:14 -0000	1.3
  +++ digest.c	29 Feb 2004 03:13:47 -0000	1.4
  @@ -37,7 +37,7 @@
   #include "utility.h"
   
   
  -enum digest_attribute_types {
  +enum {
   	DIGEST_TYPE
   };
   
  
  
  
  1.22      +1 -4      ALFS/nALFS/src/handlers/download.c
  
  Index: download.c
  ===================================================================
  RCS file: /home/cvsroot/ALFS/nALFS/src/handlers/download.c,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- download.c	28 Feb 2004 05:54:33 -0000	1.21
  +++ download.c	29 Feb 2004 03:13:47 -0000	1.22
  @@ -46,13 +46,10 @@
   #include "backend.h"
   
   
  -enum download_parameter_types {
  +enum {
   	DOWNLOAD_FILE,
   	DOWNLOAD_URL,
   	DOWNLOAD_DESTINATION,
  -};
  -
  -enum download_attribute_types {
   	DOWNLOAD_BASE,
   };
   
  
  
  
  1.29      +3 -3      ALFS/nALFS/src/handlers/stage.c
  
  Index: stage.c
  ===================================================================
  RCS file: /home/cvsroot/ALFS/nALFS/src/handlers/stage.c,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- stage.c	25 Feb 2004 04:07:01 -0000	1.28
  +++ stage.c	29 Feb 2004 03:13:47 -0000	1.29
  @@ -216,7 +216,7 @@
   
   /* <stage> handler */
   
  -enum stage_attribute_types {
  +enum {
   	STAGE_NAME,
   };
   
  @@ -446,7 +446,7 @@
   
   /* <stageinfo> handler */
   
  -enum stageinfo_parameter_types {
  +enum {
   	STAGEINFO_BASE,
   	STAGEINFO_ROOT,
   	STAGEINFO_USER,
  @@ -630,7 +630,7 @@
   
   /* <variable> handler */
   
  -enum variable_attribute_types {
  +enum {
   	VARIABLE_NAME,
   	VARIABLE_MODE,
   };
  
  
  
  1.30      +1 -4      ALFS/nALFS/src/handlers/unpack.c
  
  Index: unpack.c
  ===================================================================
  RCS file: /home/cvsroot/ALFS/nALFS/src/handlers/unpack.c,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- unpack.c	28 Feb 2004 05:54:48 -0000	1.29
  +++ unpack.c	29 Feb 2004 03:13:47 -0000	1.30
  @@ -101,14 +101,11 @@
   	return status;
   }
   
  -enum unpack_parameter_types {
  +enum {
   	UNPACK_ARCHIVE,
   	UNPACK_DESTINATION,
   	UNPACK_REFERENCE,
   	UNPACK_DIGEST,
  -};
  -
  -enum unpack_attribute_types {
   	UNPACK_BASE,
   };
   
  
  
  



More information about the alfs-log mailing list