⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 castate.c

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 C
📖 第 1 页 / 共 3 页
字号:
VOID ac_crm_reset()   {    WORD i;    pr_text_crm();		/* print the Final as is */    for (i = 0; i <= cp_pcnt; ++i)       {	if (cp_pbuf[i] == 3)           {	    cp_cond_exit_crm();	   }       }   }/****************************************************************************    Do current command and set to Graphic_cmd2*****************************************************************************/VOID ac_do_cmd2()   {    cp_setctptr(&ast_graphcmd2); /* Set Table Ptr to Graphics CMD2 Table */    cp_do_cur_cmd();		/* Do the current sixel command */    ca_zap_repeat();   }/****************************************************************************    Start New Parameter and set to Graphic_cmd1*****************************************************************************/VOID ac_start_cmd1()   {    cp_setctptr(&ast_graphcmd1); /* Set Table Ptr to Graphics CMD1 Table */    cp_start_new_param();	/* Start new parameter in buffer */   }/****************************************************************************    Start New Parameter and set to Graphic_cmd2*****************************************************************************/VOID ac_start_cmd2()   {    cp_setctptr(&ast_graphcmd2); /* Set Table Ptr to Graphics CMD2 Table */    cp_start_new_param();	/* Start new parameter in buffer */   }/****************************************************************************    Do graphic CR, set state to GRAPHICS_SXL*****************************************************************************/VOID ac_cr_sxl()   {    cp_setctptr(&ast_graphsxl);	/* Set Table Ptr to Graphics SXL Table */    ca_zap_repeat();		/* Before every command, cancel any repeat */    dec_gcr();			/* do a graphic CR */   }/****************************************************************************    Do graphic NL, set state to GRAPHICS_SXL*****************************************************************************/VOID ac_nl_sxl()   {    cp_setctptr(&ast_graphsxl);	/* Set Table Ptr to Graphics SXL Table */    ca_zap_repeat();		/* Before every command, cancel any repeat */    dec_gnl();			/* do a graphic NL */   }/****************************************************************************    Do current sixel command, do graphic CR, set state to GRAPHICS_SXL*****************************************************************************/VOID ac_do_cr_sxl()   {    cp_setctptr(&ast_graphsxl);	/* Set Table Ptr to Graphics SXL Table */    cp_do_cur_cmd();		/* Do the current sixel command */    ca_zap_repeat();		/* Before every command, cancel any repeat */    dec_gcr();			/* do a graphic CR */   }/****************************************************************************    Do current sixel command, do graphic NL, set state to GRAPHICS_SXL*****************************************************************************/VOID ac_do_nl_sxl()   {    cp_setctptr(&ast_graphsxl);	/* Set Table Ptr to Graphics SXL Table */    cp_do_cur_cmd();		/* Do the current sixel command */    ca_zap_repeat();		/* Before every command, cancel any repeat */    dec_gnl();			/* do a graphic NL */   }/****************************************************************************    Do current sixel command, set state to GRAPHICS_CMD1*****************************************************************************/VOID ac_do_cmd1()   {    cp_setctptr(&ast_graphcmd1); /* Set Table Ptr to Graphics CMD1 Table */    cp_do_cur_cmd();		/* Do the current sixel command */   }/****************************************************************************    Add to current parameter, set state to GRAPHICS_CMD1*****************************************************************************/VOID ac_add_cmd1()   {    cp_setctptr(&ast_graphcmd1); /* Set Table Ptr to Graphics CMD1 Table */    cp_add_to_cur_param();	/* Add to current parameter */   }/****************************************************************************    Add to current parameter, set state to GRAPHICS_CMD2*****************************************************************************/VOID ac_add_cmd2()   {    cp_setctptr(&ast_graphcmd2); /* Set Table Ptr to Graphics CMD2 Table */    cp_add_to_cur_param();	/* Add to current parameter */   }/****************************************************************************    Do the current sixel command and set state to GRAPHICS_SXL*****************************************************************************/VOID ac_do_sxl()   {    cp_setctptr(&ast_graphsxl);	/* Set Table Ptr to Graphics SXL Table */    cp_do_cur_cmd();		/* Do current sixel command */    ca_zap_repeat();		/* Before every command, cancel any repeat */				/* In this case we are leaving the command				   state due to a disabled command DECGRA,				   and want to zap any pending repeat */   }/****************************************************************************    Do current sixel command & store new command, set state to GRAPHICS_CMD1*****************************************************************************/VOID ac_do_store_cmd1()   {    cp_setctptr(&ast_graphcmd1); /* Set Table Ptr to Graphics CMD1 Table */    cp_do_store_cmd();		/* Do the current sixel command and store the				   new sixel command */    ca_zap_repeat();		/* Before every command, cancel any repeat */				/* Since do_store was combined, and there is				   no problem with the zap after the store,				   the order is slightly different than the				   other store commands */   }/****************************************************************************    Do current sixel command & store new command, set state to GRAPHICS_CMD2*****************************************************************************/VOID ac_do_store_cmd2()   {    cp_setctptr(&ast_graphcmd2); /* Set Table Ptr to Graphics CMD2 Table */    cp_do_store_cmd();		/* Do the current sixel command and store the				   new sixel command */    ca_zap_repeat();		/* Before every command, cancel any repeat */				/* Since do_store was combined, and there is				   no problem with the zap after the store,				   the order is slightly different than the				   other store commands */   }/****************************************************************************    Call dec_gr_sxl and change the state to GRAPHIC_SXL    *****************************************************************************/VOID ac_gr_sxl()   {    cp_setctptr(&ast_graphsxl);	/* Set Table Ptr to Graphics SXL Table */    dec_gr_sxl();		/* call dec_gr_sxl */   }/****************************************************************************    Do the current sixel command, set state to GRAPHICS_SXL*****************************************************************************/VOID ac_do_gr_sxl()   {    cp_setctptr(&ast_graphsxl);	/* Set Table Ptr to Graphics SXL Table */    cp_do_cur_cmd();		/* Do the current sixel command */    dec_gr_sxl();		/* call dec_gr_sxl */   }/****************************************************************************    Start a new parameter and set the state to Macro Repeat*****************************************************************************/VOID ac_start_mac_rpt()   {    cp_setctptr(&ast_macrpt);	/* Set Table Ptr to MACRO REPEAT Table */    cp_start_new_param();	/* Start a new parameter in buffer */   }/****************************************************************************    Start a new parameter and set the state to LFF Repeat*****************************************************************************/VOID ac_start_lff_rpt()   {    cp_setctptr(&ast_lffrpt);	/* Set Table Ptr to LFF REPEAT Table */    cp_start_new_param();	/* Start a new parameter in buffer */   }/****************************************************************************    Terminate LFF and enter SXL_IGNORE state    *****************************************************************************/VOID ac_lff_term_ignore()   {    cp_setctptr(&ast_sxlignore); /* Set Table Ptr to SXL_IGNORE Table */    dec_lff_term();		/* Terminate LFF */   }/****************************************************************************    Terminate MACRO and enter SXL_IGNORE state    *****************************************************************************/VOID ac_mac_term_ignore()   {    cp_setctptr(&ast_sxlignore); /* Set Table Ptr to SXL_IGNORE Table */    dec_mac_term();		/* Terminate MACRO */   }/****************************************************************************    Reset the Parameter Buffer and Start a new parameter *****************************************************************************/VOID ac_reset_start()   {    cp_reset();			/* Reset the state of the parser */    cp_start_new_param();	/* Start a new parameter */   }/****************************************************************************    Reset the Buffers, call dec_lff_font and set the state to LFF*****************************************************************************/VOID ac_reset_font_lff()   {    cp_setctptr(&ast_lff);	/* Set Table Ptr to LFF Table */    dec_lff_font();		/* Load one font and begin the next */    cp_reset();			/* Reset the Parser */    ca_restart_dcs();		/* reset the DCS counters */   }/****************************************************************************    Reset the Buffers, call dec_font_mac and set the state to MACRO*****************************************************************************/VOID ac_reset_font_mac()   {    cp_setctptr(&ast_mac);	/* Set Table Ptr to MAC Table */    dec_mac_font();		/* Load one macro and begin the next */    cp_reset();			/* Reset the Parser */    ca_restart_dcs();		/* reset the DCS counters */   }/****************************************************************************    Reset the Buffers, and set the state to LFF*****************************************************************************/VOID ac_reset_lff()   {    cp_setctptr(&ast_lff);	/* Set Table Ptr to LFF Table */    cp_reset();			/* Reset the Parser */   }/****************************************************************************    Reset the Buffers, and set the state to MAC*****************************************************************************/VOID ac_reset_mac()   {    cp_setctptr(&ast_mac);	/* Set Table Ptr to MAC Table */    cp_reset();			/* Reset the Parser */   }/****************************************************************************    Reset the Buffers, call dec_lff_sxl, and set the state to LFF*****************************************************************************/VOID ac_reset_sxl_lff()   {    cp_setctptr(&ast_lff);	/* Set Table Ptr to LFF Table */    dec_lff_sxl_rpt();		/* Byte of sixel data in Font Record */    cp_reset();			/* Reset the Parser */   }/****************************************************************************    Reset the Buffers, call dec_mac_sxl and set the state to MAC*****************************************************************************/VOID ac_reset_sxl_mac()   {    cp_setctptr(&ast_mac);	/* Set Table Ptr to MAC Table */    dec_mac_sxl();		/* Byte of sixel data found in Macro record */    cp_reset();			/* Reset the Parser */   }/****************************************************************************    Call cp_font_name and set the state to DCS_IGNORE *****************************************************************************/VOID ac_font_ignore()   {    cp_setctptr(&ast_dcsignore); /* Set Table Ptr to DCS_IGNORE Table */    cp_font_name();		/* process the final font name character */    dec_aupss_term();		/* select the font */   }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -