home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / historic / v941.tgz / icon.v941src.tar / icon.v941src / src / h / mproto.h < prev    next >
C/C++ Source or Header  |  2001-12-12  |  2KB  |  67 lines

  1. /*
  2.  * mproto.h -- prototypes for functions common to several modules.
  3.  */
  4.  
  5. pointer    alloc        (unsigned int n);
  6. unsigned short *bitvect    (char *image, int len);
  7. void    clear_sbuf    (struct str_buf *sbuf);
  8. int    cmp_pre        (char *pre1, char *pre2);
  9. void    cset_init    (FILE *f, unsigned short *bv);
  10. void    db_chstr    (char *s1, char *s2);
  11. void    db_close    (void);
  12. void    db_code        (struct implement *ip);
  13. void    db_dscrd    (struct implement *ip);
  14. void    db_err1        (int fatal, char *s1);
  15. void    db_err2        (int fatal, char *s1, char *s2);
  16. struct implement *db_ilkup (char *id, struct implement **tbl);
  17. struct implement *db_impl  (int oper_typ);
  18. int    db_open        (char *s, char **lrgintflg);
  19. char    *db_string    (void);
  20. int    db_tbl        (char *section, struct implement **tbl);
  21. struct fileparts *fparse(char *s);
  22. void    free_stbl    (void);
  23. void    id_comment    (FILE *f);
  24. void    init_sbuf    (struct str_buf *sbuf);
  25. void    init_str    (void);
  26. long    longwrite    (char *s, long len, FILE *file);
  27. char    *makename    (char *dest, char *d, char *name, char *e);
  28. long    millisec    (void);
  29. struct il_code *new_il    (int il_type, int size);
  30. void    new_sbuf    (struct str_buf *sbuf);
  31. void    nxt_pre        (char *pre, char *nxt, int n);
  32. char    *pathfind    (char *buf, char *path, char *name, char *extn);
  33. int    ppch        (void);
  34. void    ppdef        (char *name, char *value);
  35. void    ppecho        (void);
  36. int    ppinit        (char *fname, char *inclpath, int m4flag);
  37. int    prt_i_str    (FILE *f, char *s, int len);
  38. int    redirerr    (char *p);
  39. char    *salloc        (char *s);
  40. int    smatch        (char *s, char *t);
  41. char    *spec_str    (char *s);
  42. char    *str_install    (struct str_buf *sbuf);
  43. int    tonum        (int c);
  44. void    lear_sbuf    (struct str_buf *sbuf);
  45.  
  46. #ifdef ConsoleWindow
  47.    int Consolefprintf(FILE *file, char *format, ...);
  48.    int Consoleprintf(char *format, ...);
  49.    int Consoleputc(int c, FILE *file);
  50.    int Consolefflush(FILE *file);
  51. #endif                    /* ConsoleWindow */
  52.  
  53. #ifndef SysOpt
  54.    int    getopt        (int argc, char * const argv[], const char *optstring);
  55. #endif                    /* NoSysOpt */
  56.  
  57. #if IntBits == 16
  58.    long    lstrlen        (char *s);
  59.    void    lqsort        (char *base, int nel, int width, int (*cmp)());
  60. #endif                    /* IntBits == 16 */
  61.  
  62. #define NewStruct(type) alloc(sizeof(struct type))
  63.  
  64. #if UNIX
  65.    char *relfile    (char *prog, char *mod);
  66. #endif
  67.