Changeset f87c490
- Timestamp:
- Apr 20, 2003, 3:48:31 PM (21 years ago)
- Branches:
- master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- e51b410
- Parents:
- aaf6071
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
ChangeLog
raaf6071 rf87c490 65 65 Remove some ancient stuff from zcrypt.c 66 66 General cleanup to Makefile.in 67 CTRL and META are now OWL_CTRL and OWL_META. OWL_CTRL moved to 68 keypress.c 69 do_encrypt declaired static 67 70 68 71 1.2.8 -
keymap.c
r7131cf2 rf87c490 214 214 } 215 215 if (kh->in_esc) { 216 j = META(j);216 j = OWL_META(j); 217 217 kh->in_esc = 0; 218 218 } -
keypress.c
rac70242 rf87c490 127 127 }; 128 128 129 #define OWL_CTRL(key) ((key)&037) 130 /* OWL_META is definied in owl.h */ 131 129 132 /* returns 0 on success */ 130 133 int owl_keypress_tostring(int j, int esc, char *buff, int bufflen) { … … 134 137 *kb = '\0'; 135 138 for (sm = specialmap; sm->kj!=0; sm++) { 136 if (j == META(sm->kj) || (esc && j == sm->kj)) {139 if (j == OWL_META(sm->kj) || (esc && j == sm->kj)) { 137 140 strcat(kb, "M-"); 138 141 strcat(kb, sm->ks); … … 144 147 } 145 148 if (!*kb) { 146 if (j& META(0)) {149 if (j&OWL_META(0)) { 147 150 strcat(kb, "M-"); 148 j &= ~ META(0);149 } 150 if (( CTRL(j) == j)) {151 j &= ~OWL_META(0); 152 } 153 if ((OWL_CTRL(j) == j)) { 151 154 strcat(kb, "C-"); 152 155 j |= 0x60; … … 196 199 if (j==ERR) return(ERR); 197 200 if (isctrl) { 198 j = CTRL(j);201 j = OWL_CTRL(j); 199 202 } 200 203 if (ismeta) { 201 j = META(j);204 j = OWL_META(j); 202 205 } 203 206 return(j); -
owl.h
r8262340 rf87c490 112 112 #define OWL_CMD_ALIAS_SUMMARY_PREFIX "command alias to: " 113 113 114 #ifndef CTRL 115 #define CTRL(key) ((key)&037) 116 #endif 117 #ifndef META 118 #define META(key) ((key)|0200) 119 #endif 114 #define OWL_META(key) ((key)|0200) 115 /* OWL_CTRL is definied in kepress.c */ 120 116 121 117 #define LINE 2048 -
zcrypt.c
r69894d2 rf87c490 52 52 char *GetZephyrVarKeyFile(char *whoami, char *class, char *instance); 53 53 char *BuildArgString(char **argv, int start, int end); 54 int do_encrypt(char *keystring, int zephyr, char *class, char *instance, ZWRITEOPTIONS *zoptions, char* keyfile);54 static int do_encrypt(char *keystring, int zephyr, char *class, char *instance, ZWRITEOPTIONS *zoptions, char* keyfile); 55 55 int do_decrypt(char *keystring); 56 56
Note: See TracChangeset
for help on using the changeset viewer.