Lines Matching refs:mode
33 # parameters for each mode.
35 # that match the mode specifications specified on the command line.
36 # The matching mode definitions are written to stdout in the form of a C file.
42 # awk -f makemodes.awk <MDF file> <mode spec> [<mode spec> ...]
44 # where <mode spec> is
49 # Note: Spaces are NOT allowed in a mode specifier
59 mode = 0;
65 # Non zero if we are translating a mode
102 # Start of mode definition
107 # End of mode definition
110 mode = mode + 1;
113 # The mode definition name (only valid within startmode/endmode section)
117 modes[mode, 0] = $2;
125 modes[mode, 1] = $2;
133 modes[mode, 2] = $2;
141 modes[mode, 3] = $2;
149 modes[mode, 4] = $2;
157 modes[mode, 5] = $2;
165 modes[mode, 6] = $2;
200 # Report the mode specifier being processed
208 printf("Invalid mode specifier\n") | "cat 1>&2";
223 # Report the full mode specifier
228 for (loop = 0; loop < mode; loop = loop + 1) {
289 printf("Cannot find mode") | "cat 1>&2";
296 # Output the mode as part of the mode definition array