a2ps-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS: a2ps/lib options.c,1.2,1.3


From: Franck Lombardi <address@hidden>
Subject: CVS: a2ps/lib options.c,1.2,1.3
Date: Wed, 04 Sep 2002 05:12:52 -0400

Update of /cvsroot/a2ps/a2ps/lib
In directory subversions:/tmp/cvs-serv23725/lib

Modified Files:
        options.c 
Log Message:
* lib/options.c: If `-SFeature' then remove Feature



Index: options.c
===================================================================
RCS file: /cvsroot/a2ps/a2ps/lib/options.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** options.c   22 Mar 2002 14:53:13 -0000      1.2
--- options.c   4 Sep 2002 09:12:50 -0000       1.3
***************
*** 580,586 ****
          char *value;
          value = optarg + strcspn (optarg, " \t:=");
!         /* If `-SFeature:' then remove Feature,
!            If `-SFeature', pass the empty value to libppd,
!            it may decide the right thing to do,
             otherwise (-SFeature:value) pass to libppd */
          if (*value)
--- 580,584 ----
          char *value;
          value = optarg + strcspn (optarg, " \t:=");
!         /* If `-SFeature:' or `-SFeature' then remove Feature,
             otherwise (-SFeature:value) pass to libppd */
          if (*value)
***************
*** 588,600 ****
              *value = '\0';
              value ++;
-             if (*value)
-               setpagedevice (job, optarg, value);
-             else
-               delpagedevice (job, optarg);
            }
          else
!           {
!             setpagedevice (job, optarg, NULL);
!           }
        }
        break;
--- 586,594 ----
              *value = '\0';
              value ++;
            }
+         if (*value)
+           setpagedevice (job, optarg, value);
          else
!           delpagedevice (job, optarg);
        }
        break;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]