Mercurial > ~dholland > hg > ag > index.cgi
view help2html/mhh6.h @ 14:a02e9434072e
Fix friend declaration for gcc10.
XXX: did not check it against the IBM compiler, might end up needing
XXX: to be conditional.
author | David A. Holland |
---|---|
date | Tue, 31 May 2022 00:59:42 -0400 |
parents | 13d2b8934445 |
children | 5581ef01f993 |
line wrap: on
line source
#ifndef MHH6_H_1193795958 #define MHH6_H_1193795958 typedef enum { mhh6_blank_line_token = 1, mhh6_eof_line_token = 4, mhh6_blank_token, mhh6_eof_token = 8, mhh6_eol_token, mhh6_help_sourcefile_token, mhh6_topic_token, mhh6_title_line_token = 16, mhh6_topic_lines_token, mhh6_end_topic_token, mhh6_title_line_too_token, mhh6_title_token, mhh6_lead_title_char_token = 22, mhh6_title_char_token, mhh6_topic_lines_too_token = 27, mhh6_text_parag_token, mhh6_parag_token, mhh6_table_parag_token, mhh6_list1_parag_token, mhh6_list2_parag_token, mhh6_listtab_parag_token, mhh6_code_parag_token, mhh6_partial_text_parag_token, mhh6_text_block_token, mhh6_first_text_line_token = 38, mhh6_other_text_line_token, mhh6_table_parag_too_token = 42, mhh6_first_table_line_token, mhh6_other_table_line_token, mhh6_list1_block_token, mhh6_first_list1_line_token = 48, mhh6_other_list1_line_token, mhh6_first_list2_line_token = 52, mhh6_other_list2_line_token, mhh6_listtab_block_token = 56, mhh6_first_listtab_line_token = 59, mhh6_other_listtab_line_token, mhh6_code_parag_too_token = 63, mhh6_first_code_line_token, mhh6_other_code_line_token, mhh6_lead_topic_char_token, mhh6_text_frag_token, mhh6_first_table_line_body_token = 69, mhh6_tab_seq_token, mhh6_blank_seq_token, mhh6_table_frag_token = 73, mhh6_other_table_line_body_token = 75, mhh6_bullet_token, mhh6_tab_token, mhh6_text_char_token = 85, mhh6_table_char_token } mhh6_token_type; typedef struct mhh6_pcb_struct{ mhh6_token_type token_number, reduction_token, error_frame_token; int input_code; int input_value; int line, column; int ssx, sn, error_frame_ssx; int drt, dssx, dsn; int ss[128]; int vs[128]; int ag_ap; const char *error_message; char read_flag; char exit_flag; int bts[128], btsx; unsigned char * pointer; unsigned char * la_ptr; const unsigned char *key_sp; int save_index, key_state; char ag_msg[82]; } mhh6_pcb_type; #ifndef PRULE_CONTEXT #define PRULE_CONTEXT(pcb) (&((pcb).cs[(pcb).ssx])) #define PERROR_CONTEXT(pcb) ((pcb).cs[(pcb).error_frame_ssx]) #define PCONTEXT(pcb) ((pcb).cs[(pcb).ssx]) #endif #ifndef AG_RUNNING_CODE /* PCB.exit_flag values */ #define AG_RUNNING_CODE 0 #define AG_SUCCESS_CODE 1 #define AG_SYNTAX_ERROR_CODE 2 #define AG_REDUCTION_ERROR_CODE 3 #define AG_STACK_ERROR_CODE 4 #define AG_SEMANTIC_ERROR_CODE 5 #endif extern mhh6_pcb_type mhh6_pcb; void init_mhh6(void); void mhh6(void); #endif