{"action":"opened","issue":{"url":"https://api.github.com/repos/d0c-s4vage/py010parser/issues/12","repository_url":"https://api.github.com/repos/d0c-s4vage/py010parser","labels_url":"https://api.github.com/repos/d0c-s4vage/py010parser/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/d0c-s4vage/py010parser/issues/12/comments","events_url":"https://api.github.com/repos/d0c-s4vage/py010parser/issues/12/events","html_url":"https://github.com/d0c-s4vage/py010parser/issues/12","id":176236410,"number":12,"title":"Improper structure support (from @vit9696)","user":{"login":"d0c-s4vage","id":5090146,"avatar_url":"https://avatars.githubusercontent.com/u/5090146?v=3","gravatar_id":"","url":"https://api.github.com/users/d0c-s4vage","html_url":"https://github.com/d0c-s4vage","followers_url":"https://api.github.com/users/d0c-s4vage/followers","following_url":"https://api.github.com/users/d0c-s4vage/following{/other_user}","gists_url":"https://api.github.com/users/d0c-s4vage/gists{/gist_id}","starred_url":"https://api.github.com/users/d0c-s4vage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d0c-s4vage/subscriptions","organizations_url":"https://api.github.com/users/d0c-s4vage/orgs","repos_url":"https://api.github.com/users/d0c-s4vage/repos","events_url":"https://api.github.com/users/d0c-s4vage/events{/privacy}","received_events_url":"https://api.github.com/users/d0c-s4vage/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-11T10:08:15Z","updated_at":"2016-09-11T10:08:15Z","closed_at":null,"body":"courtesy of @vit9696 at https://github.com/d0c-s4vage/pfp/issues/26:\r\n\r\npfp seems to work very bad with structure typedefing.\r\n\r\nSomething like that would work with both template parsers (010 Editor and pfp):\r\n```\r\ntypedef struct MY_STRUCT_S {\r\n\tchar magic[4];\r\n\tunsigned int filesize;\r\n} MY_STRUCT;\r\nLittleEndian();\r\nMY_STRUCT s;\r\n```\r\nThe rest will fail with all kinds of errors in pfp:\r\n```\r\nstruct MY_STRUCT {\r\n\tchar magic[4];\r\n\tunsigned int filesize;\r\n};\r\nLittleEndian();\r\nMY_STRUCT s;\r\n```\r\n```\r\ntypedef struct MY_STRUCT {\r\n\tchar magic[4];\r\n\tunsigned int filesize;\r\n};\r\nLittleEndian();\r\nMY_STRUCT s;\r\n```\r\n```\r\nstruct MY_STRUCT {\r\n\tchar magic[4];\r\n\tunsigned int filesize;\r\n};\r\nLittleEndian();\r\nstruct MY_STRUCT s;\r\n```\r\n```\r\nstruct MY_STRUCT {\r\n\tchar magic[4];\r\n\tunsigned int filesize;\r\n};\r\ntypedef struct MY_STRUCT ME;\r\nLittleEndian();\r\nME s;\r\n```\r\nAnd I suppose it is not the end. Pretty much the same happens to enums, for example."}}
{"actor":{"display_login":"d0c-s4vage"}}