Erik Andrén Zachrisson
|
d4ffa2429e
|
Fix indentation
|
2015-11-01 22:06:44 +01:00 |
|
Erik Andrén Zachrisson
|
6c856cb429
|
Remove use of argv when writing the VCD
|
2015-11-01 22:01:02 +01:00 |
|
Erik Andrén Zachrisson
|
9551730de6
|
Make argument parsing more generic. First argument must always be the input file
|
2015-11-01 20:18:41 +01:00 |
|
Erik Andrén Zachrisson
|
fef2de4175
|
Support that arg 2 is command
|
2015-11-01 19:51:16 +01:00 |
|
Erik Andrén Zachrisson
|
989427e8ed
|
Create separate function to convert to .vcd file ending
|
2015-11-01 19:48:16 +01:00 |
|
Erik Andrén Zachrisson
|
e6ea357cb7
|
Correct string copy when passing two arguments
|
2015-11-01 19:19:57 +01:00 |
|
Erik Andrén Zachrisson
|
2ec80869cf
|
Create argument handler function. Some variables needed to go global again. Handle that later
|
2015-11-01 19:15:17 +01:00 |
|
Erik Andrén Zachrisson
|
5e3522b1f5
|
Allocate outbuf on the heap instead of the stack
|
2015-11-01 14:01:24 +01:00 |
|
Erik Andrén Zachrisson
|
23a78f1981
|
Localize bin_size
|
2015-11-01 13:55:37 +01:00 |
|
Erik Andrén Zachrisson
|
7421fd53f3
|
Add extra braces
|
2015-11-01 13:53:39 +01:00 |
|
Erik Andrén Zachrisson
|
63ac60d201
|
Add extra braces
|
2015-11-01 13:50:05 +01:00 |
|
Erik Andrén Zachrisson
|
efbffe16b4
|
Revert back to static 4 byte copy and add an assert protecting the runtime
|
2015-11-01 13:48:27 +01:00 |
|
Erik Andrén Zachrisson
|
ce7be4c8db
|
Fix variable grouping
|
2015-11-01 13:40:35 +01:00 |
|
Erik Andrén Zachrisson
|
94256ae1f4
|
Remove non-necessary newlines
|
2015-11-01 13:40:20 +01:00 |
|
Erik Andrén Zachrisson
|
c0617e78a0
|
Remove superfluous comment
|
2015-11-01 13:39:35 +01:00 |
|
Erik Andrén Zachrisson
|
f123276080
|
Do not use global size variable. Rename local file handle to something more appropriate
|
2015-11-01 13:38:45 +01:00 |
|
Erik Andrén Zachrisson
|
c441eefe0b
|
Localize bin_file
|
2015-11-01 13:37:32 +01:00 |
|
Erik Andrén Zachrisson
|
955bd8445e
|
Localize file ptr and correct its naming to vcd_file
|
2015-11-01 13:36:09 +01:00 |
|
Erik Andrén Zachrisson
|
eb632a36dc
|
Rename ptr to the somewhat more relevant cue_ptr
|
2015-11-01 13:26:21 +01:00 |
|
Erik Andrén Zachrisson
|
07c68f8fe9
|
Localize cue_ptr and rename it to cue_index_ptr
|
2015-11-01 13:21:56 +01:00 |
|
Erik Andrén Zachrisson
|
28be06864f
|
Rename cuesize to cue_size for clarity
|
2015-11-01 13:18:00 +01:00 |
|
Erik Andrén Zachrisson
|
e1da69ce5c
|
Rename cuebuf pointer to cue_buf for clarity
|
2015-11-01 13:17:12 +01:00 |
|
Erik Andrén Zachrisson
|
c1012aea2b
|
Generalize GetBinSize to GetFileSize, use it when dealing with the cue file
|
2015-11-01 13:15:51 +01:00 |
|
Erik Andrén Zachrisson
|
f4c2269d7f
|
Check if the bin_path malloc failed
|
2015-11-01 12:55:01 +01:00 |
|
Erik Andrén Zachrisson
|
ecc773c38f
|
Check if the headerbuf malloc succeeded
|
2015-11-01 12:53:06 +01:00 |
|
Erik Andrén Zachrisson
|
07ecab26f9
|
Use ascii symbol instead of constant
|
2015-11-01 12:48:43 +01:00 |
|
Erik Andrén Zachrisson
|
9e05bba87e
|
Localize bin_path
|
2015-11-01 12:45:14 +01:00 |
|
Erik Andrén Zachrisson
|
2ff4f7b67d
|
Update comment
|
2015-11-01 12:42:05 +01:00 |
|
Erik Andrén Zachrisson
|
7223af09ec
|
Split out bin size calculation into separate function
|
2015-11-01 12:41:48 +01:00 |
|
Erik Andrén Zachrisson
|
360c1fb351
|
Localize track_count
|
2015-11-01 12:36:46 +01:00 |
|
Erik Andrén Zachrisson
|
b0df891d6d
|
Make memcpy more architecture generic (no hardcoded assumption that an int is 4 bytes
|
2015-11-01 12:33:49 +01:00 |
|
Erik Andrén Zachrisson
|
0109bb0ab3
|
Delete trailing whitespace
|
2015-11-01 12:28:32 +01:00 |
|
Erik Andrén Zachrisson
|
10586f19ea
|
Localize daTrack_ptr
|
2015-11-01 12:27:28 +01:00 |
|
Erik Andrén Zachrisson
|
c7ab02638b
|
headersize and sectorsize are constants. Make them uppercase for clarity
|
2015-11-01 12:25:09 +01:00 |
|
Erik Andrén Zachrisson
|
be18ff3355
|
Constify headersize
|
2015-11-01 12:24:14 +01:00 |
|
Erik Andrén Zachrisson
|
b7c2ef6a1a
|
Localize more global variables
|
2015-11-01 12:22:36 +01:00 |
|
Erik Andrén Zachrisson
|
396a9fed30
|
Localize global variables that are in fact local
|
2015-11-01 12:20:28 +01:00 |
|
Erik Andrén Zachrisson
|
6eadff488d
|
sectorsize is used as a constant. Make it so
|
2015-11-01 12:19:07 +01:00 |
|
Erik Andrén Zachrisson
|
dcb1b88851
|
Remove global variable. Place inside the function where it is used instead
|
2015-11-01 12:17:05 +01:00 |
|
Erik Andrén Zachrisson
|
411f444861
|
Replace hex values with actual ascii symbol for clarity
|
2015-11-01 11:53:50 +01:00 |
|
Erik Andrén Zachrisson
|
c66508b474
|
Change return value
|
2015-11-01 11:46:17 +01:00 |
|
Erik Andrén Zachrisson
|
b4bb3bf1e7
|
Enclose if statements with braces
|
2015-11-01 11:45:34 +01:00 |
|
Erik Andrén Zachrisson
|
80d36074c8
|
Constify variables that are set at compile time
|
2015-11-01 11:44:03 +01:00 |
|
Erik Andrén Zachrisson
|
cddc4323b1
|
Use local file descriptor to minimize risk of mixing them up. Check the error status of the fseek and ftell
|
2015-11-01 11:41:15 +01:00 |
|
Erik Andrén Zachrisson
|
a5c7a5b8c6
|
Rename dumpsize to bin_size
|
2015-11-01 09:37:16 +01:00 |
|
Erik Andrén Zachrisson
|
83fe739c98
|
Rename dumpaddr to bin_path
|
2015-11-01 09:35:04 +01:00 |
|
Erik Andrén Zachrisson
|
242bca6adb
|
Copy the bin string
|
2015-10-31 15:35:17 +01:00 |
|
Erik Andrén Zachrisson
|
2a1197cc79
|
Use a build time macro instead of hard coded value
|
2015-10-31 09:55:16 +01:00 |
|
Erik Andrén Zachrisson
|
6ac6c586d1
|
Prevent writing out of range by extending the buffer by one
|
2015-10-31 09:50:18 +01:00 |
|
Erik Andrén Zachrisson
|
da8a911771
|
#else not #elif
|
2015-10-30 23:12:53 +01:00 |
|