Mercurial > emacs
comparison src/nsterm.h @ 109746:d6fc586a0872
Use const char* for -Wwrite_strings.
* keyboard.h (_widget_value): name, value and key are const char*.
* nsfont.m (ns_descriptor_to_entity): Use const char*.
* nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
(addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
* nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
(addDisplayItemWithImage): Use const char*.
author | Jan D <jan.h.d@swipnet.se> |
---|---|
date | Wed, 11 Aug 2010 10:58:56 +0200 |
parents | d349244d7b08 |
children | 2186ab0af4a5 |
comparison
equal
deleted
inserted
replaced
109745:b9025d71747a | 109746:d6fc586a0872 |
---|---|
112 } | 112 } |
113 | 113 |
114 - initWithTitle: (NSString *)title frame: (struct frame *)f; | 114 - initWithTitle: (NSString *)title frame: (struct frame *)f; |
115 - (void)setFrame: (struct frame *)f; | 115 - (void)setFrame: (struct frame *)f; |
116 - (void)menuNeedsUpdate: (NSMenu *)menu; /* (delegate method) */ | 116 - (void)menuNeedsUpdate: (NSMenu *)menu; /* (delegate method) */ |
117 - (NSString *)parseKeyEquiv: (char *)key; | 117 - (NSString *)parseKeyEquiv: (const char *)key; |
118 - (NSMenuItem *)addItemWithWidgetValue: (void *)wvptr; | 118 - (NSMenuItem *)addItemWithWidgetValue: (void *)wvptr; |
119 - (void)fillWithWidgetValue: (void *)wvptr; | 119 - (void)fillWithWidgetValue: (void *)wvptr; |
120 - (EmacsMenu *)addSubmenuWithTitle: (char *)title forFrame: (struct frame *)f; | 120 - (EmacsMenu *)addSubmenuWithTitle: (const char *)title forFrame: (struct frame *)f; |
121 - (void) clear; | 121 - (void) clear; |
122 - (Lisp_Object)runMenuAt: (NSPoint)p forFrame: (struct frame *)f | 122 - (Lisp_Object)runMenuAt: (NSPoint)p forFrame: (struct frame *)f |
123 keymaps: (int)keymaps; | 123 keymaps: (int)keymaps; |
124 @end | 124 @end |
125 | 125 |
142 } | 142 } |
143 - initForView: (EmacsView *)view withIdentifier: (NSString *)identifier; | 143 - initForView: (EmacsView *)view withIdentifier: (NSString *)identifier; |
144 - (void) clearActive; | 144 - (void) clearActive; |
145 - (BOOL) changed; | 145 - (BOOL) changed; |
146 - (void) addDisplayItemWithImage: (EmacsImage *)img idx: (int)idx | 146 - (void) addDisplayItemWithImage: (EmacsImage *)img idx: (int)idx |
147 helpText: (char *)help | 147 helpText: (const char *)help |
148 enabled: (BOOL)enabled; | 148 enabled: (BOOL)enabled; |
149 /* delegate methods */ | 149 /* delegate methods */ |
150 - (NSToolbarItem *)toolbar: (NSToolbar *)toolbar | 150 - (NSToolbarItem *)toolbar: (NSToolbar *)toolbar |
151 itemForItemIdentifier: (NSString *)itemIdentifier | 151 itemForItemIdentifier: (NSString *)itemIdentifier |
152 willBeInsertedIntoToolbar: (BOOL)flag; | 152 willBeInsertedIntoToolbar: (BOOL)flag; |