comparison src/structs.h @ 68:a97c6902ecd9

updated for version 7.0030
author vimboss
date Tue, 04 Jan 2005 21:38:36 +0000
parents 90188be4861f
children 388f285bda1b
comparison
equal deleted inserted replaced
67:6b9e8f951af4 68:a97c6902ecd9
596 struct condstack 596 struct condstack
597 { 597 {
598 char cs_flags[CSTACK_LEN]; /* CSF_ flags */ 598 char cs_flags[CSTACK_LEN]; /* CSF_ flags */
599 char cs_pending[CSTACK_LEN]; /* CSTP_: what's pending in ":finally"*/ 599 char cs_pending[CSTACK_LEN]; /* CSTP_: what's pending in ":finally"*/
600 union { 600 union {
601 void *cs_pend_rv[CSTACK_LEN]; /* returnval for pending return */ 601 void *cs_pend_rv[CSTACK_LEN]; /* return typeval for pending return */
602 void *cs_pend_ex[CSTACK_LEN]; /* exception for pending throw */ 602 void *cs_pend_ex[CSTACK_LEN]; /* exception for pending throw */
603 } cs_pend; 603 } cs_pend;
604 int cs_line[CSTACK_LEN]; /* line number of ":while" line */ 604 int cs_line[CSTACK_LEN]; /* line number of ":while" line */
605 int cs_idx; /* current entry, or -1 if none */ 605 int cs_idx; /* current entry, or -1 if none */
606 int cs_whilelevel; /* number of nested ":while"s */ 606 int cs_whilelevel; /* number of nested ":while"s */
609 char cs_had_while; /* just found ":while" */ 609 char cs_had_while; /* just found ":while" */
610 char cs_had_continue; /* just found ":continue" */ 610 char cs_had_continue; /* just found ":continue" */
611 char cs_had_endwhile; /* just found ":endwhile" */ 611 char cs_had_endwhile; /* just found ":endwhile" */
612 char cs_had_finally; /* just found ":finally" */ 612 char cs_had_finally; /* just found ":finally" */
613 }; 613 };
614 # define cs_retvar cs_pend.cs_pend_rv 614 # define cs_rettv cs_pend.cs_pend_rv
615 # define cs_exception cs_pend.cs_pend_ex 615 # define cs_exception cs_pend.cs_pend_ex
616 616
617 # define CSF_TRUE 1 /* condition was TRUE */ 617 # define CSF_TRUE 1 /* condition was TRUE */
618 # define CSF_ACTIVE 2 /* current state is active */ 618 # define CSF_ACTIVE 2 /* current state is active */
619 # define CSF_ELSE 4 /* ":else" has been passed */ 619 # define CSF_ELSE 4 /* ":else" has been passed */
1825 #ifdef FEAT_GUI_W32 1825 #ifdef FEAT_GUI_W32
1826 UINT id; /* Id of menu item */ 1826 UINT id; /* Id of menu item */
1827 HMENU submenu_id; /* If this is submenu, add children here */ 1827 HMENU submenu_id; /* If this is submenu, add children here */
1828 HWND tearoff_handle; /* hWnd of tearoff if created */ 1828 HWND tearoff_handle; /* hWnd of tearoff if created */
1829 #endif 1829 #endif
1830 #if FEAT_GUI_BEOS
1831 BMenuItem *id; /* Id of menu item */
1832 BMenu *submenu_id; /* If this is submenu, add children here */
1833 #endif
1834 #ifdef FEAT_GUI_MAC 1830 #ifdef FEAT_GUI_MAC
1835 /* MenuHandle id; */ 1831 /* MenuHandle id; */
1836 /* short index; */ /* the item index within the father menu */ 1832 /* short index; */ /* the item index within the father menu */
1837 short menu_id; /* the menu id to which this item belong */ 1833 short menu_id; /* the menu id to which this item belong */
1838 short submenu_id; /* the menu id of the children (could be 1834 short submenu_id; /* the menu id of the children (could be
1839 get throught some tricks) */ 1835 get throught some tricks) */
1840 MenuHandle menu_handle; 1836 MenuHandle menu_handle;
1841 MenuHandle submenu_handle; 1837 MenuHandle submenu_handle;
1842 #endif
1843 #if defined(FEAT_GUI_AMIGA)
1844 /* only one of these will ever be set, but
1845 * they are used to allow the menu routine
1846 * to easily get a hold of the parent menu
1847 * pointer which is needed by all items to
1848 * form the chain correctly */
1849 int id; /* unused by the amiga, but used in the
1850 * code kept for compatibility */
1851 struct Menu *menuPtr;
1852 struct MenuItem *menuItemPtr;
1853 #endif 1838 #endif
1854 #ifdef RISCOS 1839 #ifdef RISCOS
1855 int *id; /* Not used, but gui.c needs it */ 1840 int *id; /* Not used, but gui.c needs it */
1856 int greyed_out; /* Flag */ 1841 int greyed_out; /* Flag */
1857 int hidden; 1842 int hidden;