ash_ptr_hack.c 500 B

12345678910111213141516
  1. /* vi: set sw=4 ts=4: */
  2. /*
  3. * Copyright (C) 2008 by Denys Vlasenko <vda.linux@googlemail.com>
  4. *
  5. * Licensed under GPLv2, see file LICENSE in this tarball for details.
  6. */
  7. /* We cheat here. They are declared as const ptr in ash.c,
  8. * but here we make them live in R/W memory */
  9. struct globals_misc;
  10. struct globals_memstack;
  11. struct globals_var;
  12. struct globals_misc *ash_ptr_to_globals_misc;
  13. struct globals_memstack *ash_ptr_to_globals_memstack;
  14. struct globals_var *ash_ptr_to_globals_var;