Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[messages] rename class to msg_class #812

Merged
merged 1 commit into from
Aug 27, 2014
Merged

[messages] rename class to msg_class #812

merged 1 commit into from
Aug 27, 2014

Conversation

flixr
Copy link
Member

@flixr flixr commented Aug 26, 2014

makes it possible to use the python parser using xmlobject since class is a reserved word.

If I didn't miss anything it should still be possible to replay old logs and stuff like that...

@@ -230,7 +230,7 @@ let parse_msg_field = fun msg_descr field ->
(** Parse a complete message and build its representation *)
let parse_msg = fun msg ->
let msg_name = Xml.attrib msg "name"
and msg_class = Xml.attrib msg "class"
and msg_class = try Xml.attrib msg "msg_class" with Not_found -> Xml.attrib msg "class"
and send_always = (try (Xml.attrib msg "send_always") = "true" with _ -> false) in

let fields, has_ac_id =

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This "class" attribute refers to the on attribute in joysticks xml files (which have not been changed), not the node name "class".
Is it needed to change attributes as well ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, I'll remove that change...

makes it possible to use the python parser using xmlobject since class is a reserved word.
@flixr flixr merged commit 97ea2b7 into master Aug 27, 2014
@flixr flixr deleted the msg_class branch August 27, 2014 12:47
@flixr flixr added this to the v5.2 milestone Aug 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants