struct.h 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /*
  2. * CDE - Common Desktop Environment
  3. *
  4. * Copyright (c) 1993-2012, The Open Group. All rights reserved.
  5. *
  6. * These libraries and programs are free software; you can
  7. * redistribute them and/or modify them under the terms of the GNU
  8. * Lesser General Public License as published by the Free Software
  9. * Foundation; either version 2 of the License, or (at your option)
  10. * any later version.
  11. *
  12. * These libraries and programs are distributed in the hope that
  13. * they will be useful, but WITHOUT ANY WARRANTY; without even the
  14. * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  15. * PURPOSE. See the GNU Lesser General Public License for more
  16. * details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with these libraries and programs; if not, write
  20. * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  21. * Floor, Boston, MA 02110-1301 USA
  22. */
  23. /* $XConsortium: struct.h /main/4 1995/11/01 15:56:45 rswiston $ */
  24. /************************************<+>*************************************
  25. ****************************************************************************
  26. **
  27. ** File: struct.h
  28. **
  29. ** Project: CDE
  30. **
  31. ** Description: Public include file for struct.c
  32. **
  33. **
  34. ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992
  35. ** by Hewlett-Packard Company
  36. **
  37. **
  38. **
  39. ****************************************************************************
  40. ************************************<+>*************************************/
  41. #ifndef _Dtksh_struct_h
  42. #define _Dtksh_struct_h
  43. #include "exksh.h"
  44. extern memtbl_t * ffind(
  45. memtbl_t *tbl,
  46. char *fld,
  47. char **pptr) ;
  48. extern int do_struct(
  49. int argc,
  50. char **argv) ;
  51. extern int do_typedef(
  52. int argc,
  53. char **argv) ;
  54. extern int parse_decl(
  55. char * argv0,
  56. struct memtbl *mem,
  57. char *decl,
  58. int tst) ;
  59. extern int do_structlist(
  60. int argc,
  61. char **argv) ;
  62. extern int add_structlist(
  63. struct memtbl **memptr,
  64. char *prefix,
  65. int id) ;
  66. extern int strparse(
  67. memtbl_t *tbl,
  68. char **pbuf,
  69. char *val) ;
  70. extern int strfree(
  71. char *buf,
  72. char *type) ;
  73. extern int do_sizeof(
  74. int argc,
  75. char **argv) ;
  76. extern memtbl_t * all_tbl_find(
  77. char *name,
  78. int tbl,
  79. long id) ;
  80. extern memtbl_t * all_tbl_search(
  81. char *name,
  82. int flag) ;
  83. extern memtbl_t * asl_find(
  84. memtbl_t *ptbl,
  85. memtbl_t *tbls,
  86. char *fld,
  87. char **pptr) ;
  88. #endif /* _Dtksh_struct_h */
  89. /* DON'T ADD ANYTHING AFTER THIS #endif */