From d171c1682c28c7b750deefffa6d4eba533dff8ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Fri, 14 Jun 2024 22:14:28 +0200 Subject: [PATCH] doc/api: replace format "%lx" by "%p" in examples --- doc/en/weechat_plugin_api.en.adoc | 8 ++++---- doc/fr/weechat_plugin_api.fr.adoc | 8 ++++---- doc/it/weechat_plugin_api.it.adoc | 8 ++++---- doc/ja/weechat_plugin_api.ja.adoc | 8 ++++---- doc/sr/weechat_plugin_api.sr.adoc | 8 ++++---- 5 files changed, 20 insertions(+), 20 deletions(-) diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc index 353ea326c..8c89e0e07 100644 --- a/doc/en/weechat_plugin_api.en.adoc +++ b/doc/en/weechat_plugin_api.en.adoc @@ -14789,7 +14789,7 @@ C example: [source,c] ---- -weechat_printf (NULL, "plugin pointer of my buffer: %lx", +weechat_printf (NULL, "plugin pointer of my buffer: %p", weechat_buffer_get_pointer (my_buffer, "plugin")); ---- @@ -15265,7 +15265,7 @@ C example: [source,c] ---- weechat_printf (NULL, - "window displaying core buffer: %lx", + "window displaying core buffer: %p", weechat_window_search_with_buffer (weechat_buffer_search_main ())); ---- @@ -15402,7 +15402,7 @@ C example: [source,c] ---- weechat_printf (NULL, - "buffer displayed in current window: %lx", + "buffer displayed in current window: %p", weechat_window_get_pointer (weechat_current_window (), "buffer")); ---- @@ -19270,7 +19270,7 @@ C example: ---- struct t_hdata *hdata = weechat_hdata_get ("buffer"); struct t_gui_buffer *buffer = weechat_buffer_search_main (); -weechat_printf (NULL, "lines = %lx", weechat_hdata_pointer (hdata, buffer, "lines")); +weechat_printf (NULL, "lines = %p", weechat_hdata_pointer (hdata, buffer, "lines")); ---- Script (Python): diff --git a/doc/fr/weechat_plugin_api.fr.adoc b/doc/fr/weechat_plugin_api.fr.adoc index 3d401eca7..fffdbc93a 100644 --- a/doc/fr/weechat_plugin_api.fr.adoc +++ b/doc/fr/weechat_plugin_api.fr.adoc @@ -15106,7 +15106,7 @@ Exemple en C : [source,c] ---- -weechat_printf (NULL, "pointeur vers l'extension de mon tampon : %lx", +weechat_printf (NULL, "pointeur vers l'extension de mon tampon : %p", weechat_buffer_get_pointer (mon_tampon, "plugin")); ---- @@ -15597,7 +15597,7 @@ Exemple en C : [source,c] ---- weechat_printf (NULL, - "fenêtre affichant le tampon core : %lx", + "fenêtre affichant le tampon core : %p", weechat_window_search_with_buffer (weechat_buffer_search_main ())); ---- @@ -15742,7 +15742,7 @@ Exemple en C : [source,c] ---- weechat_printf (NULL, - "tampon affiché dans la fenêtre courante : %lx", + "tampon affiché dans la fenêtre courante : %p", weechat_window_get_pointer (weechat_current_window (), "buffer")); ---- @@ -19673,7 +19673,7 @@ Exemple en C : ---- struct t_hdata *hdata = weechat_hdata_get ("buffer"); struct t_gui_buffer *buffer = weechat_buffer_search_main (); -weechat_printf (NULL, "lines = %lx", weechat_hdata_pointer (hdata, buffer, "lines")); +weechat_printf (NULL, "lines = %p", weechat_hdata_pointer (hdata, buffer, "lines")); ---- Script (Python) : diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc index 3e713489c..32620336b 100644 --- a/doc/it/weechat_plugin_api.it.adoc +++ b/doc/it/weechat_plugin_api.it.adoc @@ -15502,7 +15502,7 @@ Esempio in C: [source,c] ---- -weechat_printf (NULL, "plugin pointer of my buffer: %lx", +weechat_printf (NULL, "plugin pointer of my buffer: %p", weechat_buffer_get_pointer (my_buffer, "plugin")); ---- @@ -16019,7 +16019,7 @@ Esempio in C: [source,c] ---- weechat_printf (NULL, - "window displaying core buffer: %lx", + "window displaying core buffer: %p", weechat_window_search_with_buffer (weechat_buffer_search_main ())); ---- @@ -16159,7 +16159,7 @@ Esempio in C: [source,c] ---- weechat_printf (NULL, - "buffer displayed in current window: %lx", + "buffer displayed in current window: %p", weechat_window_get_pointer (weechat_current_window (), "buffer")); ---- @@ -20175,7 +20175,7 @@ Esempio in C: ---- struct t_hdata *hdata = weechat_hdata_get ("buffer"); struct t_gui_buffer *buffer = weechat_buffer_search_main (); -weechat_printf (NULL, "lines = %lx", weechat_hdata_pointer (hdata, buffer, "lines")); +weechat_printf (NULL, "lines = %p", weechat_hdata_pointer (hdata, buffer, "lines")); ---- Script (Python): diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc index 779689848..75273bf1f 100644 --- a/doc/ja/weechat_plugin_api.ja.adoc +++ b/doc/ja/weechat_plugin_api.ja.adoc @@ -15034,7 +15034,7 @@ C 言語での使用例: [source,c] ---- -weechat_printf (NULL, "plugin pointer of my buffer: %lx", +weechat_printf (NULL, "plugin pointer of my buffer: %p", weechat_buffer_get_pointer (my_buffer, "plugin")); ---- @@ -15517,7 +15517,7 @@ C 言語での使用例: [source,c] ---- weechat_printf (NULL, - "window displaying core buffer: %lx", + "window displaying core buffer: %p", weechat_window_search_with_buffer (weechat_buffer_search_main ())); ---- @@ -15654,7 +15654,7 @@ C 言語での使用例: [source,c] ---- weechat_printf (NULL, - "buffer displayed in current window: %lx", + "buffer displayed in current window: %p", weechat_window_get_pointer (weechat_current_window (), "buffer")); ---- @@ -19554,7 +19554,7 @@ C 言語での使用例: ---- struct t_hdata *hdata = weechat_hdata_get ("buffer"); struct t_gui_buffer *buffer = weechat_buffer_search_main (); -weechat_printf (NULL, "lines = %lx", weechat_hdata_pointer (hdata, buffer, "lines")); +weechat_printf (NULL, "lines = %p", weechat_hdata_pointer (hdata, buffer, "lines")); ---- スクリプト (Python) での使用例: diff --git a/doc/sr/weechat_plugin_api.sr.adoc b/doc/sr/weechat_plugin_api.sr.adoc index bc0ac8f93..b661d923d 100644 --- a/doc/sr/weechat_plugin_api.sr.adoc +++ b/doc/sr/weechat_plugin_api.sr.adoc @@ -14374,7 +14374,7 @@ C пример: [source,c] ---- -weechat_printf (NULL, "показивач на додатак мог бафера: %lx", +weechat_printf (NULL, "показивач на додатак мог бафера: %p", weechat_buffer_get_pointer (my_buffer, "plugin")); ---- @@ -14850,7 +14850,7 @@ C пример: [source,c] ---- weechat_printf (NULL, - "прозор који приказује core бафер: %lx", + "прозор који приказује core бафер: %p", weechat_window_search_with_buffer (weechat_buffer_search_main ())); ---- @@ -14983,7 +14983,7 @@ C пример: [source,c] ---- weechat_printf (NULL, - "бафер који се приказује у текућем прозору: %lx", + "бафер који се приказује у текућем прозору: %p", weechat_window_get_pointer (weechat_current_window (), "buffer")); ---- @@ -18759,7 +18759,7 @@ C пример: ---- struct t_hdata *hdata = weechat_hdata_get ("buffer"); struct t_gui_buffer *buffer = weechat_buffer_search_main (); -weechat_printf (NULL, "lines = %lx", weechat_hdata_pointer (hdata, buffer, "lines")); +weechat_printf (NULL, "lines = %p", weechat_hdata_pointer (hdata, buffer, "lines")); ---- Скрипта (Python):