summaryrefslogtreecommitdiff
path: root/src/os_qnx.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-12-05 20:28:46 +0100
committerBram Moolenaar <Bram@vim.org>2019-12-05 20:28:46 +0100
commit0f8737355d291679659579a48db1861b88970293 (patch)
tree6b8a8f4e9afe52e72c4039e404f3f4598e04d16a /src/os_qnx.c
parent6e0ce171e19d0118ecd7c2b16e2a1bd50aa76013 (diff)
downloadvim-git-0f8737355d291679659579a48db1861b88970293.tar.gz
patch 8.1.2393: using old C style commentsv8.1.2393
Problem: Using old C style comments. Solution: Use // comments where appropriate.
Diffstat (limited to 'src/os_qnx.c')
-rw-r--r--src/os_qnx.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/os_qnx.c b/src/os_qnx.c
index a6f195e50..6d8febd82 100644
--- a/src/os_qnx.c
+++ b/src/os_qnx.c
@@ -36,17 +36,17 @@ void qnx_init(void)
#define CLIP_TYPE_VIM "VIMTYPE"
#define CLIP_TYPE_TEXT "TEXT"
-/* Turn on the clipboard for a console vim when photon is running */
+// Turn on the clipboard for a console vim when photon is running
void qnx_clip_init(void)
{
if (is_photon_available == TRUE && !gui.in_use)
clip_init(TRUE);
}
-/*****************************************************************************/
-/* Clipboard */
+/////////////////////////////////////////////////////////////////////////////
+// Clipboard
-/* No support for owning the clipboard */
+// No support for owning the clipboard
int
clip_mch_own_selection(Clipboard_T *cbd)
{
@@ -69,13 +69,13 @@ clip_mch_request_selection(Clipboard_T *cbd)
cbdata = PhClipboardPasteStart(PhInputGroup(NULL));
if (cbdata != NULL)
{
- /* Look for the vim specific clip first */
+ // Look for the vim specific clip first
clip_header = PhClipboardPasteType(cbdata, CLIP_TYPE_VIM);
if (clip_header != NULL && clip_header->data != NULL)
{
switch(*(char *) clip_header->data)
{
- default: /* fallthrough to line type */
+ default: // fallthrough to line type
case 'L': type = MLINE; break;
case 'C': type = MCHAR; break;
case 'B': type = MBLOCK; break;
@@ -83,7 +83,7 @@ clip_mch_request_selection(Clipboard_T *cbd)
is_type_set = TRUE;
}
- /* Try for just normal text */
+ // Try for just normal text
clip_header = PhClipboardPasteType(cbdata, CLIP_TYPE_TEXT);
if (clip_header != NULL)
{
@@ -109,7 +109,7 @@ clip_mch_set_selection(Clipboard_T *cbd)
char_u *text_clip, vim_clip[2], *str = NULL;
PhClipHeader clip_header[2];
- /* Prevent recursion from clip_get_selection() */
+ // Prevent recursion from clip_get_selection()
if (cbd->owned == TRUE)
return;
@@ -136,7 +136,7 @@ clip_mch_set_selection(Clipboard_T *cbd)
switch(type)
{
- default: /* fallthrough to MLINE */
+ default: // fallthrough to MLINE
case MLINE: *vim_clip = 'L'; break;
case MCHAR: *vim_clip = 'C'; break;
case MBLOCK: *vim_clip = 'B'; break;