patcher.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. tigcc_patch - Parse assembly file and apply patches.
  3. Copyright (C) 2002 Romain Liévin
  4. Copyright (C) 2002-2003 Kevin Kofler
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2, or (at your option)
  8. any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software Foundation,
  15. Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  16. */
  17. #ifndef PATCHER_H
  18. #define PATCHER_H
  19. /* internal functions */
  20. static void usage (int status);
  21. static int decode_switches (int argc, char **argv);
  22. static const char *file_extension (const char *filename);
  23. static void output_line(unsigned char *buffer, FILE *outfile, int *pfline_ROM_CALLs, int *preg_relative);
  24. static char *change_extension(char *file, const char *newext);
  25. /* The name the program was run with, stripped of any leading path. */
  26. char *program_name;
  27. #endif