]> Dogcows Code - chaz/tar/blobdiff - src/transform.c
Handle incremental format 2 with negative numbers, too.
[chaz/tar] / src / transform.c
index c35133fa2578953bc5e21bf5cff9f56f877b8cc9..e268312cfc61000eb11258af4f35b2357b0a972e 100644 (file)
@@ -71,7 +71,7 @@ struct transform
 
 \f
 
-int transform_flags = XFORM_ALL;
+static int transform_flags = XFORM_ALL;
 static struct transform *transform_head, *transform_tail;
 
 static struct transform *
@@ -347,7 +347,7 @@ parse_transform_expr (const char *expr)
              break;
 
            case 'L':
-             /* Turn the replacement to lowercase until a `\U' or `\E'
+             /* Turn the replacement to lowercase until a '\U' or '\E'
                 is found, */
              add_case_ctl_segment (tf, ctl_locase);
              cur++;
@@ -360,7 +360,7 @@ parse_transform_expr (const char *expr)
              break;
 
            case 'U':
-             /* Turn the replacement to uppercase until a `\L' or `\E'
+             /* Turn the replacement to uppercase until a '\L' or '\E'
                 is found, */
              add_case_ctl_segment (tf, ctl_upcase);
              cur++;
@@ -373,7 +373,7 @@ parse_transform_expr (const char *expr)
              break;
 
            case 'E':
-             /* Stop case conversion started by `\L' or `\U'. */
+             /* Stop case conversion started by '\L' or '\U'. */
              add_case_ctl_segment (tf, ctl_stop);
              cur++;
              break;
@@ -628,3 +628,9 @@ transform_name (char **pinput, int type)
 {
   return transform_name_fp (pinput, type, NULL, NULL);
 }
+
+bool
+transform_program_p (void)
+{
+  return transform_head != NULL;
+}
This page took 0.023949 seconds and 4 git commands to generate.