} \
if (NAME != 'z') { \
if (token != ',' && token != ' ') { \
- error(ERROR_PARSE, "%s:%d invalid constant initializer element %c for vector (missing spaces, or comma delimited list?)\n", NAME, file->name, file->line); \
+ error(ERROR_PARSE, "%s:%d invalid constant initializer element %c for vector (missing spaces, or comma delimited list?)\n", file->name, file->line, NAME); \
} \
} else if (token != '}') { \
error(ERROR_PARSE, "%s:%d Expected `}` on end of constant initialization for vector\n", file->name, file->line); \
case TOKEN_ENTITY:
case TOKEN_FLOAT:
-
if (!isdigit(token))
error(ERROR_PARSE, "%s:%d Expected numeric constant for float constant\n");
break;
--- /dev/null
+vector vec1 = { -0, +0, 0 };
+vector vec2 = { .0, .0, .0 };
+vector vec3 = { -.0, +.0, +0.1 };
+vector vec4 = { 1.1, 2.2, 3.3 };
+vector vec5 = { 2., 3., 4. };
+vector vec6 = { -2., +3., -4. };