summaryrefslogtreecommitdiff
path: root/doc/ja
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-04-01 21:08:52 +0200
committerSébastien Helleu <flashcode@flashtux.org>2024-04-01 21:08:52 +0200
commit965beb37dede0ac0f6e1be961acfbc15ee7e46cf (patch)
tree428ff5cb61b17b8de339316e65ed4a70aea10dca /doc/ja
parenta7c92e2d2471c1442c65e5ea95a7dce8061f5784 (diff)
downloadweechat-965beb37dede0ac0f6e1be961acfbc15ee7e46cf.zip
core: fix print of pointer values
Diffstat (limited to 'doc/ja')
-rw-r--r--doc/ja/weechat_plugin_api.ja.adoc8
1 files changed, 3 insertions, 5 deletions
diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc
index 2482d38e4..2f29ca7ce 100644
--- a/doc/ja/weechat_plugin_api.ja.adoc
+++ b/doc/ja/weechat_plugin_api.ja.adoc
@@ -5397,7 +5397,7 @@ C 言語での使用例:
// TRANSLATION MISSING
[source,c]
----
-weechat_printf (NULL, "user data of item: 0x%lx", weechat_list_user_data (item));
+weechat_printf (NULL, "user data of item: %p", weechat_list_user_data (item));
----
[NOTE]
@@ -18144,8 +18144,7 @@ C 言語での使用例:
[source,c]
----
-weechat_printf (NULL, "pointer = 0x%lx",
- weechat_infolist_pointer (infolist, "my_pointer"));
+weechat_printf (NULL, "pointer = %p", weechat_infolist_pointer (infolist, "my_pointer"));
----
スクリプト (Python) での使用例:
@@ -18187,8 +18186,7 @@ C 言語での使用例:
----
int size;
void *pointer = weechat_infolist_buffer (infolist, "my_buffer", &size);
-weechat_printf (NULL, "buffer = 0x%lx, size = %d",
- pointer, size);
+weechat_printf (NULL, "buffer = %p, size = %d", pointer, size);
----
[NOTE]