pidgin/plugins/crazychat/sharky.h

Wed, 03 Apr 2013 01:25:40 +0200

author
Andrew Victor <andrew.victor@mxit.com>
date
Wed, 03 Apr 2013 01:25:40 +0200
branch
release-2.x.y
changeset 33847
7cd76ebbe8d1
parent 15435
4b933b06d75e
child 16238
33bf2fd32108
child 18068
b6554e3c8224
child 20478
46933dc62880
permissions
-rw-r--r--

MXit: Refactor dump_bytes() not to use a C99-style variable length array.

* Removes warning when compiling for InstantBird:
protocol.c:103:1: warning: ISO C90 forbids variable length array ‘request’ [-Wvla]

* Characters > 0x7E should also be treated as non-printable.

#include "glm.h"

struct shark_struct{
	GLint* faces, *lids, *fins, *eyes, *iris, *pupil;
	GLMmodel** m_faces, **m_lids, **m_fins, **m_eyes, **m_iris, **m_pupil;
	int curr_face, curr_fin, curr_left_lid, curr_right_lid, curr_right_eye, curr_left_eye, curr_pupil, eye_count;
	float curr_fin_angle;
};

void init_shark(FACE f);

mercurial