Bump version numbers of these programs, add history and credits.
Chris Pressey
4 years ago
0 | 0 |
/********************************************************************
|
1 | 1 |
|
2 | 2 |
bef2c.c - Befunge-93 to ANSI C Compiler in ANSI C
|
3 | |
v0.94 Sep 20 2004 Chris Pressey, Cat's-Eye Technologies
|
4 | |
|
5 | |
Copyright (c)1997-2012, Chris Pressey, Cat's Eye Technologies.
|
|
3 |
|
|
4 |
Copyright (c)1997-2018, Chris Pressey, Cat's Eye Technologies.
|
6 | 5 |
All rights reserved.
|
7 | 6 |
|
8 | 7 |
Redistribution and use in source and binary forms, with or without
|
|
48 | 47 |
Known to Compile Under :
|
49 | 48 |
|
50 | 49 |
Borland C++ v3.1 (DOS)
|
|
50 |
gcc 5.4.0 (Ubuntu 16.04)
|
51 | 51 |
|
52 | 52 |
History:
|
|
53 |
|
|
54 |
v1.0: circa Jun 2018
|
|
55 |
fixes submitted by https://github.com/serprex (thanks!):
|
|
56 |
- avoid double free due to double fclose
|
|
57 |
- handle trampoline at leftmost/topmost edges
|
|
58 |
- don't load NULs into playfield
|
|
59 |
- use %% instead of %c with '%' being passed in
|
|
60 |
- avoid freeing fo/fi on failure to open
|
53 | 61 |
|
54 | 62 |
v0.94: Sep 2004, Chris Pressey
|
55 | 63 |
display correct version number
|
|
135 | 143 |
|
136 | 144 |
srand (time (0));
|
137 | 145 |
|
138 | |
printf ("Befunge-93 to ANSI C Compiler v0.94\n");
|
|
146 |
printf ("Befunge-93 to ANSI C Compiler v1.0\n");
|
139 | 147 |
|
140 | 148 |
if (argc < 3)
|
141 | 149 |
{
|
0 | 0 |
/********************************************************************
|
1 | 1 |
|
2 | 2 |
befprof.c - Befunge-93 Profiler
|
3 | |
v0.94 Sep 20 2004 Chris Pressey, Cat's-Eye Technologies
|
4 | |
|
5 | |
Copyright (c)1998-2012, Chris Pressey, Cat's Eye Technologies.
|
|
3 |
|
|
4 |
Copyright (c)1998-2018, Chris Pressey, Cat's Eye Technologies.
|
6 | 5 |
All rights reserved.
|
7 | 6 |
|
8 | 7 |
Redistribution and use in source and binary forms, with or without
|
|
55 | 54 |
so too many repetitions may cause them to wrap back to 0.
|
56 | 55 |
|
57 | 56 |
******************************************************************
|
|
57 |
|
|
58 |
v1.0: circa Jun 2018
|
|
59 |
handle trampoline at leftmost/topmost edges
|
|
60 |
(thanks to https://github.com/serprex for this fix!)
|
58 | 61 |
|
59 | 62 |
v0.94: Sep 2004, Chris Pressey
|
60 | 63 |
cleanup only, no functional changes
|
|
210 | 213 |
if (!strcmp(argv[i], "-w")) { strcpy(mapfilename, argv[i + 1]); }
|
211 | 214 |
}
|
212 | 215 |
|
213 | |
printf ("Befunge-93 Profiler v0.94\n");
|
|
216 |
printf ("Befunge-93 Profiler v1.0\n");
|
214 | 217 |
|
215 | 218 |
if ((f = fopen (filename, "r")) != NULL) /*** Input Phase */
|
216 | 219 |
{
|