Mercurial > vim
comparison src/beval.h @ 18753:6e3dc2d630c2 v8.1.2366
patch 8.1.2366: using old C style comments
Commit: https://github.com/vim/vim/commit/9bf703d46a79fbffeb829246ea5ce385bddc4166
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 30 19:44:38 2019 +0100
patch 8.1.2366: using old C style comments
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 30 Nov 2019 19:45:03 +0100 |
parents | ff3c99bd1038 |
children | 2ef19eed524a |
comparison
equal
deleted
inserted
replaced
18752:9ec3c9cb4533 | 18753:6e3dc2d630c2 |
---|---|
22 # endif | 22 # endif |
23 #endif | 23 #endif |
24 | 24 |
25 typedef enum | 25 typedef enum |
26 { | 26 { |
27 ShS_NEUTRAL, /* nothing showing or pending */ | 27 ShS_NEUTRAL, // nothing showing or pending |
28 ShS_PENDING, /* data requested from debugger */ | 28 ShS_PENDING, // data requested from debugger |
29 ShS_UPDATE_PENDING, /* switching information displayed */ | 29 ShS_UPDATE_PENDING, // switching information displayed |
30 ShS_SHOWING /* the balloon is being displayed */ | 30 ShS_SHOWING // the balloon is being displayed |
31 } BeState; | 31 } BeState; |
32 | 32 |
33 typedef struct BalloonEvalStruct | 33 typedef struct BalloonEvalStruct |
34 { | 34 { |
35 #ifdef FEAT_BEVAL_GUI | 35 #ifdef FEAT_BEVAL_GUI |
36 # ifdef FEAT_GUI_GTK | 36 # ifdef FEAT_GUI_GTK |
37 GtkWidget *target; /* widget we are monitoring */ | 37 GtkWidget *target; // widget we are monitoring |
38 GtkWidget *balloonShell; | 38 GtkWidget *balloonShell; |
39 GtkWidget *balloonLabel; | 39 GtkWidget *balloonLabel; |
40 unsigned int timerID; /* timer for run */ | 40 unsigned int timerID; // timer for run |
41 BeState showState; /* tells us whats currently going on */ | 41 BeState showState; // tells us whats currently going on |
42 int x; | 42 int x; |
43 int y; | 43 int y; |
44 unsigned int state; /* Button/Modifier key state */ | 44 unsigned int state; // Button/Modifier key state |
45 # else | 45 # else |
46 # if !defined(FEAT_GUI_MSWIN) | 46 # if !defined(FEAT_GUI_MSWIN) |
47 Widget target; /* widget we are monitoring */ | 47 Widget target; // widget we are monitoring |
48 Widget balloonShell; | 48 Widget balloonShell; |
49 Widget balloonLabel; | 49 Widget balloonLabel; |
50 XtIntervalId timerID; /* timer for run */ | 50 XtIntervalId timerID; // timer for run |
51 BeState showState; /* tells us whats currently going on */ | 51 BeState showState; // tells us whats currently going on |
52 XtAppContext appContext; /* used in event handler */ | 52 XtAppContext appContext; // used in event handler |
53 Position x; | 53 Position x; |
54 Position y; | 54 Position y; |
55 Position x_root; | 55 Position x_root; |
56 Position y_root; | 56 Position y_root; |
57 int state; /* Button/Modifier key state */ | 57 int state; // Button/Modifier key state |
58 # else | 58 # else |
59 HWND target; | 59 HWND target; |
60 HWND balloon; | 60 HWND balloon; |
61 int x; | 61 int x; |
62 int y; | 62 int y; |
63 BeState showState; /* tells us whats currently going on */ | 63 BeState showState; // tells us whats currently going on |
64 # endif | 64 # endif |
65 # endif | 65 # endif |
66 # if !defined(FEAT_GUI_GTK) && !defined(FEAT_GUI_MSWIN) | 66 # if !defined(FEAT_GUI_GTK) && !defined(FEAT_GUI_MSWIN) |
67 Dimension screen_width; /* screen width in pixels */ | 67 Dimension screen_width; // screen width in pixels |
68 Dimension screen_height; /* screen height in pixels */ | 68 Dimension screen_height; // screen height in pixels |
69 # endif | 69 # endif |
70 void (*msgCB)(struct BalloonEvalStruct *, int); | 70 void (*msgCB)(struct BalloonEvalStruct *, int); |
71 void *clientData; /* For callback */ | 71 void *clientData; // For callback |
72 #endif | 72 #endif |
73 | 73 |
74 int ts; // tabstop setting for this buffer | 74 int ts; // tabstop setting for this buffer |
75 #ifdef FEAT_VARTABS | 75 #ifdef FEAT_VARTABS |
76 int *vts; // vartabstop setting for this buffer | 76 int *vts; // vartabstop setting for this buffer |
79 #ifdef FEAT_GUI_MSWIN | 79 #ifdef FEAT_GUI_MSWIN |
80 void *tofree; | 80 void *tofree; |
81 #endif | 81 #endif |
82 } BalloonEval; | 82 } BalloonEval; |
83 | 83 |
84 #define EVAL_OFFSET_X 15 /* displacement of beval topleft corner from pointer */ | 84 #define EVAL_OFFSET_X 15 // displacement of beval topleft corner from pointer |
85 #define EVAL_OFFSET_Y 10 | 85 #define EVAL_OFFSET_Y 10 |
86 | 86 |
87 #ifdef FEAT_BEVAL_GUI | 87 #ifdef FEAT_BEVAL_GUI |
88 # include "gui_beval.pro" | 88 # include "gui_beval.pro" |
89 #endif | 89 #endif |
90 | 90 |
91 #endif /* BEVAL__H and FEAT_BEVAL_GUI */ | 91 #endif // BEVAL__H and FEAT_BEVAL_GUI |