home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / jikepg12.zip / jikespg / src / header.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-11-04  |  4.0 KB  |  91 lines

  1. /* $Id: header.h,v 1.2 1999/11/04 14:02:22 shields Exp $ */
  2. /*
  3.  This software is subject to the terms of the IBM Jikes Compiler
  4.  License Agreement available at the following URL:
  5.  http://www.ibm.com/research/jikes.
  6.  Copyright (C) 1983, 1999, International Business Machines Corporation
  7.  and others.  All Rights Reserved.
  8.  You must accept the terms of that agreement to use this software.
  9. */
  10. #ifndef HEADER_INCLUDED
  11. #define HEADER_INCLUDED
  12.  
  13. /***********************************************************************/
  14. /***********************************************************************/
  15. /**                                                                   **/
  16. /**   The following declarations are specifications for all global    **/
  17. /**   procedures and functions used in the program.                   **/
  18. /**                                                                   **/
  19. /***********************************************************************/
  20. /***********************************************************************/
  21. long temporary_space_allocated(void);
  22. long temporary_space_used(void);
  23. long global_space_allocated(void);
  24. long global_space_used(void);
  25. void reset_temporary_space(void);
  26. void free_temporary_space(void);
  27. void *talloc(long size);
  28. struct node *allocate_node(char *file, long line);
  29. BOOLEAN *allocate_boolean_array(long size, char *file, long line);
  30. int *allocate_int_array(long size, char *file, long line);
  31. short *allocate_short_array(long size, char *file, long line);
  32. struct goto_header_type allocate_goto_map(int size, char *file, long line);
  33. struct shift_header_type allocate_shift_map(int size,
  34.                                             char *file, long line);
  35. struct reduce_header_type allocate_reduce_map(int size,
  36.                                               char *file, long line);
  37. void cmprspa(void);
  38. void cmprtim(void);
  39. void compute_la(int state_no, int item_no, SET_PTR look_ahead);
  40. void create_lastats(void);
  41. void dump_tables(void);
  42. void exit_lalrk_process(void);
  43. void init_lalrk_process(void);
  44. void init_rmpself(SET_PTR produces);
  45. void itoc(int num);
  46. void field(int num, int len);
  47. void fill_in(char string[], int amount, char character);
  48. void free_conflict_space(void);
  49. void free_nodes(struct node *head, struct node *tail);
  50. struct node *lpgaccess(int state_no, int item_no);
  51. void mkfirst(void);
  52. void mkrdcts(void);
  53. void la_traverse(int state_no, int goto_indx, int *stack_top);
  54. void remove_single_productions(void);
  55. void mkstats(void);
  56. void mystrcpy(char *str);
  57. void padline(void);
  58. void nospace(char *, long);
  59. int number_len(int state_no);
  60. void partset(SET_PTR collection, short *element_size, short *list,
  61.              short *start, short *stack, int set_size);
  62. void print_item(int item_no);
  63. void print_large_token(char *line, char *token, char *indent, int len);
  64. void print_state(int state_no);
  65. void compute_action_symbols_range(short *state_start,
  66.                                   short *state_stack,
  67.                                   short *state_list,
  68.                                   short *action_symbols_range);
  69. void compute_naction_symbols_range(short *state_start,
  70.                                    short *state_stack,
  71.                                    short *state_list,
  72.                                    short *naction_symbols_range);
  73. void produce(void);
  74. void process_error_maps(void);
  75. void prnt_shorts(char *title, int init, int bound, int perline, short *array);
  76. void prnt_ints(char *title, int init, int bound, int perline, int *array);
  77. void print_space_parser(void);
  78. void print_time_parser(void);
  79. void process_tables(void);
  80. void ptstats(void);
  81. void remvsp(void);
  82. void sortdes(short array[], short count[], int low, int high, int max);
  83. void reallocate(void);
  84. void resolve_conflicts(int state_no, struct node **action,
  85.                        short *reduce_list, int reduce_root);
  86. void restore_symbol(char *out, char *in);
  87. char *strlwr(char *string);
  88. char *strupr(char *string);
  89.  
  90. #endif /* HEADER_INCLUDED */
  91.