| 1028 | } |
| 1029 | |
| 1030 | void PiuDebugMachineParseAttribute(PiuDebugMachine self, char* theName, char* theValue) |
| 1031 | { |
| 1032 | xsMachine* the = self->the; |
| 1033 | if (strcmp(theName, "flags") == 0) { |
| 1034 | xsDefine(self->itemSlot, xsID_flags, xsString(theValue + 1), xsDefault); |
| 1035 | if (theValue[0] == ' ') |
| 1036 | xsDefine(self->itemSlot, xsID_state, xsInteger(0), xsDefault); |
| 1037 | else if (theValue[0] == '+') |
| 1038 | xsDefine(self->itemSlot, xsID_state, xsInteger(1), xsDefault); |
| 1039 | else if (theValue[0] == '-') |
| 1040 | xsDefine(self->itemSlot, xsID_state, xsInteger(3), xsDefault); |
| 1041 | else |
| 1042 | xsDefine(self->itemSlot, xsID_state, xsInteger(0), xsDefault); |
| 1043 | |
| 1044 | if (theValue[4] == 'I') |
| 1045 | xsDefine(self->itemSlot, xsID_variant, xsInteger(2), xsDefault); |
| 1046 | else if (theValue[4] == 'M') |
| 1047 | xsDefine(self->itemSlot, xsID_variant, xsInteger(1), xsDefault); |
| 1048 | else |
| 1049 | xsDefine(self->itemSlot, xsID_variant, xsInteger(0), xsDefault); |
| 1050 | } |
| 1051 | else if (strcmp(theName, "line") == 0) |
| 1052 | xsDefine(self->itemSlot, xsID_line, xsInteger(strtol(theValue, NULL, 10)), xsDefault); |
| 1053 | else if (strcmp(theName, "name") == 0) |
| 1054 | xsDefine(self->itemSlot, xsID_name, xsString(theValue), xsDefault); |
| 1055 | else if (strcmp(theName, "path") == 0) |
| 1056 | xsDefine(self->itemSlot, xsID_path, xsString(theValue), xsDefault); |
| 1057 | else if (strcmp(theName, "value") == 0) |
| 1058 | xsDefine(self->itemSlot, xsID_value, xsString(theValue), xsDefault); |
| 1059 | } |
| 1060 | |
| 1061 | void PiuDebugMachineParseDataBegin(PiuDebugMachine self) |
| 1062 | { |
no outgoing calls
no test coverage detected