extensions of conditional native-typing to -fbless-SIZE constraints
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@959 59561ff5-6e30-0410-9f3c-9617f08c8826
diff --git a/libasn1fix/check_fixer.c b/libasn1fix/check_fixer.c
index 320eebb..6a13fda 100644
--- a/libasn1fix/check_fixer.c
+++ b/libasn1fix/check_fixer.c
@@ -76,15 +76,15 @@
filename = dp->d_name;
#endif /* WIN32 */
len = strlen(filename);
- if(len && strcmp(filename + len - 5, ".asn1") == 0) {
- ret = check(filename, parser_flags,fixer_flags);
- if(ret) {
- fprintf(stderr, "FAILED: %s\n",
- filename);
- failed++;
- }
- completed++;
+ if(len <= 5 || strcmp(filename + len - 5, ".asn1"))
+ continue;
+ ret = check(filename, parser_flags, fixer_flags);
+ if(ret) {
+ fprintf(stderr, "FAILED: %s\n",
+ filename);
+ failed++;
}
+ completed++;
#ifdef WIN32
} while(_findnext(dir, &c_file) == 0);
_findclose(dir);
@@ -152,6 +152,10 @@
return -1;
}
+ /* Flag modifiers */
+ if(strstr(fname, "-blessSize-"))
+ fixer_flags |= A1F_EXTENDED_SizeConstraint;
+
fprintf(stderr, "[=> %s]\n", fname);
/*