You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

str.h 924B

1234567891011121314151617181920212223242526272829303132333435
  1. /* $Header: str.h,v 1.0 87/12/18 13:06:26 root Exp $
  2. *
  3. * $Log: str.h,v $
  4. * Revision 1.0 87/12/18 13:06:26 root
  5. * Initial revision
  6. *
  7. */
  8. struct string {
  9. char * str_ptr; /* pointer to malloced string */
  10. double str_nval; /* numeric value, if any */
  11. int str_len; /* allocated size */
  12. int str_cur; /* length of str_ptr as a C string */
  13. union {
  14. STR *str_next; /* while free, link to next free str */
  15. STAB *str_magic; /* while in use, ptr to magic stab, if any */
  16. } str_link;
  17. char str_pok; /* state of str_ptr */
  18. char str_nok; /* state of str_nval */
  19. };
  20. #define Nullstr Null(STR*)
  21. /* the following macro updates any magic values this str is associated with */
  22. #define STABSET(x) (x->str_link.str_magic && stabset(x->str_link.str_magic,x))
  23. EXT STR **tmps_list;
  24. EXT long tmps_max INIT(-1);
  25. char *str_2ptr();
  26. double str_2num();
  27. STR *str_static();
  28. STR *str_make();
  29. STR *str_nmake();