params[1] = lp_build_const_string(gallivm, msg);
if (length == 1) {
- util_strncat(format, type_fmt, sizeof(format) - strlen(format) - 1);
+ strncat(format, type_fmt, sizeof(format) - strlen(format) - 1);
params[2] = value;
} else {
for (i = 0; i < length; ++i) {
LLVMValueRef param;
- util_strncat(format, type_fmt, sizeof(format) - strlen(format) - 1);
+ strncat(format, type_fmt, sizeof(format) - strlen(format) - 1);
param = LLVMBuildExtractElement(builder, value, lp_build_const_int32(gallivm, i), "");
if (type_kind == LLVMIntegerTypeKind &&
LLVMGetIntTypeWidth(type_ref) < sizeof(int) * 8) {
}
}
- util_strncat(format, "\n", sizeof(format) - strlen(format) - 1);
+ strncat(format, "\n", sizeof(format) - strlen(format) - 1);
params[0] = lp_build_const_string(gallivm, format);
return lp_build_print_args(gallivm, 2 + length, params);
while (names->name) {
if ((names->value & value) == names->value) {
if (!first)
- util_strncat(output, "|", sizeof(output) - strlen(output) - 1);
+ strncat(output, "|", sizeof(output) - strlen(output) - 1);
else
first = 0;
- util_strncat(output, names->name, sizeof(output) - strlen(output) - 1);
+ strncat(output, names->name, sizeof(output) - strlen(output) - 1);
output[sizeof(output) - 1] = '\0';
value &= ~names->value;
}
if (value) {
if (!first)
- util_strncat(output, "|", sizeof(output) - strlen(output) - 1);
+ strncat(output, "|", sizeof(output) - strlen(output) - 1);
else
first = 0;
util_snprintf(rest, sizeof(rest), "0x%08lx", value);
- util_strncat(output, rest, sizeof(output) - strlen(output) - 1);
+ strncat(output, rest, sizeof(output) - strlen(output) - 1);
output[sizeof(output) - 1] = '\0';
}
return util_vsnprintf(*ret, r + 1, format, ap);
}
+#define strncat util_strncat
static inline char*
util_strncat(char *dst, const char *src, size_t n)
{
#define util_sprintf sprintf
#define util_strcmp strcmp
#define util_strncmp strncmp
-#define util_strncat strncat
#define util_strcasecmp strcasecmp
#endif