size_t strlen_m_term(const char *s);
size_t strlen_m(const char *s);
char *alpha_strcpy(char *dest, const char *src, const char *other_safe_chars, size_t maxlength);
-void string_replace_w(char *s, char oldc, char newc);
+void string_replace_m(char *s, char oldc, char newc);
bool strcsequal_w(const char *s1,const char *s2);
bool strequal_w(const char *s1, const char *s2);
int strncasecmp_m(const char *s1, const char *s2, size_t n);
return true;
}
-static bool test_string_replace_w(struct torture_context *tctx)
+static bool test_string_replace_m(struct torture_context *tctx)
{
char data[6] = "bla";
- string_replace_w(data, 'b', 'c');
+ string_replace_m(data, 'b', 'c');
torture_assert_str_equal(tctx, data, "cla", "first char replaced");
memcpy(data, "bab", 4);
- string_replace_w(data, 'b', 'c');
+ string_replace_m(data, 'b', 'c');
torture_assert_str_equal(tctx, data, "cac", "other chars replaced");
memcpy(data, "bba", 4);
- string_replace_w(data, 'b', 'c');
+ string_replace_m(data, 'b', 'c');
torture_assert_str_equal(tctx, data, "cca", "other chars replaced");
memcpy(data, "blala", 6);
- string_replace_w(data, 'o', 'c');
+ string_replace_m(data, 'o', 'c');
torture_assert_str_equal(tctx, data, "blala", "no chars replaced");
- string_replace_w(NULL, 'b', 'c');
+ string_replace_m(NULL, 'b', 'c');
return true;
}
torture_suite_add_simple_test(suite, "strcasecmp_m", test_strcasecmp_m);
torture_suite_add_simple_test(suite, "strequal_w", test_strequal_w);
torture_suite_add_simple_test(suite, "strcsequal_w", test_strcsequal_w);
- torture_suite_add_simple_test(suite, "string_replace_w", test_string_replace_w);
+ torture_suite_add_simple_test(suite, "string_replace_m", test_string_replace_m);
torture_suite_add_simple_test(suite, "strncasecmp_m", test_strncasecmp_m);
torture_suite_add_simple_test(suite, "next_token", test_next_token);
torture_suite_add_simple_test(suite, "next_token_null", test_next_token_null);
# perhaps by some perl scripts run from config.status ?
#
$(gen_ndrsrcdir)/misc.h: idl
-$(ndrsrcdir)/libndr.h: $(ndrsrcdir)/libndr_proto.h $(gen_ndrsrcdir)/misc.h
+$(ndrsrcdir)/libndr.h: $(gen_ndrsrcdir)/misc.h
$(dcerpcsrcdir)/dcerpc.h: $(dcerpcsrcdir)/dcerpc_proto.h
$(authsrcdir)/credentials/credentials.h: $(authsrcdir)/credentials/credentials_proto.h
$(libclisrcdir)/nbt/libnbt.h: $(libclisrcdir)/nbt/nbt_proto.h
-$(libcharsetsrcdir)/charset.h: $(libcharsetsrcdir)/charset_proto.h
include/includes.h: \
include/config.h \
- $(libcharsetsrcdir)/charset.h \
$(gen_ndrsrcdir)/misc.h
proto::