/contrib/tcsh/tw.decls.h

https://bitbucket.org/freebsd/freebsd-head/ · C++ Header · 130 lines · 74 code · 6 blank · 50 comment · 0 complexity · a4f5a19e8cad71211cd45156230b511e MD5 · raw file

  1. /* $Header: /p/tcsh/cvsroot/tcsh/tw.decls.h,v 3.22 2006/01/12 18:15:25 christos Exp $ */
  2. /*
  3. * tw.decls.h: Tenex external declarations
  4. */
  5. /*-
  6. * Copyright (c) 1980, 1991 The Regents of the University of California.
  7. * All rights reserved.
  8. *
  9. * Redistribution and use in source and binary forms, with or without
  10. * modification, are permitted provided that the following conditions
  11. * are met:
  12. * 1. Redistributions of source code must retain the above copyright
  13. * notice, this list of conditions and the following disclaimer.
  14. * 2. Redistributions in binary form must reproduce the above copyright
  15. * notice, this list of conditions and the following disclaimer in the
  16. * documentation and/or other materials provided with the distribution.
  17. * 3. Neither the name of the University nor the names of its contributors
  18. * may be used to endorse or promote products derived from this software
  19. * without specific prior written permission.
  20. *
  21. * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  22. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  23. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  24. * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  25. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  26. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  27. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  28. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  29. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  30. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  31. * SUCH DAMAGE.
  32. */
  33. #ifndef _h_tw_decls
  34. #define _h_tw_decls
  35. /*
  36. * tw.help.c
  37. */
  38. extern void do_help (const Char *);
  39. /*
  40. * tw.parse.c
  41. */
  42. extern Char *dollar (const Char *);
  43. #ifndef __MVS__
  44. extern int tenematch (Char *, int, COMMAND);
  45. extern int t_search (struct Strbuf *, COMMAND, int,
  46. int, Char *, eChar);
  47. #endif
  48. extern int starting_a_command (Char *, Char *);
  49. extern int fcompare (const void *, const void *);
  50. extern void print_by_column (Char *, Char *[], int, int);
  51. extern int StrQcmp (const Char *, const Char *);
  52. extern Char *tgetenv (Char *);
  53. /*
  54. * tw.init.c
  55. */
  56. extern void tw_alias_start (DIR *, const Char *);
  57. extern void tw_cmd_start (DIR *, const Char *);
  58. extern void tw_logname_start (DIR *, const Char *);
  59. extern void tw_var_start (DIR *, const Char *);
  60. extern void tw_complete_start (DIR *, const Char *);
  61. extern void tw_file_start (DIR *, const Char *);
  62. extern void tw_vl_start (DIR *, const Char *);
  63. extern void tw_wl_start (DIR *, const Char *);
  64. extern void tw_bind_start (DIR *, const Char *);
  65. extern void tw_limit_start (DIR *, const Char *);
  66. extern void tw_sig_start (DIR *, const Char *);
  67. extern void tw_job_start (DIR *, const Char *);
  68. extern void tw_grpname_start (DIR *, const Char *);
  69. extern int tw_cmd_next (struct Strbuf *,
  70. struct Strbuf *, int *);
  71. extern int tw_logname_next (struct Strbuf *,
  72. struct Strbuf *, int *);
  73. extern int tw_shvar_next (struct Strbuf *,
  74. struct Strbuf *, int *);
  75. extern int tw_envvar_next (struct Strbuf *,
  76. struct Strbuf *, int *);
  77. extern int tw_var_next (struct Strbuf *,
  78. struct Strbuf *, int *);
  79. extern int tw_file_next (struct Strbuf *,
  80. struct Strbuf *, int *);
  81. extern int tw_wl_next (struct Strbuf *,
  82. struct Strbuf *, int *);
  83. extern int tw_bind_next (struct Strbuf *,
  84. struct Strbuf *, int *);
  85. extern int tw_limit_next (struct Strbuf *,
  86. struct Strbuf *, int *);
  87. extern int tw_sig_next (struct Strbuf *,
  88. struct Strbuf *, int *);
  89. extern int tw_job_next (struct Strbuf *,
  90. struct Strbuf *, int *);
  91. extern int tw_grpname_next (struct Strbuf *,
  92. struct Strbuf *, int *);
  93. extern void tw_dir_end (void);
  94. extern void tw_cmd_free (void);
  95. extern void tw_logname_end (void);
  96. extern void tw_grpname_end (void);
  97. extern void tw_item_add (const struct Strbuf *);
  98. extern Char **tw_item_get (void);
  99. extern void tw_item_free (void);
  100. extern Char *tw_item_find (Char *);
  101. /*
  102. * tw.spell.c
  103. */
  104. extern int spell_me (struct Strbuf *, int, Char *,
  105. eChar);
  106. extern int spdir (struct Strbuf *, const Char *,
  107. const Char *, Char *);
  108. extern int spdist (const Char *, const Char *);
  109. /*
  110. * tw.comp.c
  111. */
  112. extern void docomplete (Char **, struct command *);
  113. extern void douncomplete (Char **, struct command *);
  114. extern int tw_complete (const Char *, Char **,
  115. Char **, int, eChar *);
  116. #ifdef COLOR_LS_F
  117. /*
  118. * tw.color.c
  119. */
  120. extern void set_color_context (void);
  121. extern void print_with_color (const Char *, size_t, Char);
  122. extern void parseLS_COLORS (const Char *);
  123. #endif /* COLOR_LS_F */
  124. #endif /* _h_tw_decls */