Changeset d40ad8b
- Timestamp:
- Aug 7, 2010, 9:06:17 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- 86f740e
- Parents:
- 335413f1
- git-author:
- David Benjamin <davidben@mit.edu> (08/07/10 19:28:31)
- git-committer:
- David Benjamin <davidben@mit.edu> (08/07/10 21:06:17)
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/code.txt
r44cc9ab rd40ad8b 167 167 =========================================================================== 168 168 169 170 MISC THINGS171 -----------172 173 userclue: right now userclue is just used to decide if you sub to174 classes other than the default. If you don't it doesn't bother175 making your personal messages bold since there's no point in176 making every message bold.177 178 179 180 ===========================================================================181 182 169 Conventions and Design Criteria 183 170 ------------------------------- -
global.c
re488ec5 rd40ad8b 74 74 75 75 owl_global_set_config_format(g, 0); 76 owl_global_set_userclue(g, OWL_USERCLUE_NONE);77 76 owl_global_set_no_have_config(g); 78 77 owl_history_init(&(g->msghist)); … … 508 507 if (g->thishost) return(g->thishost); 509 508 return(""); 510 }511 512 /* userclue */513 514 void owl_global_set_userclue(owl_global *g, int clue) {515 g->userclue=clue;516 }517 518 void owl_global_add_userclue(owl_global *g, int clue) {519 g->userclue|=clue;520 }521 522 int owl_global_get_userclue(const owl_global *g) {523 return(g->userclue);524 }525 526 int owl_global_is_userclue(const owl_global *g, int clue) {527 if (g->userclue & clue) return(1);528 return(0);529 509 } 530 510 -
owl.h
r2b83ad6 rd40ad8b 173 173 #define OWL_CTX_EDITMULTI 0x2000 174 174 #define OWL_CTX_EDITRESPONSE 0x4000 175 176 #define OWL_USERCLUE_NONE 0177 #define OWL_USERCLUE_CLASSES 1178 #define OWL_USERCLUE_FOOBAR 2179 #define OWL_USERCLUE_BAZ 4180 181 #define OWL_WEBBROWSER_NONE 0182 #define OWL_WEBBROWSER_NETSCAPE 1183 #define OWL_WEBBROWSER_GALEON 2184 #define OWL_WEBBROWSER_OPERA 3185 175 186 176 #define OWL_VARIABLE_OTHER 0 … … 610 600 time_t lastinputtime; 611 601 char *startupargs; 612 int userclue;613 602 int nextmsgid; 614 603 int hascolors; -
zephyr.c
re488ec5 rd40ad8b 148 148 if (ret_sd || ret_bd || ret_u) { 149 149 owl_function_error("Error loading zephyr subscriptions"); 150 } else if (ret_u!=-1) {151 owl_global_add_userclue(&g, OWL_USERCLUE_CLASSES);152 150 } 153 151
Note: See TracChangeset
for help on using the changeset viewer.