Changeset 9186c75
- Timestamp:
- Mar 29, 2010, 11:11:32 PM (14 years ago)
- Branches:
- master, release-1.10, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 0fe69d2
- Parents:
- 98d296d
- git-author:
- Nelson Elhage <nelhage@ksplice.com> (03/19/10 17:21:32)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (03/29/10 23:11:32)
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
commands.c
rb4a95fc r9186c75 2559 2559 /* if we get two arguments, ask for the password */ 2560 2560 if (argc==2) { 2561 owl_function_start_password("AIM Password: "); 2562 owl_editwin_set_cbdata(owl_global_get_typwin(&g), 2563 owl_strdup(argv[1]), owl_free); 2564 owl_editwin_set_callback(owl_global_get_typwin(&g), 2565 owl_callback_aimlogin); 2561 owl_editwin *e = owl_function_start_password("AIM Password: "); 2562 owl_editwin_set_cbdata(e, owl_strdup(argv[1]), owl_free); 2563 owl_editwin_set_callback(e, owl_callback_aimlogin); 2566 2564 return(NULL); 2567 2565 } else { -
functions.c
r58d47ca r9186c75 1927 1927 } 1928 1928 1929 voidowl_function_start_question(const char *line)1929 owl_editwin *owl_function_start_question(const char *line) 1930 1930 { 1931 1931 owl_editwin *tw; … … 1939 1939 1940 1940 owl_global_push_context(&g, OWL_CTX_EDITRESPONSE, tw, "editresponse"); 1941 } 1942 1943 void owl_function_start_password(const char *line) 1941 return tw; 1942 } 1943 1944 owl_editwin *owl_function_start_password(const char *line) 1944 1945 { 1945 1946 owl_editwin *tw; … … 1955 1956 1956 1957 owl_global_push_context(&g, OWL_CTX_EDITRESPONSE, tw, "editresponse"); 1958 return tw; 1957 1959 } 1958 1960 -
perlglue.xs
r38cc669 r9186c75 172 172 SV *callback 173 173 PREINIT: 174 owl_editwin *e; 174 175 CODE: 175 176 { … … 177 178 croak("Callback must be a subref"); 178 179 179 owl_function_start_question(line);180 181 owl_editwin_set_cbdata( owl_global_get_typwin(&g),180 e = owl_function_start_question(line); 181 182 owl_editwin_set_cbdata(e, 182 183 newSVsv(callback), 183 184 owl_perlconfig_dec_refcnt); 184 owl_editwin_set_callback( owl_global_get_typwin(&g), owl_perlconfig_edit_callback);185 owl_editwin_set_callback(e, owl_perlconfig_edit_callback); 185 186 } 186 187 … … 190 191 SV *callback 191 192 PREINIT: 193 owl_editwin *e; 192 194 CODE: 193 195 { … … 195 197 croak("Callback must be a subref"); 196 198 197 owl_function_start_password(line);198 199 owl_editwin_set_cbdata( owl_global_get_typwin(&g),199 e = owl_function_start_password(line); 200 201 owl_editwin_set_cbdata(e, 200 202 newSVsv(callback), 201 203 owl_perlconfig_dec_refcnt); 202 owl_editwin_set_callback( owl_global_get_typwin(&g), owl_perlconfig_edit_callback);204 owl_editwin_set_callback(e, owl_perlconfig_edit_callback); 203 205 } 204 206
Note: See TracChangeset
for help on using the changeset viewer.