flex-on-windows.patch 885 B

12345678910111213141516171819202122232425
  1. --- a/src/scan-skel.l (index)
  2. +++ b/src/scan-skel.l (working tree)
  3. @@ -72,11 +69,12 @@ static void fail_for_invalid_at (char const *at);
  4. at_directive at_ptr = NULL;
  5. %}
  6. +\r+ continue;
  7. "@@" fputc ('@', yyout);
  8. "@{" fputc ('[', yyout);
  9. "@}" fputc (']', yyout);
  10. "@'" continue; /* Used by b4_cat in ../data/bison.m4. */
  11. -@\n continue;
  12. +@\r*\n continue;
  13. "@oline@" fprintf (yyout, "%d", out_lineno + 1);
  14. "@ofile@" fputs (quotearg_style (c_quoting_style, out_name), yyout);
  15. @@ -249,7 +245,7 @@ at_output (int argc, char *argv[], char **out_namep, int *out_linenop)
  16. *out_namep = xstrdup (argv[1]);
  17. output_file_name_check (out_namep, true);
  18. /* If there were errors, do not generate the output. */
  19. - yyout = xfopen (complaint_status ? "/dev/null" : *out_namep, "w");
  20. + yyout = xfopen (complaint_status ? "/dev/null" : *out_namep, "wb");
  21. *out_linenop = 1;
  22. }