comparison src/proto.h @ 31287:fa309d9af73c v9.0.0977

patch 9.0.0977: it is not easy to see what client-server commands are doing Commit: https://github.com/vim/vim/commit/4c5678ff0c376661d4a8183a5a074a1203413b9d Author: Bram Moolenaar <Bram@vim.org> Date: Wed Nov 30 18:12:19 2022 +0000 patch 9.0.0977: it is not easy to see what client-server commands are doing Problem: It is not easy to see what client-server commands are doing. Solution: Add channel log messages if ch_log() is available. Move the channel logging and make it available with the +eval feature.
author Bram Moolenaar <Bram@vim.org>
date Wed, 30 Nov 2022 19:15:10 +0100
parents 71137f73c94d
children 4f1e70a709bb
comparison
equal deleted inserted replaced
31286:33c4af586833 31287:fa309d9af73c
102 # include "indent.pro" 102 # include "indent.pro"
103 # include "insexpand.pro" 103 # include "insexpand.pro"
104 # include "json.pro" 104 # include "json.pro"
105 # include "list.pro" 105 # include "list.pro"
106 # include "locale.pro" 106 # include "locale.pro"
107 # include "logfile.pro"
107 # include "blob.pro" 108 # include "blob.pro"
108 # include "main.pro" 109 # include "main.pro"
109 # include "map.pro" 110 # include "map.pro"
110 # include "mark.pro" 111 # include "mark.pro"
111 # include "match.pro" 112 # include "match.pro"
261 # endif 262 # endif
262 # ifdef FEAT_JOB_CHANNEL 263 # ifdef FEAT_JOB_CHANNEL
263 # include "job.pro" 264 # include "job.pro"
264 # include "channel.pro" 265 # include "channel.pro"
265 266
266 // Not generated automatically, to add extra attribute. 267 // Not generated automatically so that we can add an extra attribute.
267 void ch_log(channel_T *ch, const char *fmt, ...) ATTRIBUTE_FORMAT_PRINTF(2, 3); 268 void ch_log(channel_T *ch, const char *fmt, ...) ATTRIBUTE_FORMAT_PRINTF(2, 3);
269 void ch_error(channel_T *ch, const char *fmt, ...) ATTRIBUTE_FORMAT_PRINTF(2, 3);
268 270
269 # endif 271 # endif
270 272
271 # if defined(FEAT_GUI) || defined(FEAT_JOB_CHANNEL) 273 # if defined(FEAT_GUI) || defined(FEAT_JOB_CHANNEL)
272 # if defined(UNIX) || defined(MACOS_X) || defined(VMS) 274 # if defined(UNIX) || defined(MACOS_X) || defined(VMS)