mirror of
https://github.com/UberGames/rpgxEF.git
synced 2024-11-10 07:11:34 +00:00
Fixed warnings
This commit is contained in:
parent
872ac60650
commit
1c737274c2
4 changed files with 220 additions and 18 deletions
|
@ -508,7 +508,6 @@ BotChooseWeapon
|
|||
==================
|
||||
*/
|
||||
void BotChooseWeapon(bot_state_t *bs) {
|
||||
int newweaponnum;
|
||||
|
||||
if (bs->cur_ps.weaponstate == WEAPON_RAISING || bs->cur_ps.weaponstate == WEAPON_DROPPING)
|
||||
{
|
||||
|
@ -516,7 +515,7 @@ void BotChooseWeapon(bot_state_t *bs) {
|
|||
}
|
||||
else
|
||||
{
|
||||
newweaponnum = trap_BotChooseBestFightWeapon(bs->ws, bs->inventory, BotUseMeleeWeapon(bs));
|
||||
int newweaponnum = trap_BotChooseBestFightWeapon(bs->ws, bs->inventory, BotUseMeleeWeapon(bs));
|
||||
if (bs->weaponnum != newweaponnum)
|
||||
{
|
||||
bs->weaponchange_time = trap_AAS_Time();
|
||||
|
@ -1613,8 +1612,8 @@ BotAimAtEnemy
|
|||
==================
|
||||
*/
|
||||
void BotAimAtEnemy(bot_state_t *bs) {
|
||||
int i, enemyvisible;
|
||||
float dist, f, aim_skill, aim_accuracy, speed, reactiontime;
|
||||
int enemyvisible;
|
||||
float dist, aim_skill, aim_accuracy;
|
||||
vec3_t dir, bestorigin, end, start, groundtarget, cmdmove, enemyvelocity;
|
||||
vec3_t mins = {-4,-4,-4}, maxs = {4, 4, 4};
|
||||
weaponinfo_t wi;
|
||||
|
@ -1634,7 +1633,7 @@ void BotAimAtEnemy(bot_state_t *bs) {
|
|||
if (aim_skill > 0.95)
|
||||
{
|
||||
//don't aim too early
|
||||
reactiontime = 0.5;
|
||||
float reactiontime = 0.5;
|
||||
if (bs->enemysight_time > trap_AAS_Time() - reactiontime) return;
|
||||
if (bs->teleport_time > trap_AAS_Time() - reactiontime) return;
|
||||
}
|
||||
|
@ -1766,7 +1765,7 @@ void BotAimAtEnemy(bot_state_t *bs) {
|
|||
VectorSubtract(entinfo.origin, entinfo.lastvisorigin, dir);
|
||||
dir[2] = 0;
|
||||
//
|
||||
speed = VectorNormalize(dir) / entinfo.update_time;
|
||||
float speed = VectorNormalize(dir) / entinfo.update_time;
|
||||
//botimport.Print(PRT_MESSAGE, "speed = %f, wi->speed = %f\n", speed, wi->speed);
|
||||
//best spot to aim at
|
||||
VectorMA(entinfo.origin, (dist / wi.speed) * speed, dir, bestorigin);
|
||||
|
@ -1852,6 +1851,7 @@ void BotAimAtEnemy(bot_state_t *bs) {
|
|||
// kef -- fixme. i'm guessing this is listing all of the instant-hit weapons?
|
||||
if (wi.number == WP_5 ||
|
||||
wi.number == WP_1) {
|
||||
float f;
|
||||
//distance towards the enemy
|
||||
dist = VectorLength(dir);
|
||||
if (dist > 150) dist = 150;
|
||||
|
@ -1860,6 +1860,8 @@ void BotAimAtEnemy(bot_state_t *bs) {
|
|||
}
|
||||
//add some random stuff to the aim direction depending on the aim accuracy
|
||||
if (aim_accuracy < 0.8) {
|
||||
int i;
|
||||
|
||||
VectorNormalize(dir);
|
||||
for (i = 0; i < 3; i++) dir[i] += 0.3 * crandom() * (1 - aim_accuracy);
|
||||
}
|
||||
|
@ -1890,7 +1892,7 @@ BotCheckAttack
|
|||
==================
|
||||
*/
|
||||
void BotCheckAttack(bot_state_t *bs) {
|
||||
float points, reactiontime, fov, firethrottle;
|
||||
float reactiontime, fov, firethrottle;
|
||||
bsp_trace_t bsptrace;
|
||||
//float selfpreservation;
|
||||
vec3_t forward, right, start, end, dir, angles;
|
||||
|
@ -1960,7 +1962,7 @@ void BotCheckAttack(bot_state_t *bs) {
|
|||
//if the projectile does a radial damage
|
||||
if (wi.proj.damagetype & DAMAGETYPE_RADIAL) {
|
||||
if (trace.fraction * 1000 < wi.proj.radius) {
|
||||
points = (wi.proj.damage - 0.5 * trace.fraction * 1000) * 0.5;
|
||||
float points = (wi.proj.damage - 0.5 * trace.fraction * 1000) * 0.5;
|
||||
if (points > 0) {
|
||||
// selfpreservation = trap_Characteristic_BFloat(bs->character, CHARACTERISTIC_SELFPRESERVATION, 0, 1);
|
||||
// if (random() < selfpreservation) return;
|
||||
|
@ -2008,8 +2010,6 @@ BotMapScripts
|
|||
void BotMapScripts(bot_state_t *bs) {
|
||||
char info[1024];
|
||||
char mapname[128];
|
||||
int i, shootbutton;
|
||||
float aim_accuracy;
|
||||
aas_entityinfo_t entinfo;
|
||||
vec3_t dir;
|
||||
|
||||
|
@ -2019,6 +2019,8 @@ void BotMapScripts(bot_state_t *bs) {
|
|||
mapname[sizeof(mapname)-1] = '\0';
|
||||
|
||||
if (!Q_stricmp(mapname, "q3tourney6")) {
|
||||
int shootbutton = qfalse;
|
||||
int i ;
|
||||
vec3_t mins = {700, 204, 672}, maxs = {964, 468, 680};
|
||||
vec3_t buttonorg = {304, 352, 920};
|
||||
//NOTE: NEVER use the func_bobbing in q3tourney6
|
||||
|
@ -2031,7 +2033,7 @@ void BotMapScripts(bot_state_t *bs) {
|
|||
}
|
||||
}
|
||||
}
|
||||
shootbutton = qfalse;
|
||||
|
||||
//if an enemy is below this bounding box then shoot the button
|
||||
for (i = 0; i < maxclients && i < MAX_CLIENTS; i++) {
|
||||
|
||||
|
@ -2059,10 +2061,11 @@ void BotMapScripts(bot_state_t *bs) {
|
|||
}
|
||||
}
|
||||
if (shootbutton) {
|
||||
float aim_accuracy = 1;
|
||||
|
||||
bs->flags |= BFL_IDEALVIEWSET;
|
||||
VectorSubtract(buttonorg, bs->eye, dir);
|
||||
vectoangles(dir, bs->ideal_viewangles);
|
||||
aim_accuracy = 1;
|
||||
bs->ideal_viewangles[PITCH] += 8 * crandom() * (1 - aim_accuracy);
|
||||
bs->ideal_viewangles[PITCH] = AngleMod(bs->ideal_viewangles[PITCH]);
|
||||
bs->ideal_viewangles[YAW] += 8 * crandom() * (1 - aim_accuracy);
|
||||
|
@ -2226,9 +2229,9 @@ which buttons to activate etc.
|
|||
==================
|
||||
*/
|
||||
void BotAIBlocked(bot_state_t *bs, bot_moveresult_t *moveresult, int activate) {
|
||||
int movetype, ent, i, areas[10], numareas, modelindex;
|
||||
int movetype, areas[10], modelindex;
|
||||
char classname[128], model[128];
|
||||
float lip, dist, health, angle;
|
||||
float lip, health, angle;
|
||||
vec3_t hordir, size, start, end, mins, maxs, sideward, angles;
|
||||
vec3_t movedir, origin, goalorigin, bboxmins, bboxmaxs;
|
||||
vec3_t up = {0, 0, 1}, extramins = {1, 1, 1}, extramaxs = {-1, -1, -1};
|
||||
|
@ -2253,7 +2256,7 @@ void BotAIBlocked(bot_state_t *bs, bot_moveresult_t *moveresult, int activate) {
|
|||
if (entinfo.modelindex > 0 && entinfo.modelindex <= max_bspmodelindex && activate) {
|
||||
//find the bsp entity which should be activated in order to remove
|
||||
//the blocking entity
|
||||
ent = BotEntityToActivate(entinfo.number);
|
||||
int ent = BotEntityToActivate(entinfo.number);
|
||||
if (!ent) {
|
||||
strcpy(classname, "");
|
||||
#ifdef OBSTACLEDEBUG
|
||||
|
@ -2268,6 +2271,8 @@ void BotAIBlocked(bot_state_t *bs, bot_moveresult_t *moveresult, int activate) {
|
|||
#endif
|
||||
}
|
||||
if (!strcmp(classname, "func_button")) {
|
||||
float dist;
|
||||
|
||||
//create a bot goal towards the button
|
||||
trap_AAS_ValueForBSPEpairKey(ent, "model", model, sizeof(model));
|
||||
modelindex = atoi(model+1);
|
||||
|
@ -2310,6 +2315,8 @@ void BotAIBlocked(bot_state_t *bs, bot_moveresult_t *moveresult, int activate) {
|
|||
return;
|
||||
}
|
||||
else {
|
||||
int i, numareas;
|
||||
|
||||
//add bounding box size to the dist
|
||||
trap_AAS_PresenceTypeBoundingBox(PRESENCE_CROUCH, bboxmins, bboxmaxs);
|
||||
for (i = 0; i < 3; i++) {
|
||||
|
|
|
@ -225,7 +225,6 @@ BotTestSolid
|
|||
==================
|
||||
*/
|
||||
void BotTestSolid(vec3_t origin) {
|
||||
int areanum;
|
||||
|
||||
if( !bot_setupComplete ) {
|
||||
return;
|
||||
|
@ -233,6 +232,8 @@ void BotTestSolid(vec3_t origin) {
|
|||
|
||||
trap_Cvar_Update(&bot_testsolid);
|
||||
if (bot_testsolid.integer) {
|
||||
int areanum;
|
||||
|
||||
if (!trap_AAS_Initialized()) return;
|
||||
areanum = BotPointAreaNum(origin);
|
||||
if (areanum) BotAI_Print(PRT_MESSAGE, "\remtpy area");
|
||||
|
@ -1327,10 +1328,10 @@ BotAIShutdown
|
|||
*/
|
||||
int BotAIShutdown( int restart ) {
|
||||
|
||||
int i;
|
||||
|
||||
//if the game is restarted for a tournament
|
||||
if ( restart ) {
|
||||
int i;
|
||||
|
||||
//shutdown all the bots in the botlib
|
||||
for (i = 0; i < MAX_CLIENTS; i++) {
|
||||
if (botstates[i] && botstates[i]->inuse) {
|
||||
|
|
|
@ -45,6 +45,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{INT}" "+{INT}" "+{INT}" "+"}" {
|
||||
double a, b, c;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf }", &a, &b, &c);
|
||||
yyextra->data.vector3[0] = a;
|
||||
yyextra->data.vector3[1] = b;
|
||||
|
@ -56,6 +58,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
|
||||
"{"" "+{INT}" "+{INT}" "+{DOUBLE}" "+"}" {
|
||||
double a, b, c;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf }", &a, &b, &c);
|
||||
yyextra->data.vector3[0] = a;
|
||||
yyextra->data.vector3[1] = b;
|
||||
|
@ -66,6 +70,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{INT}" "+{DOUBLE}" "+{INT}" "+"}" {
|
||||
double a, b, c;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf }", &a, &b, &c);
|
||||
yyextra->data.vector3[0] = a;
|
||||
yyextra->data.vector3[1] = b;
|
||||
|
@ -76,6 +82,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{INT}" "+{DOUBLE}" "+{DOUBLE}" "+"}" {
|
||||
double a, b, c;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf }", &a, &b, &c);
|
||||
yyextra->data.vector3[0] = a;
|
||||
yyextra->data.vector3[1] = b;
|
||||
|
@ -86,6 +94,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{DOUBLE}" "+{INT}" "+{INT}" "+"}" {
|
||||
double a, b, c;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf }", &a, &b, &c);
|
||||
yyextra->data.vector3[0] = a;
|
||||
yyextra->data.vector3[1] = b;
|
||||
|
@ -96,6 +106,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{DOUBLE}" "+{INT}" "+{DOUBLE}" "+"}" {
|
||||
double a, b, c;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf }", &a, &b, &c);
|
||||
yyextra->data.vector3[0] = a;
|
||||
yyextra->data.vector3[1] = b;
|
||||
|
@ -106,6 +118,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{DOUBLE}" "+{DOUBLE}" "+{INT}" "+"}" {
|
||||
double a, b, c;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf }", &a, &b, &c);
|
||||
yyextra->data.vector3[0] = a;
|
||||
yyextra->data.vector3[1] = b;
|
||||
|
@ -116,6 +130,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{DOUBLE}" "+{DOUBLE}" "+{DOUBLE}" "+"}" {
|
||||
double a, b, c;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf }", &a, &b, &c);
|
||||
yyextra->data.vector3[0] = a;
|
||||
yyextra->data.vector3[1] = b;
|
||||
|
@ -126,6 +142,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{INT}" "*","" "+{INT}" "*","" "+{INT}" "+"}" {
|
||||
double a, b, c;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf }", &a, &b, &c);
|
||||
yyextra->data.vector3[0] = a;
|
||||
yyextra->data.vector3[1] = b;
|
||||
|
@ -137,6 +155,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
|
||||
"{"" "+{INT}" "*","" "+{INT}" "*","" "+{DOUBLE}" "+"}" {
|
||||
double a, b, c;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf }", &a, &b, &c);
|
||||
yyextra->data.vector3[0] = a;
|
||||
yyextra->data.vector3[1] = b;
|
||||
|
@ -147,6 +167,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{INT}" "*","" "+{DOUBLE}" "*","" "+{INT}" "+"}" {
|
||||
double a, b, c;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf }", &a, &b, &c);
|
||||
yyextra->data.vector3[0] = a;
|
||||
yyextra->data.vector3[1] = b;
|
||||
|
@ -157,6 +179,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{INT}" "*","" "+{DOUBLE}" "*","" "+{DOUBLE}" "+"}" {
|
||||
double a, b, c;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf }", &a, &b, &c);
|
||||
yyextra->data.vector3[0] = a;
|
||||
yyextra->data.vector3[1] = b;
|
||||
|
@ -167,6 +191,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{DOUBLE}" "*","" "+{INT}" "*","" "+{INT}" "+"}" {
|
||||
double a, b, c;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf }", &a, &b, &c);
|
||||
yyextra->data.vector3[0] = a;
|
||||
yyextra->data.vector3[1] = b;
|
||||
|
@ -177,6 +203,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{DOUBLE}" "*","" "+{INT}" "*","" "+{DOUBLE}" "+"}" {
|
||||
double a, b, c;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf }", &a, &b, &c);
|
||||
yyextra->data.vector3[0] = a;
|
||||
yyextra->data.vector3[1] = b;
|
||||
|
@ -187,6 +215,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{DOUBLE}" "*","" "+{DOUBLE}" "*","" "+{INT}" "+"}" {
|
||||
double a, b, c;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf }", &a, &b, &c);
|
||||
yyextra->data.vector3[0] = a;
|
||||
yyextra->data.vector3[1] = b;
|
||||
|
@ -197,6 +227,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{DOUBLE}" "*","" "+{DOUBLE}" "*","" "+{DOUBLE}" "+"}" {
|
||||
double a, b, c;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf }", &a, &b, &c);
|
||||
yyextra->data.vector3[0] = a;
|
||||
yyextra->data.vector3[1] = b;
|
||||
|
@ -207,6 +239,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{INT}" "+{INT}" "+{INT}" "+{INT}" "+"}" {
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -218,6 +252,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{INT}" "+{INT}" "+{INT}" "+{DOUBLE}" "+"}" {
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -229,6 +265,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{INT}" "+{INT}" "+{DOUBLE}" "+{INT}" "+"}" {
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -240,6 +278,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{INT}" "+{INT}" "+{DOUBLE}" "+{DOUBLE}" "+"}" {
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -251,6 +291,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{INT}" "+{DOUBLE}" "+{INT}" "+{INT}" "+"}" {
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -262,6 +304,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{INT}" "+{DOUBLE}" "+{INT}" "+{DOUBLE}" "+"}" {
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -273,6 +317,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{INT}" "+{DOUBLE}" "+{DOUBLE}" "+{INT}" "+"}" {
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -284,6 +330,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{INT}" "+{DOUBLE}" "+{DOUBLE}" "+{DOUBLE}" "+"}" {
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -295,6 +343,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{DOUBLE}" "+{INT}" "+{INT}" "+{INT}" "+"}" {
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -306,6 +356,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{DOUBLE}" "+{INT}" "+{INT}" "+{DOUBLE}" "+"}" {
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -317,6 +369,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{DOUBLE}" "+{INT}" "+{DOUBLE}" "+{INT}" "+"}" {
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -328,6 +382,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{DOUBLE}" "+{INT}" "+{DOUBLE}" "+{DOUBLE}" "+"}" {
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -339,6 +395,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{DOUBLE}" "+{DOUBLE}" "+{INT}" "+{INT}" "+"}" {
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -350,6 +408,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{DOUBLE}" "+{DOUBLE}" "+{INT}" "+{DOUBLE}" "+"}" {
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -361,6 +421,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{DOUBLE}" "+{DOUBLE}" "+{DOUBLE}" "+{INT}" "+"}" {
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -372,6 +434,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{DOUBLE}" "+{DOUBLE}" "+{DOUBLE}" "+{DOUBLE}" "+"}" {
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -383,6 +447,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{INT}" "*","" "+{INT}" "*","" "+{INT}" "*","" "+{INT}" "+"}" {
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf, %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -394,6 +460,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{INT}" "*","" "+{INT}" "*","" "+{INT}" "*","" "+{DOUBLE}" "+"}" {
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf, %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -405,6 +473,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{INT}" "*","" "+{INT}" "*","" "+{DOUBLE}" "*","" "+{INT}" "+"}" {
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf, %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -416,6 +486,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{INT}" "*","" "+{INT}" "*","" "+{DOUBLE}" "*","" "+{DOUBLE}" "+"}" {
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf, %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -427,6 +499,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{INT}" "*","" "+{DOUBLE}" "*","" "+{INT}" "*","" "+{INT}" "+"}" {
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf, %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -438,6 +512,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{INT}" "*","" "+{DOUBLE}" "*","" "+{INT}" "*","" "+{DOUBLE}" "+"}" {
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf, %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -449,6 +525,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{INT}" "*","" "+{DOUBLE}" "*","" "+{DOUBLE}" "*","" "+{INT}" "+"}" {
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf, %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -460,6 +538,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{INT}" "*","" "+{DOUBLE}" "*","" "+{DOUBLE}" "*","" "+{DOUBLE}" "+"}" {
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf, %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -471,6 +551,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{DOUBLE}" "*","" "+{INT}" "*","" "+{INT}" "*","" "+{INT}" "+"}" {
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf, %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -482,6 +564,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{DOUBLE}" "*","" "+{INT}" "*","" "+{INT}" "*","" "+{DOUBLE}" "+"}" {
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf, %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -493,6 +577,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{DOUBLE}" "*","" "+{INT}" "*","" "+{DOUBLE}" "*","" "+{INT}" "+"}" {
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf, %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -504,6 +590,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{DOUBLE}" "*","" "+{INT}" "*","" "+{DOUBLE}" "*","" "+{DOUBLE}" "+"}" {
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf, %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -515,6 +603,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{DOUBLE}" "*","" "+{DOUBLE}" "*","" "+{INT}" "*","" "+{INT}" "+"}" {
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf, %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -526,6 +616,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{DOUBLE}" "*","" "+{DOUBLE}" "*","" "+{INT}" "*","" "+{DOUBLE}" "+"}" {
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf, %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -537,6 +629,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{DOUBLE}" "*","" "+{DOUBLE}" "*","" "+{DOUBLE}" "*","" "+{INT}" "+"}" {
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf, %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -548,6 +642,8 @@ KEYWORD [a-zA-Z]+[a-zA-Z0-9]*
|
|||
}
|
||||
"{"" "+{DOUBLE}" "*","" "+{DOUBLE}" "*","" "+{DOUBLE}" "*","" "+{DOUBLE}" "+"}" {
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf, %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
|
|
@ -371,7 +371,9 @@ static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner );
|
|||
but its presence is necessary. */
|
||||
struct yy_trans_info
|
||||
{
|
||||
// cppcheck-suppress "unusedStructMember"
|
||||
flex_int32_t yy_verify;
|
||||
// cppcheck-suppress "unusedStructMember"
|
||||
flex_int32_t yy_nxt;
|
||||
};
|
||||
static yyconst flex_int16_t yy_accept[307] =
|
||||
|
@ -1059,6 +1061,8 @@ YY_RULE_SETUP
|
|||
#line 46 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf }", &a, &b, &c);
|
||||
yyextra->data.vector3[0] = a;
|
||||
yyextra->data.vector3[1] = b;
|
||||
|
@ -1073,6 +1077,8 @@ YY_RULE_SETUP
|
|||
#line 57 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf }", &a, &b, &c);
|
||||
yyextra->data.vector3[0] = a;
|
||||
yyextra->data.vector3[1] = b;
|
||||
|
@ -1087,6 +1093,8 @@ YY_RULE_SETUP
|
|||
#line 67 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf }", &a, &b, &c);
|
||||
yyextra->data.vector3[0] = a;
|
||||
yyextra->data.vector3[1] = b;
|
||||
|
@ -1101,6 +1109,8 @@ YY_RULE_SETUP
|
|||
#line 77 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf }", &a, &b, &c);
|
||||
yyextra->data.vector3[0] = a;
|
||||
yyextra->data.vector3[1] = b;
|
||||
|
@ -1115,6 +1125,8 @@ YY_RULE_SETUP
|
|||
#line 87 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf }", &a, &b, &c);
|
||||
yyextra->data.vector3[0] = a;
|
||||
yyextra->data.vector3[1] = b;
|
||||
|
@ -1129,6 +1141,8 @@ YY_RULE_SETUP
|
|||
#line 97 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf }", &a, &b, &c);
|
||||
yyextra->data.vector3[0] = a;
|
||||
yyextra->data.vector3[1] = b;
|
||||
|
@ -1143,6 +1157,8 @@ YY_RULE_SETUP
|
|||
#line 107 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf }", &a, &b, &c);
|
||||
yyextra->data.vector3[0] = a;
|
||||
yyextra->data.vector3[1] = b;
|
||||
|
@ -1157,6 +1173,8 @@ YY_RULE_SETUP
|
|||
#line 117 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf }", &a, &b, &c);
|
||||
yyextra->data.vector3[0] = a;
|
||||
yyextra->data.vector3[1] = b;
|
||||
|
@ -1171,6 +1189,8 @@ YY_RULE_SETUP
|
|||
#line 127 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf }", &a, &b, &c);
|
||||
yyextra->data.vector3[0] = a;
|
||||
yyextra->data.vector3[1] = b;
|
||||
|
@ -1185,6 +1205,8 @@ YY_RULE_SETUP
|
|||
#line 138 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf }", &a, &b, &c);
|
||||
yyextra->data.vector3[0] = a;
|
||||
yyextra->data.vector3[1] = b;
|
||||
|
@ -1199,6 +1221,8 @@ YY_RULE_SETUP
|
|||
#line 148 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf }", &a, &b, &c);
|
||||
yyextra->data.vector3[0] = a;
|
||||
yyextra->data.vector3[1] = b;
|
||||
|
@ -1213,6 +1237,8 @@ YY_RULE_SETUP
|
|||
#line 158 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf }", &a, &b, &c);
|
||||
yyextra->data.vector3[0] = a;
|
||||
yyextra->data.vector3[1] = b;
|
||||
|
@ -1227,6 +1253,8 @@ YY_RULE_SETUP
|
|||
#line 168 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf }", &a, &b, &c);
|
||||
yyextra->data.vector3[0] = a;
|
||||
yyextra->data.vector3[1] = b;
|
||||
|
@ -1241,6 +1269,8 @@ YY_RULE_SETUP
|
|||
#line 178 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf }", &a, &b, &c);
|
||||
yyextra->data.vector3[0] = a;
|
||||
yyextra->data.vector3[1] = b;
|
||||
|
@ -1255,6 +1285,8 @@ YY_RULE_SETUP
|
|||
#line 188 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf }", &a, &b, &c);
|
||||
yyextra->data.vector3[0] = a;
|
||||
yyextra->data.vector3[1] = b;
|
||||
|
@ -1269,6 +1301,8 @@ YY_RULE_SETUP
|
|||
#line 198 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf }", &a, &b, &c);
|
||||
yyextra->data.vector3[0] = a;
|
||||
yyextra->data.vector3[1] = b;
|
||||
|
@ -1283,6 +1317,8 @@ YY_RULE_SETUP
|
|||
#line 208 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -1298,6 +1334,8 @@ YY_RULE_SETUP
|
|||
#line 219 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -1313,6 +1351,8 @@ YY_RULE_SETUP
|
|||
#line 230 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -1328,6 +1368,8 @@ YY_RULE_SETUP
|
|||
#line 241 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -1343,6 +1385,8 @@ YY_RULE_SETUP
|
|||
#line 252 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -1358,6 +1402,8 @@ YY_RULE_SETUP
|
|||
#line 263 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -1373,6 +1419,8 @@ YY_RULE_SETUP
|
|||
#line 274 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -1388,6 +1436,8 @@ YY_RULE_SETUP
|
|||
#line 285 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -1403,6 +1453,8 @@ YY_RULE_SETUP
|
|||
#line 296 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -1418,6 +1470,8 @@ YY_RULE_SETUP
|
|||
#line 307 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -1433,6 +1487,8 @@ YY_RULE_SETUP
|
|||
#line 318 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -1448,6 +1504,8 @@ YY_RULE_SETUP
|
|||
#line 329 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -1463,6 +1521,8 @@ YY_RULE_SETUP
|
|||
#line 340 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -1478,6 +1538,8 @@ YY_RULE_SETUP
|
|||
#line 351 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -1493,6 +1555,8 @@ YY_RULE_SETUP
|
|||
#line 362 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -1508,6 +1572,8 @@ YY_RULE_SETUP
|
|||
#line 373 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf %lf %lf %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -1523,6 +1589,8 @@ YY_RULE_SETUP
|
|||
#line 384 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf, %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -1538,6 +1606,8 @@ YY_RULE_SETUP
|
|||
#line 395 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf, %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -1553,6 +1623,8 @@ YY_RULE_SETUP
|
|||
#line 406 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf, %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -1568,6 +1640,8 @@ YY_RULE_SETUP
|
|||
#line 417 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf, %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -1583,6 +1657,8 @@ YY_RULE_SETUP
|
|||
#line 428 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf, %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -1598,6 +1674,8 @@ YY_RULE_SETUP
|
|||
#line 439 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf, %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -1613,6 +1691,8 @@ YY_RULE_SETUP
|
|||
#line 450 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf, %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -1628,6 +1708,8 @@ YY_RULE_SETUP
|
|||
#line 461 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf, %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -1643,6 +1725,8 @@ YY_RULE_SETUP
|
|||
#line 472 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf, %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -1658,6 +1742,8 @@ YY_RULE_SETUP
|
|||
#line 483 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf, %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -1673,6 +1759,8 @@ YY_RULE_SETUP
|
|||
#line 494 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf, %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -1688,6 +1776,8 @@ YY_RULE_SETUP
|
|||
#line 505 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf, %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -1703,6 +1793,8 @@ YY_RULE_SETUP
|
|||
#line 516 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf, %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -1718,6 +1810,8 @@ YY_RULE_SETUP
|
|||
#line 527 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf, %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -1733,6 +1827,8 @@ YY_RULE_SETUP
|
|||
#line 538 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf, %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
@ -1748,6 +1844,8 @@ YY_RULE_SETUP
|
|||
#line 549 "bg_lex.lex"
|
||||
{
|
||||
double a, b, c, d;
|
||||
|
||||
// cppcheck-suppress "invalidscanf"
|
||||
sscanf(yytext, "{ %lf, %lf, %lf, %lf }", &a, &b, &c, &d);
|
||||
yyextra->data.vector4[0] = a;
|
||||
yyextra->data.vector4[1] = b;
|
||||
|
|
Loading…
Reference in a new issue