code cleanup: white space, spelling & ';;' end of lines.
This commit is contained in:
@@ -109,7 +109,7 @@ typedef struct RPCReceive {
|
||||
: socket(socket_), archive_stream(NULL), archive(NULL)
|
||||
{
|
||||
/* read head with fixed size */
|
||||
vector<char> header(8);
|
||||
vector<char> header(8);
|
||||
size_t len = boost::asio::read(socket, boost::asio::buffer(header));
|
||||
|
||||
/* verify if we got something */
|
||||
@@ -170,7 +170,7 @@ public:
|
||||
: listen_socket(io_service), collect_servers(false)
|
||||
{
|
||||
/* setup listen socket */
|
||||
listen_endpoint.address(boost::asio::ip::address_v4::any());
|
||||
listen_endpoint.address(boost::asio::ip::address_v4::any());
|
||||
listen_endpoint.port(DISCOVER_PORT);
|
||||
|
||||
listen_socket.open(listen_endpoint.protocol());
|
||||
@@ -178,7 +178,7 @@ public:
|
||||
boost::asio::socket_base::reuse_address option(true);
|
||||
listen_socket.set_option(option);
|
||||
|
||||
listen_socket.bind(listen_endpoint);
|
||||
listen_socket.bind(listen_endpoint);
|
||||
|
||||
/* setup receive callback */
|
||||
async_receive();
|
||||
|
@@ -190,7 +190,7 @@ float noise_wave(string wave, float a)
|
||||
float result = 0.0;
|
||||
|
||||
if(wave == "Sine") {
|
||||
result = 0.5 + 0.5*sin(a);
|
||||
result = 0.5 + 0.5*sin(a);
|
||||
}
|
||||
else if(wave == "Saw") {
|
||||
float b = 2*M_PI;
|
||||
|
@@ -66,7 +66,7 @@ public:
|
||||
void *renderstate, void *val);
|
||||
bool has_userdata(ustring name, TypeDesc type, void *renderstate);
|
||||
|
||||
void *get_pointcloud_attr_query(ustring *attr_names,
|
||||
void *get_pointcloud_attr_query(ustring *attr_names,
|
||||
TypeDesc *attr_types, int nattrs);
|
||||
int pointcloud(ustring filename, const OSL::Vec3 ¢er, float radius,
|
||||
int max_points, void *attr_query, void **attr_outdata);
|
||||
|
@@ -191,7 +191,7 @@ __device float noise_basis_hard(float3 p, NodeNoiseBasis basis, int hard)
|
||||
__device float noise_wave(NodeWaveType wave, float a)
|
||||
{
|
||||
if(wave == NODE_WAVE_SINE) {
|
||||
return 0.5f + 0.5f*sin(a);
|
||||
return 0.5f + 0.5f*sin(a);
|
||||
}
|
||||
else if(wave == NODE_WAVE_SAW) {
|
||||
float b = 2.0f*M_PI_F;
|
||||
|
Reference in New Issue
Block a user