* Noteworthy changes in release 2.10 (????-??-??) [stable]
- build: Update gnulib files.
+- asn1Coding: actually implement the -c parameter.
* Noteworthy changes in release 2.9 (2010-12-06) [stable]
- tests: Link to gnulib to avoid build error related to 'rpl_ftello' on Solaris.
asn1_delete_structure (&definitions);
asn1_delete_structure (&structure);
+ if (!checkSyntaxOnly)
+ {
+ if (outputFileName == NULL)
+ createFileName (inputFileAssignmentName, &outputFileName);
- if (outputFileName == NULL)
- createFileName (inputFileAssignmentName, &outputFileName);
+ printf ("\nOutputFile=%s\n", outputFileName);
- printf ("\nOutputFile=%s\n", outputFileName);
+ outputFile = fopen (outputFileName, "w");
- outputFile = fopen (outputFileName, "w");
+ if (outputFile == NULL)
+ {
+ printf ("asn1Coding: output file '%s' not available\n", outputFileName);
+ free (der);
+ free (inputFileAsnName);
+ free (inputFileAssignmentName);
+ free (outputFileName);
+ exit (1);
+ }
- if (outputFile == NULL)
- {
- printf ("asn1Coding: output file '%s' not available\n", outputFileName);
- free (der);
- free (inputFileAsnName);
- free (inputFileAssignmentName);
- free (outputFileName);
- exit (1);
+ for (k = 0; k < der_len; k++)
+ fprintf (outputFile, "%c", der[k]);
+ fclose (outputFile);
+ printf ("\nWriting: done.\n");
}
- for (k = 0; k < der_len; k++)
- fprintf (outputFile, "%c", der[k]);
- fclose (outputFile);
- printf ("\nWriting: done.\n");
-
free (der);
free (inputFileAsnName);