PennMUSH Community

Changeset 1046

Show
Ignore:
Timestamp:
07/10/07 13:27:42 (1 year ago)
Author:
shawnw
Message:

7401: help eval() fix

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 1.8.3/branches/devel/game/txt/hlp/pennfunc.hlp

    r1003 r1046  
    12341234  get_eval(<object>/<attribute>) 
    12351235  
    1236   Eval() works the same way as xget(), except that it performs %-substitutions 
    1237   and function evaluation on the attribute before returning the value. eval() 
    1238   does not modify the stack (%0-%9), so the attribute being evaled sees the 
    1239   same values for them that the calling code does. Unless you need this behavior, 
    1240   it is better to use u() instead, which hides the caller's stack. 
     1236  Eval() works the same way as xget(), except that it performs 
     1237  %-substitutions and function evaluation on the attribute before 
     1238  returning the value. eval() changes the enactor (%#) to the object 
     1239  executing the eval (%!). It does not modify the stack (%0-%9), so 
     1240  the attribute being evaled sees the same values for them that the 
     1241  calling code does. Unless you need this behavior, it is better to 
     1242  use u() instead, which hides the caller's stack. 
    12411243 
    12421244    Example: 
  • 1.8.3/branches/devel/src/bsd.c

    r1037 r1046  
    25822582#ifdef HAVE_WRITEV 
    25832583      struct iovec byebye[2]; 
    2584       byebye[0].iov_base = (char *)shutmsg; 
     2584      byebye[0].iov_base = (char *) shutmsg; 
    25852585      byebye[0].iov_len = shutlen; 
    25862586      byebye[1].iov_base = "\r\n";