Changeset 3458 for trunk/src/kash/mknodes.sh
- Timestamp:
- Sep 14, 2020, 11:46:32 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/mknodes.sh
r3449 r3458 73 73 echo 74 74 75 ## @todo inconsistent indentation here. 75 76 IFS=' ' 76 77 for struct in $struct_list; do … … 78 79 echo 79 80 echo "struct $struct {" 81 echo "#ifdef KASH_SEPARATE_PARSER_ALLOCATOR" 82 echo " struct pstack_block *pblock;" 83 echo "#endif" 80 84 field=0 81 85 while … … 94 98 * ) name=; shift 2; type="$*";; 95 99 esac 96 echo " 100 echo " $type$name;" 97 101 done 98 102 echo "};" … … 102 106 echo 103 107 echo "union node {" 104 echo " int type;" 108 echo "#ifdef KASH_SEPARATE_PARSER_ALLOCATOR" 109 echo "# ifdef __GNUC__" 110 echo " __extension__" 111 echo "# endif" 112 echo " struct {" 113 echo " struct pstack_block *pblock;" 114 echo " int type;" 115 echo " };" 116 echo "#else" 117 echo " int type;" 118 echo "#endif" 105 119 for struct in $struct_list; do 106 echo " 120 echo " struct $struct $struct;" 107 121 done 108 122 echo "};"
Note:
See TracChangeset
for help on using the changeset viewer.