home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Spezial / SPEZIAL2_97.zip / SPEZIAL2_97.iso / ANWEND / EDITOR / NVI179B / NVI179B.ZIP / ex / ex_open.c < prev    next >
C/C++ Source or Header  |  1996-04-27  |  968b  |  47 lines

  1. /*-
  2.  * Copyright (c) 1993, 1994
  3.  *    The Regents of the University of California.  All rights reserved.
  4.  * Copyright (c) 1993, 1994, 1995, 1996
  5.  *    Keith Bostic.  All rights reserved.
  6.  *
  7.  * See the LICENSE file for redistribution information.
  8.  */
  9.  
  10. #include "config.h"
  11.  
  12. #ifndef lint
  13. static const char sccsid[] = "@(#)ex_open.c    10.7 (Berkeley) 3/6/96";
  14. #endif /* not lint */
  15.  
  16. #include <sys/types.h>
  17. #include <sys/queue.h>
  18.  
  19. #include <bitstring.h>
  20. #include <limits.h>
  21. #include <stdio.h>
  22.  
  23. #include "../common/common.h"
  24.  
  25. /*
  26.  * ex_open -- :[line] o[pen] [/pattern/] [flags]
  27.  *
  28.  *    Switch to single line "open" mode.
  29.  *
  30.  * PUBLIC: int ex_open __P((SCR *, EXCMD *));
  31.  */
  32. int
  33. ex_open(sp, cmdp)
  34.     SCR *sp;
  35.     EXCMD *cmdp;
  36. {
  37.     /* If open option off, disallow open command. */
  38.     if (!O_ISSET(sp, O_OPEN)) {
  39.         msgq(sp, M_ERR,
  40.         "140|The open command requires that the open option be set");
  41.         return (1);
  42.     }
  43.  
  44.     msgq(sp, M_ERR, "141|The open command is not yet implemented");
  45.     return (1);
  46. }
  47.