add_gc_prefix.c 423 B

123456789101112131415161718192021
  1. # include <stdio.h>
  2. # include "version.h"
  3. int main(argc, argv, envp)
  4. int argc;
  5. char ** argv;
  6. char ** envp;
  7. {
  8. int i;
  9. for (i = 1; i < argc; i++) {
  10. if (GC_ALPHA_VERSION == GC_NOT_ALPHA) {
  11. printf("gc%d.%d/%s ", GC_VERSION_MAJOR, GC_VERSION_MINOR, argv[i]);
  12. } else {
  13. printf("gc%d.%dalpha%d/%s ", GC_VERSION_MAJOR,
  14. GC_VERSION_MINOR, GC_ALPHA_VERSION, argv[i]);
  15. }
  16. }
  17. return(0);
  18. }