summaryrefslogtreecommitdiff
path: root/data/vim/patches/8.1.0659
blob: c9a1953e59d4f1ba93cd7fc186234716e373b5a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
To: vim_dev@googlegroups.com
Subject: Patch 8.1.0659
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 8.1.0659 (after 8.1.0658)
Problem:    Build failure without the sign feature.
Solution:   Put the sign struct declarations outside of the #ifdef.
Files:	    src/structs.h


*** ../vim-8.1.0658/src/structs.h	2018-12-27 00:28:27.501299292 +0100
--- src/structs.h	2018-12-29 20:00:42.683438234 +0100
***************
*** 731,738 ****
  #define PT_FLAG_INS_START_INCL	1	// insert at start included in property
  #define PT_FLAG_INS_END_INCL	2	// insert at end included in property
  
- 
- #if defined(FEAT_SIGNS) || defined(PROTO)
  // Sign group
  typedef struct signgroup_S
  {
--- 731,736 ----
***************
*** 741,750 ****
      char_u	sg_name[1];		// sign group name
  } signgroup_T;
  
- // Macros to get the sign group structure from the group name
- #define SGN_KEY_OFF	offsetof(signgroup_T, sg_name)
- #define HI2SG(hi)	((signgroup_T *)((hi)->hi_key - SGN_KEY_OFF))
- 
  typedef struct signlist signlist_T;
  
  struct signlist
--- 739,744 ----
***************
*** 758,763 ****
--- 752,762 ----
      signlist_T  *prev;		/* previous entry -- for easy reordering */
  };
  
+ #if defined(FEAT_SIGNS) || defined(PROTO)
+ // Macros to get the sign group structure from the group name
+ #define SGN_KEY_OFF	offsetof(signgroup_T, sg_name)
+ #define HI2SG(hi)	((signgroup_T *)((hi)->hi_key - SGN_KEY_OFF))
+ 
  // Default sign priority for highlighting
  #define SIGN_DEF_PRIO	10
  
*** ../vim-8.1.0658/src/version.c	2018-12-29 18:53:07.847607399 +0100
--- src/version.c	2018-12-29 20:03:12.542203100 +0100
***************
*** 801,802 ****
--- 801,804 ----
  {   /* Add new patch number below this line */
+ /**/
+     659,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
78. You find yourself dialing IP numbers on the phone.

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///