Giter Site home page Giter Site logo

bin2d's People

Contributors

rikkimax avatar taylorh140 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

taylorh140

bin2d's Issues

can't handle 2 files with the same name.

Often I find that I will have sub-folders with identical file names inside of them.

Configs
   +->Config1
   |    +->MyFile.txt
   +->Config2
        +->MyFile.txt

However Doing this creates a problem with identical identifiers in the module output.

const(ubyte[]) MyFile_txt = cast(const(ubyte[]))x ....
const(ubyte[]) MyFile_txt = cast(const(ubyte[]))x ....

This will not be able to compile

Errors with building

I tried build a simple example with dmd 2.067.1

bin2d MODULENAME.d=Resource_Reference QCUMBER.jpg

GOT: MODULENAME.d

-------------------------------------MAIN.d
import std.stdio;
import Resource_Reference;

void main() {
string[] FILE_LOCATIONS = outputFilesToFileSystem();
FILE_LOCATIONS.each!writeln();

}

dmd MAIN.d MODULENAME.d

MODULENAME.d(20): Error: undefined identifier names, did you mean variable name?
MODULENAME.d(60): Error: cannot implicitly convert expression ("\xff\xd8\xff\xe0 ..... ) of type string to const( ubyte[] )
MODULENAME.d(58): Error: forward reference to variable QCUMBER_jpg

File name spaces don't seem to be handled.

|-------------------------------------|
| REPORT |
|------------------|------------------|
| QCUMBER.jpg | QCUMBER_jpg |
| tk86t.dll | tk86t_dll |
| tcl86t.dll | tcl86t_dll |
| taylor's app.exe | taylor's app_exe |
|------------------|------------------|

dmd MAIN.d MODULENAME.d

MODULENAME.d(57): Error: unterminated character constant
MODULENAME.d(57): Error: semicolon expected, not '63U'
MODULENAME.d(57): Error: declaration expected, not '63U'
MODULENAME.d(62): Error: unterminated character constant
MODULENAME.d(62): Error: comma expected separating array initializers, not 63U
MODULENAME.d(62): Error: semicolon expected, not 'app_exe'
MODULENAME.d(62): Error: no identifier for declarator app_exe
MODULENAME.d(62): Error: declaration expected, not ']'

Renaming taylor's app.exe to APP.exe fixes this problem.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.