Changeset c01e477


Ignore:
Timestamp:
Aug 26, 2002, 10:46:37 AM (22 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
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:
61e79a9
Parents:
56330ff
Message:
Fixed bug in sending messages to a class with the new zsig code.
Started modifying 'tty' variable.  Warning: NOT DONE.
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r56330ff rc01e477  
    1818        Moved zsig generation to the zwrite object
    1919        Print the zsig used for outgoing messages
     20        Started changes to tty variables *** NOT DONE ***
    2021       
    21221.2.2
  • global.c

    r1fd0b25 rc01e477  
    383383/* tty (not fully implemented yet) */
    384384
    385 void owl_global_set_tty(owl_global *g, char *tty) {
     385void owl_global_set_tty_old(owl_global *g, char *tty) {
    386386  if (tty) {
    387387    strcpy(g->thistty, tty);
  • variable.c

    raa2f33b3 rc01e477  
    3333        { name, OWL_VARIABLE_STRING, default, 0, "<string>", summary,description, NULL, \
    3434        NULL, NULL, NULL, NULL, NULL, NULL }
     35
     36#define OWLVAR_STRING_FULL(name,default,summary,description,validate,set,get) \
     37        { name, OWL_VARIABLE_STRING, default, 0, "<string>", summary,description, NULL, \
     38        validate, set, NULL, get, NULL, NULL }
    3539
    3640/* enums are really integers, but where validset is a comma-separated
     
    168172                 "SEE ALSO: view, filter\n" ),
    169173
     174  OWLVAR_STRING_FULL( "tty" /* %OwlVarStub */, "", "tty name for zephyr location", "",
     175                      NULL, owl_variable_tty_set, NULL),
     176 
    170177  OWLVAR_INT(    "edit:maxfillcols" /* %OwlVarStub:edit_maxfillcols */, 70,
    171178                 "maximum number of columns for M-q to fill text to",
     
    301308  } 
    302309  return owl_variable_int_set_default(v, newval); 
     310}
     311
     312int owl_variable_tty_set(owl_variable *v, void *newval) {
     313  owl_function_makemsg("This is a test.");
     314  return(owl_variable_string_set_default(v, newval));
    303315}
    304316
  • zwrite.c

    r56330ff rc01e477  
    218218  } else {
    219219    sprintf(to, "@%s", z->realm);
    220     send_zephyr(z->opcode, NULL, z->class, z->inst, to, msg);
     220    send_zephyr(z->opcode, z->zsig, z->class, z->inst, to, msg);
    221221  }
    222222}
Note: See TracChangeset for help on using the changeset viewer.