World: r3wp
[!REBOL3 Host Kit]
older newer | first last |
Maxim 27-Oct-2010 [486] | are they using the same typedef? |
ssolie 27-Oct-2010 [487x2] | no, Amiga typedefs to short while REBOL #defines to int |
seems strange to have 2 bool types in REBOL ? | |
Maxim 27-Oct-2010 [489x2] | REBOOL is more compact for smaller structs. |
strange that its trippping you though since its within an #ifndef #ifndef BOOL typedef int BOOL; // (int is used for speed in modern CPUs) #endif | |
ssolie 27-Oct-2010 [491x3] | the precompiler knows nothing of typedefs so when Amiga typedefs BOOL it skips the #ifndef check |
I may have to keep the rebol and amiga stuff completely seperated | |
(different files) | |
Maxim 27-Oct-2010 [494] | I'd just rename the rebol BOOL to some other Identifier,and do a quick recursive file replace... I looked and its not used that much. |
ssolie 27-Oct-2010 [495] | not good for common host-kit later though.. |
Maxim 27-Oct-2010 [496x2] | then give a note to carl so that it gets changed in the next host-kit. cause I don't find it a good practice anyways. strangely, I was wondering if BOOL would cause compiler hickups a few weeks ago. |
guess I was right ;-) | |
ssolie 27-Oct-2010 [498x2] | maybe REBOL should just use the C99 _Bool type instead which is optimized for each platform |
instead of assuming int is best | |
Maxim 27-Oct-2010 [500] | MSVC doesn't support C99. :-( though maybe _Bool is defined anyways. |
ssolie 27-Oct-2010 [501] | lol... silly microsoft.. for windows we can just typedef _Bool until they catch up? |
Maxim 27-Oct-2010 [502x2] | thing is I see that BOOL is used in the host-kit as return values, so expecting the same dll to be compatible with different compilers might be dangerous. |
since we aren't compiling the core ourself. it might be using some different typedef. | |
ssolie 27-Oct-2010 [504] | this is why ISO standarized things over 10 years ago.. ;-) |
Maxim 27-Oct-2010 [505x2] | hehe |
standards? programmers? are you kidding? ;-) | |
ssolie 27-Oct-2010 [507x2] | I can work around it for now but I would recommend the ISO approach myself (for types) |
except the RE* types of course which are special | |
Maxim 27-Oct-2010 [509] | I agree, if it can be guaranteed that it won't break between MSVC and GCC. |
ssolie 27-Oct-2010 [510x2] | we can supply a stdbool.h and stdint.h for the MSVC users if need be.. until MS catches up |
anyway, just a thought | |
ssolie 28-Oct-2010 [512] | Is there a version of the host-kit that works with AGG without Windows? |
Maxim 28-Oct-2010 [513x2] | in theory you can use to-image! on a gob! but I'm not sure its been fixed in latest hostkits and not sure that really answers your question either ;-) |
by windows do you mean on another platform than MS Windows? | |
ssolie 28-Oct-2010 [515x3] | yes |
the windows code is filled with truetype font stuff for example | |
I would need to use freetype | |
Maxim 28-Oct-2010 [518] | nope. you are the brave soul we where all waiting for ;-) |
ssolie 28-Oct-2010 [519x2] | so bet it :) |
be even | |
Cyphre 28-Oct-2010 [521] | ssolie: the only file that needs to be reformatted so it supports other platforms than windows is agg_truetype_text.cpp + .h Otherwise there is already available FreeType wrapper so the rest of code can work even on OS4 But the current hostkit code needs some more work to extract the font/text rendering parts so they can be controlled by defs. If you don't want to waste time on this I can have a look at it over the weekend and make the changes so you should be able compile without the text code for now. Just let me know. |
ssolie 28-Oct-2010 [522x2] | Cyphre, that would be great if you could make the necessary changes. I have simply commented out text support for the time being so I can continue to work on other areas. |
FYI - I filed some bug reports for the host-kit for the more annoying problems I've hit. Feel free to add comments to the reports. | |
Maxim 28-Oct-2010 [524] | saw them all good ideas |
Carl 28-Oct-2010 [525x4] | scanning: reading back a few pages... |
looks like Steve got his questions answered | |
we can probably find some way to handle BOOL via the reb-config.h | |
If C code line terminators are effecting your tools, I suggest you get better tools. | |
Maxim 28-Oct-2010 [529] | btw, I released a new host-kit which has custom gob rendering enabled (very early prototype) but its got an OpenGL rendering engine running within view. you can see the download link in the announce group, if you want to try it out. |
Carl 28-Oct-2010 [530] | Andreas: the code base is a mix of both single source and multi-source tree. I will not allow source files to become unreadable with every other line being #ifdef for a different OS. Those are not maintainable. |
Maxim 28-Oct-2010 [531x2] | no need to compile anything, there are example scripts and compiled versions in the cgr-apps of that zip file. |
this being said I would like to have a private chat with you about some issues I encountered so far. | |
Carl 28-Oct-2010 [533x3] | A: The OS/dirs are for code that is really quite different. Merging into a single source does not help keep it in sync, because most coders only modify the platform of their choice. They can just as easily diff. |
(Let's just say I've been doing source control for a long long time. ;) | |
Maxim: on OpenGL, that's good news. | |
older newer | first last |