Mercurial > vim
annotate src/gui_xmebwp.h @ 27974:495418c6cac8 v8.2.4512
patch 8.2.4512: the find_tags_in_file() function is much too long
Commit: https://github.com/vim/vim/commit/df1bbea436636ac227d33dd79f77e07f4fffb028
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Sat Mar 5 14:35:12 2022 +0000
patch 8.2.4512: the find_tags_in_file() function is much too long
Problem: The find_tags_in_file() function is much too long.
Solution: Refactor into multiple smaller functions. (Yegappan Lakshmanan,
closes #9892)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 05 Mar 2022 15:45:03 +0100 |
parents | 6e3dc2d630c2 |
children |
rev | line source |
---|---|
10042
4aead6a9b7a9
commit https://github.com/vim/vim/commit/edf3f97ae2af024708ebb4ac614227327033ca47
Christian Brabandt <cb@256bit.org>
parents:
4352
diff
changeset
|
1 /* vi:set ts=8 sts=4 sw=4 noet: |
50 | 2 * |
3 * VIM - Vi IMproved by Bram Moolenaar | |
4 * | |
5 * Do ":help uganda" in Vim to read copying and usage conditions. | |
6 * Do ":help credits" in Vim to see a list of people who contributed. | |
7 * See README.txt for an overview of the Vim source code. | |
8 */ | |
9 /* | |
10 * | |
11 * (C) 2002,2005 by Marcin Dalecki <martin@dalecki.de> | |
12 * | |
13 * MARCIN DALECKI ASSUMES NO RESPONSIBILITY FOR THE USE OR INABILITY TO USE ANY | |
14 * OF THIS SOFTWARE . THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY | |
15 * KIND, AND MARCIN DALECKI EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES, | |
16 * INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND | |
17 * FITNESS FOR A PARTICULAR PURPOSE. | |
18 */ | |
19 | |
20 #ifndef EnhancedBP_H | |
21 #define EnhancedBP_H | |
22 | |
23 #include <Xm/PushBP.h> | |
24 | |
25 #include "gui_xmebw.h" | |
26 | |
27 | |
28 /* | |
4352 | 29 * EnhancedButton class structure. |
50 | 30 */ |
31 typedef struct _XmEnhancedButtonClassPart | |
32 { | |
33 Pixmap stipple_bitmap; | |
34 } XmEnhancedButtonClassPart; | |
35 | |
36 /* | |
37 * Full class record declaration for EnhancedButton class. | |
38 */ | |
39 typedef struct | |
40 { | |
41 CoreClassPart core_class; | |
42 XmPrimitiveClassPart primitive_class; | |
43 XmLabelClassPart label_class; | |
44 XmPushButtonClassPart pushbutton_class; | |
45 XmEnhancedButtonClassPart enhancedbutton_class; | |
46 } XmEnhancedButtonClassRec; | |
47 | |
48 | |
49 extern XmEnhancedButtonClassRec xmEnhancedButtonClassRec; | |
50 | |
51 /* | |
4352 | 52 * EnhancedButton instance record. |
50 | 53 */ |
54 typedef struct _XmEnhancedButtonPart | |
55 { | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
10042
diff
changeset
|
56 // public resources |
50 | 57 String pixmap_data; |
58 String pixmap_file; | |
59 Dimension spacing; | |
60 int label_location; | |
61 | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
10042
diff
changeset
|
62 // private resources |
50 | 63 int pixmap_depth; |
64 Dimension pixmap_width; | |
65 Dimension pixmap_height; | |
66 Pixmap normal_pixmap; | |
67 Pixmap armed_pixmap; | |
68 Pixmap insensitive_pixmap; | |
69 Pixmap highlight_pixmap; | |
70 | |
71 int doing_setvalues; | |
72 int doing_destroy; | |
73 } XmEnhancedButtonPart; | |
74 | |
75 | |
76 /* | |
77 * Full instance record declaration. | |
78 */ | |
79 typedef struct _XmEnhancedButtonRec | |
80 { | |
81 CorePart core; | |
82 XmPrimitivePart primitive; | |
83 XmLabelPart label; | |
84 XmPushButtonPart pushbutton; | |
85 XmEnhancedButtonPart enhancedbutton; | |
86 } XmEnhancedButtonRec; | |
87 | |
88 #endif |