annotate src/iscygpty.h @ 19760:9daed26b788b v8.2.0436

patch 8.2.0436: no warnings for incorrect printf arguments Commit: https://github.com/vim/vim/commit/db99f9f29a248b84742b6779c3343123f72065e7 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Mar 23 22:12:22 2020 +0100 patch 8.2.0436: no warnings for incorrect printf arguments Problem: No warnings for incorrect printf arguments. Solution: Fix attribute in declaration. Fix uncovered mistakes. (Dominique Pelle, closes #5834)
author Bram Moolenaar <Bram@vim.org>
date Mon, 23 Mar 2020 22:15:05 +0100
parents 6e3dc2d630c2
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9363
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
1 /*
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
2 * iscygpty.h -- part of ptycheck
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
3 * https://github.com/k-takata/ptycheck
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
4 *
12301
93155ae168fb patch 8.0.1030: MS-Windows: wrong size computation in is_cygpty()
Christian Brabandt <cb@256bit.org>
parents: 9363
diff changeset
5 * Copyright (c) 2015-2017 K.Takata
9363
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
6 *
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
7 * You can redistribute it and/or modify it under the terms of either
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
8 * the MIT license (as described below) or the Vim license.
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
9 *
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
10 * Permission is hereby granted, free of charge, to any person obtaining
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
11 * a copy of this software and associated documentation files (the
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
12 * "Software"), to deal in the Software without restriction, including
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
13 * without limitation the rights to use, copy, modify, merge, publish,
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
14 * distribute, sublicense, and/or sell copies of the Software, and to
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
15 * permit persons to whom the Software is furnished to do so, subject to
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
16 * the following conditions:
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
17 *
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
18 * The above copyright notice and this permission notice shall be
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
19 * included in all copies or substantial portions of the Software.
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
20 *
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
22 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
23 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
24 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
25 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
26 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
27 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
28 */
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
29
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
30 #ifndef _ISCYGPTY_H
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
31 #define _ISCYGPTY_H
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
32
12301
93155ae168fb patch 8.0.1030: MS-Windows: wrong size computation in is_cygpty()
Christian Brabandt <cb@256bit.org>
parents: 9363
diff changeset
33 #ifdef _WIN32
9363
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
34 int is_cygpty(int fd);
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
35 int is_cygpty_used(void);
12301
93155ae168fb patch 8.0.1030: MS-Windows: wrong size computation in is_cygpty()
Christian Brabandt <cb@256bit.org>
parents: 9363
diff changeset
36 #else
93155ae168fb patch 8.0.1030: MS-Windows: wrong size computation in is_cygpty()
Christian Brabandt <cb@256bit.org>
parents: 9363
diff changeset
37 #define is_cygpty(fd) 0
93155ae168fb patch 8.0.1030: MS-Windows: wrong size computation in is_cygpty()
Christian Brabandt <cb@256bit.org>
parents: 9363
diff changeset
38 #define is_cygpty_used() 0
93155ae168fb patch 8.0.1030: MS-Windows: wrong size computation in is_cygpty()
Christian Brabandt <cb@256bit.org>
parents: 9363
diff changeset
39 #endif
9363
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
40
18753
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 12301
diff changeset
41 #endif // _ISCYGPTY_H