Changeset 9e5c9f3
- Timestamp:
- Aug 15, 2009, 7:08:20 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 1e94c0b
- Parents:
- 4542047
- git-author:
- Anders Kaseorg <andersk@mit.edu> (08/04/09 02:38:09)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:20)
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
commands.c
r4542047 r9e5c9f3 2014 2014 } else if (argc==2 && !strcmp(argv[1], "zaway")) { 2015 2015 const owl_message *m; 2016 owl_view *v;2016 const owl_view *v; 2017 2017 v = owl_global_get_current_view(&g); 2018 2018 m = owl_view_get_element(v, owl_global_get_curmsg(&g)); … … 2587 2587 { 2588 2588 owl_message *m; 2589 owl_view *v;2589 const owl_view *v; 2590 2590 const char *cmd; 2591 2591 … … 2621 2621 { 2622 2622 owl_message *m; 2623 owl_view *v;2623 const owl_view *v; 2624 2624 const char *cmd; 2625 2625 -
functions.c
r4542047 r9e5c9f3 62 62 void owl_function_show_view(const char *viewname) 63 63 { 64 owl_view *v;64 const owl_view *v; 65 65 owl_fmtext fm; 66 66 … … 593 593 { 594 594 int curmsg, i, viewsize, found; 595 owl_view *v;595 const owl_view *v; 596 596 const owl_filter *f = NULL; 597 597 const owl_message *m; … … 646 646 { 647 647 int curmsg, i, viewsize, found; 648 owl_view *v;648 const owl_view *v; 649 649 const owl_filter *f = NULL; 650 650 const owl_message *m; … … 818 818 { 819 819 int oldcurmsg, curmsg; 820 owl_view *v;820 const owl_view *v; 821 821 822 822 v=owl_global_get_current_view(&g); … … 1041 1041 { 1042 1042 int recwinlines, topmsg, curmsg; 1043 owl_view *v;1043 const owl_view *v; 1044 1044 1045 1045 v=owl_global_get_current_view(&g); … … 1085 1085 * and the number of lines in the recwin. 1086 1086 */ 1087 int owl_function_calculate_topmsg_top(int direction, owl_view *v, int curmsg, int topmsg, int recwinlines)1087 int owl_function_calculate_topmsg_top(int direction, const owl_view *v, int curmsg, int topmsg, int recwinlines) 1088 1088 { 1089 1089 return(curmsg); 1090 1090 } 1091 1091 1092 int owl_function_calculate_topmsg_neartop(int direction, owl_view *v, int curmsg, int topmsg, int recwinlines)1092 int owl_function_calculate_topmsg_neartop(int direction, const owl_view *v, int curmsg, int topmsg, int recwinlines) 1093 1093 { 1094 1094 if (curmsg>0 … … 1101 1101 } 1102 1102 1103 int owl_function_calculate_topmsg_center(int direction, owl_view *v, int curmsg, int topmsg, int recwinlines)1103 int owl_function_calculate_topmsg_center(int direction, const owl_view *v, int curmsg, int topmsg, int recwinlines) 1104 1104 { 1105 1105 int i, last, lines; … … 1115 1115 } 1116 1116 1117 int owl_function_calculate_topmsg_paged(int direction, owl_view *v, int curmsg, int topmsg, int recwinlines, int center_on_page)1117 int owl_function_calculate_topmsg_paged(int direction, const owl_view *v, int curmsg, int topmsg, int recwinlines, int center_on_page) 1118 1118 { 1119 1119 int i, last, lines, savey; … … 1155 1155 } 1156 1156 1157 int owl_function_calculate_topmsg_normal(int direction, owl_view *v, int curmsg, int topmsg, int recwinlines)1157 int owl_function_calculate_topmsg_normal(int direction, const owl_view *v, int curmsg, int topmsg, int recwinlines) 1158 1158 { 1159 1159 int savey, i, foo, y; … … 1413 1413 const owl_message *m; 1414 1414 owl_fmtext fm, attrfm; 1415 owl_view *v;1415 const owl_view *v; 1416 1416 #ifdef HAVE_LIBZEPHYR 1417 1417 const ZNotice_t *n; … … 1546 1546 void owl_function_curmsg_to_popwin() 1547 1547 { 1548 owl_view *v;1548 const owl_view *v; 1549 1549 const owl_message *m; 1550 1550 const owl_style *s; … … 1573 1573 1574 1574 int offset, curmsg, lines; 1575 owl_view *v;1575 const owl_view *v; 1576 1576 owl_message *m; 1577 1577 … … 1751 1751 int i, j, count; 1752 1752 owl_message *m; 1753 owl_view *v;1753 const owl_view *v; 1754 1754 const owl_filter *f; 1755 1755 … … 2155 2155 { 2156 2156 owl_filter *f; 2157 owl_view *v;2157 const owl_view *v; 2158 2158 int ret, inuse=0; 2159 2159 … … 2545 2545 void owl_function_delete_curview_msgs(int flag) 2546 2546 { 2547 owl_view *v;2547 const owl_view *v; 2548 2548 int i, j; 2549 2549 … … 2579 2579 char *owl_function_smartfilter(int type) 2580 2580 { 2581 owl_view *v;2581 const owl_view *v; 2582 2582 const owl_message *m; 2583 2583 char *zperson, *filtname=NULL; … … 2651 2651 /* Starts a zpunt command based on the current class,instance pair. 2652 2652 * If type=0, uses just class. If type=1, uses instance as well. */ 2653 owl_view *v;2653 const owl_view *v; 2654 2654 const owl_message *m; 2655 2655 const char *cmdprefix, *mclass, *minst; … … 2998 2998 */ 2999 2999 3000 owl_view *v;3000 const owl_view *v; 3001 3001 int viewsize, i, curmsg, start; 3002 3002 owl_message *m; … … 3193 3193 int i, j, count; 3194 3194 owl_message *m; 3195 owl_view *v;3195 const owl_view *v; 3196 3196 FILE *file; 3197 3197 char *plaintext; … … 3576 3576 { 3577 3577 const owl_message *m; 3578 owl_view *v;3578 const owl_view *v; 3579 3579 3580 3580 v=owl_global_get_current_view(&g); … … 3596 3596 int marked_id; 3597 3597 const owl_message *m; 3598 owl_view *v;3598 const owl_view *v; 3599 3599 3600 3600 marked_id=owl_global_get_markedmsgid(&g); -
global.c
r89b2daf r9e5c9f3 697 697 698 698 int owl_global_should_followlast(owl_global *g) { 699 owl_view *v;699 const owl_view *v; 700 700 701 701 if (!owl_global_is__followlast(g)) return(0); -
mainwin.c
r4542047 r9e5c9f3 14 14 int topmsg, curmsg, fgcolor, bgcolor; 15 15 WINDOW *recwin; 16 owl_view *v;16 const owl_view *v; 17 17 const owl_list *filtlist; 18 18 const owl_filter *f; -
message.c
r4542047 r9e5c9f3 146 146 { 147 147 const owl_style *s; 148 owl_view *v;148 const owl_view *v; 149 149 150 150 if (!m->fmtext) { -
perlconfig.c
r4542047 r9e5c9f3 115 115 { 116 116 int curmsg; 117 owl_view *v;117 const owl_view *v; 118 118 v=owl_global_get_current_view(&g); 119 119 if (owl_view_get_size(v) < 1) { -
util.c
r3eb599d r9e5c9f3 11 11 WINDOW *sepwin; 12 12 const owl_messagelist *ml; 13 owl_view *v;13 const owl_view *v; 14 14 int x, y, i; 15 15 const char *foo, *appendtosepbar; -
view.c
r3eb599d r9e5c9f3 11 11 } 12 12 13 const char *owl_view_get_name( owl_view *v)13 const char *owl_view_get_name(const owl_view *v) 14 14 { 15 15 return(v->name); … … 62 62 } 63 63 64 const owl_style *owl_view_get_style( owl_view *v)64 const owl_style *owl_view_get_style(const owl_view *v) 65 65 { 66 66 return(v->style); 67 67 } 68 68 69 const char *owl_view_get_style_name( owl_view *v) {69 const char *owl_view_get_style_name(const owl_view *v) { 70 70 return(owl_style_get_name(v->style)); 71 71 } 72 72 73 owl_message *owl_view_get_element( owl_view *v, int index)73 owl_message *owl_view_get_element(const owl_view *v, int index) 74 74 { 75 75 return(owl_messagelist_get_element(&(v->ml), index)); … … 86 86 } 87 87 88 int owl_view_get_size( owl_view *v)88 int owl_view_get_size(const owl_view *v) 89 89 { 90 90 return(owl_messagelist_get_size(&(v->ml))); … … 93 93 /* Returns the position in the view with a message closest 94 94 * to the passed msgid. */ 95 int owl_view_get_nearest_to_msgid( owl_view *v, int targetid)95 int owl_view_get_nearest_to_msgid(const owl_view *v, int targetid) 96 96 { 97 97 int first, last, mid = 0, max, bestdist, curid = 0; … … 122 122 } 123 123 124 int owl_view_get_nearest_to_saved( owl_view *v)124 int owl_view_get_nearest_to_saved(const owl_view *v) 125 125 { 126 126 int cachedid; … … 139 139 140 140 /* fmtext should already be initialized */ 141 void owl_view_to_fmtext( owl_view *v, owl_fmtext *fm)141 void owl_view_to_fmtext(const owl_view *v, owl_fmtext *fm) 142 142 { 143 143 owl_fmtext_append_normal(fm, "Name: "); … … 154 154 } 155 155 156 const char *owl_view_get_filtname( owl_view *v)156 const char *owl_view_get_filtname(const owl_view *v) 157 157 { 158 158 return(owl_filter_get_name(v->filter));
Note: See TracChangeset
for help on using the changeset viewer.