logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>

yyin.patch (1286B)


  1. SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
  2. SPDX-FileCopyrightText: 2019-2020 Giovanni Mascellani <gio@debian.org>
  3. SPDX-FileCopyrightText: 2021 fosslinux <fosslinux@aussies.space>
  4. SPDX-License-Identifier: BSD-2-Clause
  5. yyin has an odd redefinition error in scan.l, so we ensure that we don't
  6. acidentally re-declare it.
  7. diff --git flexdef.h flexdef.h
  8. index 3eb710a..94ef024 100644
  9. --- flex-2.5.11/flexdef.h
  10. +++ flex-2.5.11/flexdef.h
  11. @@ -421,7 +421,7 @@ extern int yymore_really_used, reject_really_used;
  12. */
  13. extern int datapos, dataline, linenum, out_linenum;
  14. -extern FILE *skelfile, *yyin, *backing_up_file;
  15. +extern FILE *skelfile, *backing_up_file;
  16. extern const char *skel[];
  17. extern int skel_ind;
  18. extern char *infilename, *outfilename, *headerfilename;
  19. @@ -432,6 +432,10 @@ extern char **input_files;
  20. extern int num_input_files;
  21. extern char *program_name;
  22. +#ifndef yyin_defined
  23. +extern FILE* yyin;
  24. +#endif
  25. +
  26. extern char *action_array;
  27. extern int action_size;
  28. extern int defs1_offset, prolog_offset, action_offset, action_index;
  29. --- flex-2.5.11/scan.l
  30. +++ flex-2.5.11/scan.l
  31. @@ -32,6 +32,7 @@
  32. /* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR */
  33. /* PURPOSE. */
  34. +#define yyin_defined
  35. #include "flexdef.h"
  36. #include "parse.h"