Print this page
5088 it's probably ok for vi to stop working around pdp-11 bugs now

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/vi/port/ex.h
          +++ new/usr/src/cmd/vi/port/ex.h
↓ open down ↓ 358 lines elided ↑ open up ↑
 359  359  #define UNDNONE         3
 360  360  #define UNDPUT          4
 361  361  
 362  362  /*
 363  363   * Various miscellaneous flags and buffers needed by the encryption routines.
 364  364   */
 365  365  #define KSIZE   9       /* key size for encryption */
 366  366  var     int     xflag;          /* True if we are in encryption mode */
 367  367  var     int     xtflag;         /* True if the temp file is being encrypted */
 368  368  var     int     kflag;          /* True if the key has been accepted */
 369      -var     int     crflag;         /* True if the key has been accepted  and the file 
 370      -                                   being read is ciphertext 
      369 +var     int     crflag;         /* True if the key has been accepted  and the file
      370 +                                   being read is ciphertext
 371  371                                   */
 372  372  var     int     perm[2];        /* pipe connection to crypt for file being edited */
 373  373  var     int     tperm[2];       /* pipe connection to crypt for temporary file */
 374  374  var     int permflag;
 375  375  var     int tpermflag;
 376  376  var     unsigned char   *key;
 377  377  var     unsigned char   crbuf[CRSIZE];
 378  378  char    *getpass();
 379  379  
 380  380  var     bool    write_quit;     /* True if executing a 'wq' command */
 381  381  var     int     errcnt;         /* number of error/warning messages in */
 382      -                                /*      editing session (global flag)  */ 
      382 +                                /*      editing session (global flag)  */
 383  383  /*
 384  384   * Function type definitions
 385  385   */
 386  386  #define NOSTR   (char *) 0
 387  387  #define NOLINE  (line *) 0
 388  388  
 389  389  #define setterm visetterm
 390  390  #define draino vidraino
 391  391  #define gettmode vigettmode
 392  392  
↓ open down ↓ 40 lines elided ↑ open up ↑
 433  433  int     vi_filter();
 434  434  int     getfile();
 435  435  int     getsub();
 436  436  int     gettty();
 437  437  int     join(int);
 438  438  int     listchar(wchar_t);
 439  439  int     normchar(wchar_t);
 440  440  int     normline(void);
 441  441  int     numbline(int);
 442  442  var     void    (*oldquit)();
 443      -#ifdef __STDC__
      443 +
 444  444  void    onhup(int);
 445  445  void    onintr(int);
 446      -void    onemt(int);
 447  446  void    oncore(int);
 448  447  #ifdef CBREAK
 449  448  void    vintr(int);
 450  449  #endif
 451  450  void    onsusp(int);
 452  451  int     putch(char);
 453  452  int     plodput(char);
 454  453  int     vputch(char);
 455      -#else
 456      -void    onhup();
 457      -void    onintr();
 458      -void    onemt();
 459      -void    oncore();
 460      -#ifdef CBREAK
 461      -void    vintr();
 462      -#endif
 463      -void    onsusp();
 464      -int     putch();
 465      -int     plodput();
 466      -int     vputch();
 467      -#endif /* __STDC__ */
 468  454  
 469  455  void    shift(int, int);
 470  456  int     termchar(wchar_t);
 471  457  int     vfilter();
 472  458  int     vshftop();
 473  459  int     yank(void);
 474  460  unsigned char *lastchr();
 475  461  unsigned char *nextchr();
 476  462  bool putoctal;
 477  463  
↓ open down ↓ 151 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX