lp:~dcow90/myro-c++/extern-c

Created by David Cowden and last modified
Get this branch:
bzr branch lp:~dcow90/myro-c++/extern-c
Only David Cowden can upload to this branch. If you are David Cowden please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
David Cowden
Project:
Myro-C++
Status:
Merged

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);

83. By John Hoare

Updated changelog.

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.

81. By John Hoare

Added get/set functions for the pixel struct, b/c the python version has them.

80. By John Hoare

Added some myro functions that are in the book but not in the library, currentTime() and randomNumber()

79. By John Hoare

Fixed setName and setPassword functions

78. By John Hoare

Added a way to hard-code the connection into the connect() functions

77. By John Hoare

Fixed a bug in the GrayPicture constructor which set image_data to null right after mallocing it

76. By John Hoare

Fixed a problem where the default constructor didn't set image_data to NULL.

75. By John Hoare

Forgot to make MyroIO.h install

Branch metadata

Branch format:
Branch format 6
Repository format:
Bazaar pack repository format 1 (needs bzr 0.92)
This branch contains Public information 
Everyone can see this information.

Subscribers