Changeset c01e477 for variable.c


Ignore:
Timestamp:
Aug 26, 2002, 10:46:37 AM (18 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, 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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.