Changeset 9e5c9f3 for functions.c
- Timestamp:
- Aug 15, 2009, 7:08:20 PM (16 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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);
Note: See TracChangeset
for help on using the changeset viewer.