Jim Teeuwen
10c722dc95
Fixes bug in StringWriter, which causes the compiler to
...
generate a segfault when there are too many string
concatenations. This happens when we convert a file of
about 100kb or larger.
The fix modifies the StringWriter to write the file data
out into a single, long string, without concatenations.
This addresses issue #5
2013-07-07 13:02:07 +02:00
jimt
0877d93299
Minor cleanup of README.
2013-03-09 13:37:09 +01:00
jimt
b6af78b318
Merges translation functions into translate.go.
...
Runs gofmt on code.
2013-03-09 13:31:48 +01:00
jimt
5f066faee3
Fix issue 4. Removes debug output from pipe mode.
2013-01-26 21:06:46 +01:00
jimt
cd9bcb69b1
Fixes grammar issues in comments for generated functions.
2012-10-12 14:15:18 +02:00
jimt
015755bcf8
Fixes some inconsistencies in README.
2012-09-04 17:15:15 +02:00
jimt
fea0373680
Merge pull request #3 from ajhager/master
...
Fix Writers returning n-1 bytes written.
2012-07-14 11:20:48 -07:00
Joseph Hager
93063b64a3
Fix Writers returning n-1 bytes written.
...
ByteWriter and StringWriter were returning n-1 bytes written which was
causing io.Copy to error out with a ShortWrite. This would cause files
that were larger than the io.Copy internal buffer (32 * 1024) to stop
after the first chunk.
2012-07-13 14:57:50 -04:00
jim teeuwen
98c1704190
Combine the old and new code generation methods. We can select the .rodata hack described in issue #1 by supplying the -m commandline flag. The default code generation mode is the old one. While it uses more memory, it is a safer version and offers no problems when used on platforms that restrict usage of the unsafe
and reflect
packages. Additionally I did some cleanup and refactoring of the code. Bumped version to 1.0.0
2012-06-22 14:12:15 +02:00
jim teeuwen
c2d800d607
Cosmetic fixes.
2012-06-14 11:20:10 +02:00
jim teeuwen
37af2a4b27
Fix generated code for both compressed and uncompressed modes. We now no longer require a memcpy to read the static file data and can get it directly from the .rodata section. This addresses issue #1
2012-06-13 14:17:25 +02:00
jim teeuwen
ed2cd8b81c
Some more code cleanup.
2012-06-07 23:34:34 +02:00
jim teeuwen
665944b444
Remove some unneccesary code bits.
2012-06-07 23:28:16 +02:00
jim teeuwen
6214789c41
Fixed typo in flag description text.
2012-03-28 01:43:03 +02:00
jim teeuwen
384e0cafe9
Added -u flag. When this is supplied to the program, no compression of the input data will take place. This also means the generated source code changes from a function to a global variable. The function is only there because it has to decompress the binary data. When no compression is used, this is obviously not necessary. Default behaviour is still the same (with compression) so existing code using this program will not break. Fixed README to reflect new behaviour. Added new testdata examples for both compressed and uncompressed output.
2012-03-28 01:39:01 +02:00
jim teeuwen
0450ba8421
Change signature of generated function to only return the decompressed byte slice. The error value is removed. Instead the function will panic when a decompression error occurs. This allows us to assign the data to global variables were necessary. A decompression error is considered a deal breaker and therefor the panic is warranted.
2012-03-08 11:47:57 +01:00
jim teeuwen
360acac596
Update README to reflect fix in generated file.
2012-03-06 19:31:58 +01:00
jim teeuwen
fea0fad8ad
Fix output for generated file.
2012-03-06 19:30:35 +01:00
jim teeuwen
ccc86c4533
Fix for weekly.2012-02-14
2012-02-15 12:37:05 +01:00
jim teeuwen
02da4740e4
Fix generate doutput code. os.Error -> error. Remove calling of go fmt from code. This should really be done manually.
2012-02-11 16:49:43 +01:00
jim teeuwen
2b9a31984c
No more Makefiles. Use go command to build and install.
2012-02-09 17:35:10 +01:00
jim teeuwen
7df69a98df
gofmt -s -w
2011-12-07 13:49:06 +01:00
jim teeuwen
470290002e
gofix go1rename
2011-11-09 14:46:27 +01:00
jim teeuwen
468e190b33
gofix error
2011-11-02 16:41:07 +01:00
jim teeuwen
efcb2b8d06
gofix error
2011-11-02 16:40:26 +01:00
jim teeuwen
5b255b58ee
Changed code to use new rune type unicode code points.
2011-10-26 11:59:30 +02:00
jim teeuwen
2985202b2b
Fix function and package names if the user supplied versions start with a digit.
2011-06-27 18:45:39 +02:00
jim teeuwen
55b35257df
Added facilities to pipe file data into stdin.
2011-06-17 18:52:40 +02:00
jim teeuwen
c539ce1afc
wrong license header in main.go
2011-06-17 18:01:49 +02:00
jim teeuwen
a7b06d6d31
Add to README
2011-06-17 17:46:29 +02:00
jim teeuwen
2a84f0bab0
Changed from package to command. Removed bindata dependency from generated go files by embedding the unpacking code in the generated function.
2011-06-17 17:44:59 +02:00