lp:~dcow90/myro-c++/extern-c
- Get this branch:
- bzr branch lp:~dcow90/myro-c++/extern-c
Branch merges
- John Hoare: Approve
-
Diff: 12 lines (+1/-1)1 file modifiedheaders/Scribbler.h (+1/-1)
Branch information
Recent revisions
- 84. By David Cowden <email address hidden>
-
Fixed the getBright prototype so it doesn't default to a null string.
This is to address an error when compiling using extern C functions. The g++ compilier isses an error regarding the call to the overloaded functions getBright being ambiguous. I believe this is because the CPP Scribbler.h header lists the prototypes as follows:
std::vector<int> getBright();
and
int getBright(std::string value = );
Since this compiles strictly in CPP it must be an issue with the extern C compatibility. When using extern C, the function signatures must break down both into:
std::vector<int> getBright(NULL);
and
int getBright(NULL);
These would be the same to the g++ compilier since the return type is not part of the signature. This would cause the g++ compilier to produce the error regarding an ambiguous function getBright.To fix this, I changed the prototype in the Scribbler.h header to read:
int getBright(std::string value); - 82. By John Hoare
-
Changed backend to CImg, added Graphics Library, added a rudimentary joystick control program using the Drawing Library.
Put in our own version of libjpeg so we no longer rely on the system's libjpeg.
Picture object's show() method is no longer necessarily a blocking call now.
- 80. By John Hoare
-
Added some myro functions that are in the book but not in the library, currentTime() and randomNumber()
- 77. By John Hoare
-
Fixed a bug in the GrayPicture constructor which set image_data to null right after mallocing it
Branch metadata
- Branch format:
- Branch format 6
- Repository format:
- Bazaar pack repository format 1 (needs bzr 0.92)