-----BEGIN PGP SIGNED MESSAGE-----
Attached is a patch file for xmame-0.76.1/src/cpu/m68000/m68kmake.c for OpenVMS. It's small changes, mainly file related. =========================================================================== - --- xmame-0.76.1/src/cpu/m68000/m68kmake.c Mon Oct 20 21:54:56 2003 +++ m68kmake.c Tue Nov 11 07:39:19 2003 @@ -19,6 +19,10 @@ * http://kstenerud.cjb.net */ +/* + * Modified For OpenVMS By: Robert Alan Byer + * [EMAIL PROTECTED] + */ /* ======================================================================== */ @@ -1242,15 +1246,46 @@ for(ptr = strchr(output_path, '\\'); ptr; ptr = strchr(ptr, '\\')) *ptr = '/'; + +#if defined(VMS) if(output_path[strlen(output_path)-1] != '/') strcat(output_path, "/"); +#endif + if(argc > 2) strcpy(g_input_filename, argv[2]); } +#if defined(VMS) /* Open the files we need */ sprintf(filename, "%s%s", output_path, FILENAME_PROTOTYPE); + if((g_prototype_file = fopen(filename, "w")) == NULL) + perror_exit("Unable to create prototype file (%s)\n", filename); + + sprintf(filename, "%s%s", output_path, FILENAME_TABLE); + if((g_table_file = fopen(filename, "w")) == NULL) + perror_exit("Unable to create table file (%s)\n", filename); + + sprintf(filename, "%s%s", output_path, FILENAME_OPS_AC); + if((g_ops_ac_file = fopen(filename, "w")) == NULL) + perror_exit("Unable to create ops ac file (%s)\n", filename); + + sprintf(filename, "%s%s", output_path, FILENAME_OPS_DM); + if((g_ops_dm_file = fopen(filename, "w")) == NULL) + perror_exit("Unable to create ops dm file (%s)\n", filename); + + sprintf(filename, "%s%s", output_path, FILENAME_OPS_NZ); + if((g_ops_nz_file = fopen(filename, "w")) == NULL) + perror_exit("Unable to create ops nz file (%s)\n", filename); + + if((g_input_file=fopen(g_input_filename, "r")) == NULL) + perror_exit("can't open %s for input", g_input_filename); + +#else + + /* Open the files we need */ + sprintf(filename, "%s%s", output_path, FILENAME_PROTOTYPE); if((g_prototype_file = fopen(filename, "wt")) == NULL) perror_exit("Unable to create prototype file (%s)\n", filename); @@ -1273,7 +1308,10 @@ if((g_input_file=fopen(g_input_filename, "rt")) == NULL) perror_exit("can't open %s for input", g_input_filename); +#endif + + /* Get to the first section of the input file */ section_id[0] = 0; while(strcmp(section_id, ID_INPUT_SEPARATOR) != 0) =========================================================================== +------------------+--------------------------+---------------+ | Robert Alan Byer | [EMAIL PROTECTED] | ICQ #65926579 | +------------------+--------------------------+---------------+ | Send an E-mail request to obtain a copy of my PGP key. | +-------------------------------------------------------------+ | "It is by caffeine alone I set my mind in motion. It is by | | cans of cola the thoughts aquire speed, the hands acquire | | shakes, the shakes become a warning. It is by caffeine | | alone I set my mind in motion." | +-------------------------------------------------------------+ -----BEGIN PGP SIGNATURE----- Version: 2.6.3ia Charset: noconv iQEVAwUBP7DbtqVSqzlBVJbBAQG4gQgAmPCwYQyKzA4jusE9DXh6oAVQhbOkRDab YhnFU56D0llIPsjVyZqa8Zfv/1J1chFVhBz/KT8973KG4L3wNHRaJ+8wLmcS09+R IApDnBbk75JcxkcXGUOhi2OjZNZfaMSfDflZK+tmcUOr0gmZ1NLKOzsnYrZXbuq8 9GT0Wf4KBr1OuzNneSjwQpj06xTjN2MR0FV+eAcOgkYDmNTvVmRw0qgb60haoHY8 NJ8iL+LWQnMyLRPQCsiVaw7spqDosQaF8N497RhtY9ZEBCjkhLidPXZfFr80eD5g LuL5y03hiignGwQtNbcKeZhseDfiQ8KUo7WaSwXysyntVXoOkzAgfQ== =KALI -----END PGP SIGNATURE----- _______________________________________________ Xmame mailing list [EMAIL PROTECTED] http://toybox.twisted.org.uk/mailman/listinfo/xmame
