{"action":"created","comment":{"url":"https://api.github.com/repos/tgingold/ghdl/pulls/comments/71968911","id":71968911,"diff_hunk":"@@ -0,0 +1,317 @@\n+--  GHDL Run Time (GRT) -  command line options.\n+--  Copyright (C) 2002 - 2014 Tristan Gingold\n+--\n+--  GHDL is free software; you can redistribute it and/or modify it under\n+--  the terms of the GNU General Public License as published by the Free\n+--  Software Foundation; either version 2, or (at your option) any later\n+--  version.\n+--\n+--  GHDL is distributed in the hope that it will be useful, but WITHOUT ANY\n+--  WARRANTY; without even the implied warranty of MERCHANTABILITY or\n+--  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License\n+--  for more details.\n+--\n+--  You should have received a copy of the GNU General Public License\n+--  along with GCC; see the file COPYING.  If not, write to the Free\n+--  Software Foundation, 59 Temple Place - Suite 330, Boston, MA\n+--  02111-1307, USA.\n+--\n+--  As a special exception, if other files instantiate generics from this\n+--  unit, or you link this unit with other files to produce an executable,\n+--  this unit does not by itself cause the resulting executable to be\n+--  covered by the GNU General Public License. This exception does not\n+--  however invalidate any other reasons why the executable file might be\n+--  covered by the GNU Public License.\n+\n+with System; use System;\n+with Grt.Types; use Grt.Types;\n+with Grt.Strings; use Grt.Strings;\n+with Grt.Vstrings; use Grt.Vstrings;\n+with Grt.Errors; use Grt.Errors;\n+\n+with Grt.Wave_Options.Parse.Debug;\n+\n+package body Grt.Wave_Options.Parse is\n+\n+   procedure Start (Option_File : String) is\n+      Stream : FILEs := File_Open (Option_File);\n+      First, Last : Integer;\n+      Line : String (1 .. Buf_Size);\n+      Lineno : Natural;\n+   begin\n+      File_Path := new String'(Option_File);\n+      Lineno := 0;\n+\n+      loop -- Reads line after line\n+         exit when fgets (Line'Address, Line'Length, Stream) = Null_Address;\n+         Lineno := Lineno + 1;\n+\n+         Last := New_Line_Pos (Line) - 1;\n+         if Last < 0 then\n+            Last := Line'Last;\n+         end if;\n+\n+         First := First_Non_Whitespace_Pos (Line (Line'First .. Last));\n+         if First = -1 or else Line (First) = '#' then\n+            goto Continue;\n+         end if;\n+\n+         Last := Last_Non_Whitespace_Pos (Line (First .. Last));\n+         declare\n+            Line_Str : String (1 .. Last + 1 - First) := Line (First .. Last);\n+         begin\n+            Line_Context :=\n+               new Line_Context_Type'(Str => new String'(Line_Str),\n+                                      Num => Lineno,\n+                                      Max_Level => 0);\n+         end;\n+\n+         if Line (First) = '$' then\n+            Parse_Version (Line_Context.Str);\n+         else\n+            Parse_Path (Line_Context.Str);\n+         end if;\n+\n+         <<Continue>> null;\n+      end loop;\n+\n+      if Version.Major = -1 then\n+         Report_C (\"warning: version wasn't set at the beginning of the file;\" &\n+                   \" currently supported version is \");\n+         Print_Version (Current_Version);\n+         Newline_Err;","path":"src/grt/grt-wave_options-parse.adb","position":null,"original_position":82,"commit_id":"2c55b5273cae337fc57d058a3b1730b069a7e7c8","original_commit_id":"fcea2e5dd0f5e0975da3ec1045ad58a5f0ed8795","user":{"login":"Jonsba","id":20143678,"avatar_url":"https://avatars.githubusercontent.com/u/20143678?v=3","gravatar_id":"","url":"https://api.github.com/users/Jonsba","html_url":"https://github.com/Jonsba","followers_url":"https://api.github.com/users/Jonsba/followers","following_url":"https://api.github.com/users/Jonsba/following{/other_user}","gists_url":"https://api.github.com/users/Jonsba/gists{/gist_id}","starred_url":"https://api.github.com/users/Jonsba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jonsba/subscriptions","organizations_url":"https://api.github.com/users/Jonsba/orgs","repos_url":"https://api.github.com/users/Jonsba/repos","events_url":"https://api.github.com/users/Jonsba/events{/privacy}","received_events_url":"https://api.github.com/users/Jonsba/received_events","type":"User","site_admin":false},"body":"Fixed","created_at":"2016-07-23T07:25:29Z","updated_at":"2016-07-23T07:25:29Z","html_url":"https://github.com/tgingold/ghdl/pull/121#discussion_r71968911","pull_request_url":"https://api.github.com/repos/tgingold/ghdl/pulls/121","_links":{"self":{"href":"https://api.github.com/repos/tgingold/ghdl/pulls/comments/71968911"},"html":{"href":"https://github.com/tgingold/ghdl/pull/121#discussion_r71968911"},"pull_request":{"href":"https://api.github.com/repos/tgingold/ghdl/pulls/121"}}},"pull_request":{"url":"https://api.github.com/repos/tgingold/ghdl/pulls/121","id":78564797,"html_url":"https://github.com/tgingold/ghdl/pull/121","diff_url":"https://github.com/tgingold/ghdl/pull/121.diff","patch_url":"https://github.com/tgingold/ghdl/pull/121.patch","issue_url":"https://api.github.com/repos/tgingold/ghdl/issues/121","number":121,"state":"open","locked":false,"title":"Adding support for a wave option file that selects signals to be displayed","user":{"login":"Jonsba","id":20143678,"avatar_url":"https://avatars.githubusercontent.com/u/20143678?v=3","gravatar_id":"","url":"https://api.github.com/users/Jonsba","html_url":"https://github.com/Jonsba","followers_url":"https://api.github.com/users/Jonsba/followers","following_url":"https://api.github.com/users/Jonsba/following{/other_user}","gists_url":"https://api.github.com/users/Jonsba/gists{/gist_id}","starred_url":"https://api.github.com/users/Jonsba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jonsba/subscriptions","organizations_url":"https://api.github.com/users/Jonsba/orgs","repos_url":"https://api.github.com/users/Jonsba/repos","events_url":"https://api.github.com/users/Jonsba/events{/privacy}","received_events_url":"https://api.github.com/users/Jonsba/received_events","type":"User","site_admin":false},"body":"Adding support for a wave option file that selects signals to be displayed on the waveform (currently only works with the ghw wave format). Only full signal paths are supported now (no wildcards). Wave option file version set to 1.0.","created_at":"2016-07-23T06:20:55Z","updated_at":"2016-07-23T07:25:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4b32bc37e3fb047763a6ecc349e742ffe650760f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/tgingold/ghdl/pulls/121/commits","review_comments_url":"https://api.github.com/repos/tgingold/ghdl/pulls/121/comments","review_comment_url":"https://api.github.com/repos/tgingold/ghdl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tgingold/ghdl/issues/121/comments","statuses_url":"https://api.github.com/repos/tgingold/ghdl/statuses/2c55b5273cae337fc57d058a3b1730b069a7e7c8","head":{"label":"Jonsba:jonsba/signals_selection_pr","ref":"jonsba/signals_selection_pr","sha":"2c55b5273cae337fc57d058a3b1730b069a7e7c8","user":{"login":"Jonsba","id":20143678,"avatar_url":"https://avatars.githubusercontent.com/u/20143678?v=3","gravatar_id":"","url":"https://api.github.com/users/Jonsba","html_url":"https://github.com/Jonsba","followers_url":"https://api.github.com/users/Jonsba/followers","following_url":"https://api.github.com/users/Jonsba/following{/other_user}","gists_url":"https://api.github.com/users/Jonsba/gists{/gist_id}","starred_url":"https://api.github.com/users/Jonsba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jonsba/subscriptions","organizations_url":"https://api.github.com/users/Jonsba/orgs","repos_url":"https://api.github.com/users/Jonsba/repos","events_url":"https://api.github.com/users/Jonsba/events{/privacy}","received_events_url":"https://api.github.com/users/Jonsba/received_events","type":"User","site_admin":false},"repo":{"id":61978435,"name":"ghdl","full_name":"Jonsba/ghdl","owner":{"login":"Jonsba","id":20143678,"avatar_url":"https://avatars.githubusercontent.com/u/20143678?v=3","gravatar_id":"","url":"https://api.github.com/users/Jonsba","html_url":"https://github.com/Jonsba","followers_url":"https://api.github.com/users/Jonsba/followers","following_url":"https://api.github.com/users/Jonsba/following{/other_user}","gists_url":"https://api.github.com/users/Jonsba/gists{/gist_id}","starred_url":"https://api.github.com/users/Jonsba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jonsba/subscriptions","organizations_url":"https://api.github.com/users/Jonsba/orgs","repos_url":"https://api.github.com/users/Jonsba/repos","events_url":"https://api.github.com/users/Jonsba/events{/privacy}","received_events_url":"https://api.github.com/users/Jonsba/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Jonsba/ghdl","description":"VHDL 2008/93/87 simulator","fork":true,"url":"https://api.github.com/repos/Jonsba/ghdl","forks_url":"https://api.github.com/repos/Jonsba/ghdl/forks","keys_url":"https://api.github.com/repos/Jonsba/ghdl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Jonsba/ghdl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Jonsba/ghdl/teams","hooks_url":"https://api.github.com/repos/Jonsba/ghdl/hooks","issue_events_url":"https://api.github.com/repos/Jonsba/ghdl/issues/events{/number}","events_url":"https://api.github.com/repos/Jonsba/ghdl/events","assignees_url":"https://api.github.com/repos/Jonsba/ghdl/assignees{/user}","branches_url":"https://api.github.com/repos/Jonsba/ghdl/branches{/branch}","tags_url":"https://api.github.com/repos/Jonsba/ghdl/tags","blobs_url":"https://api.github.com/repos/Jonsba/ghdl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Jonsba/ghdl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Jonsba/ghdl/git/refs{/sha}","trees_url":"https://api.github.com/repos/Jonsba/ghdl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Jonsba/ghdl/statuses/{sha}","languages_url":"https://api.github.com/repos/Jonsba/ghdl/languages","stargazers_url":"https://api.github.com/repos/Jonsba/ghdl/stargazers","contributors_url":"https://api.github.com/repos/Jonsba/ghdl/contributors","subscribers_url":"https://api.github.com/repos/Jonsba/ghdl/subscribers","subscription_url":"https://api.github.com/repos/Jonsba/ghdl/subscription","commits_url":"https://api.github.com/repos/Jonsba/ghdl/commits{/sha}","git_commits_url":"https://api.github.com/repos/Jonsba/ghdl/git/commits{/sha}","comments_url":"https://api.github.com/repos/Jonsba/ghdl/comments{/number}","issue_comment_url":"https://api.github.com/repos/Jonsba/ghdl/issues/comments{/number}","contents_url":"https://api.github.com/repos/Jonsba/ghdl/contents/{+path}","compare_url":"https://api.github.com/repos/Jonsba/ghdl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Jonsba/ghdl/merges","archive_url":"https://api.github.com/repos/Jonsba/ghdl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Jonsba/ghdl/downloads","issues_url":"https://api.github.com/repos/Jonsba/ghdl/issues{/number}","pulls_url":"https://api.github.com/repos/Jonsba/ghdl/pulls{/number}","milestones_url":"https://api.github.com/repos/Jonsba/ghdl/milestones{/number}","notifications_url":"https://api.github.com/repos/Jonsba/ghdl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Jonsba/ghdl/labels{/name}","releases_url":"https://api.github.com/repos/Jonsba/ghdl/releases{/id}","deployments_url":"https://api.github.com/repos/Jonsba/ghdl/deployments","created_at":"2016-06-26T07:22:45Z","updated_at":"2016-06-26T07:22:56Z","pushed_at":"2016-07-23T06:40:00Z","git_url":"git://github.com/Jonsba/ghdl.git","ssh_url":"git@github.com:Jonsba/ghdl.git","clone_url":"https://github.com/Jonsba/ghdl.git","svn_url":"https://github.com/Jonsba/ghdl","homepage":null,"size":45219,"stargazers_count":0,"watchers_count":0,"language":"VHDL","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tgingold:master","ref":"master","sha":"07cdfc14b94fa48feb15e564b57afb498fff308a","user":{"login":"tgingold","id":13433645,"avatar_url":"https://avatars.githubusercontent.com/u/13433645?v=3","gravatar_id":"","url":"https://api.github.com/users/tgingold","html_url":"https://github.com/tgingold","followers_url":"https://api.github.com/users/tgingold/followers","following_url":"https://api.github.com/users/tgingold/following{/other_user}","gists_url":"https://api.github.com/users/tgingold/gists{/gist_id}","starred_url":"https://api.github.com/users/tgingold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgingold/subscriptions","organizations_url":"https://api.github.com/users/tgingold/orgs","repos_url":"https://api.github.com/users/tgingold/repos","events_url":"https://api.github.com/users/tgingold/events{/privacy}","received_events_url":"https://api.github.com/users/tgingold/received_events","type":"User","site_admin":false},"repo":{"id":46439446,"name":"ghdl","full_name":"tgingold/ghdl","owner":{"login":"tgingold","id":13433645,"avatar_url":"https://avatars.githubusercontent.com/u/13433645?v=3","gravatar_id":"","url":"https://api.github.com/users/tgingold","html_url":"https://github.com/tgingold","followers_url":"https://api.github.com/users/tgingold/followers","following_url":"https://api.github.com/users/tgingold/following{/other_user}","gists_url":"https://api.github.com/users/tgingold/gists{/gist_id}","starred_url":"https://api.github.com/users/tgingold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgingold/subscriptions","organizations_url":"https://api.github.com/users/tgingold/orgs","repos_url":"https://api.github.com/users/tgingold/repos","events_url":"https://api.github.com/users/tgingold/events{/privacy}","received_events_url":"https://api.github.com/users/tgingold/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tgingold/ghdl","description":"VHDL 2008/93/87 simulator","fork":false,"url":"https://api.github.com/repos/tgingold/ghdl","forks_url":"https://api.github.com/repos/tgingold/ghdl/forks","keys_url":"https://api.github.com/repos/tgingold/ghdl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tgingold/ghdl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tgingold/ghdl/teams","hooks_url":"https://api.github.com/repos/tgingold/ghdl/hooks","issue_events_url":"https://api.github.com/repos/tgingold/ghdl/issues/events{/number}","events_url":"https://api.github.com/repos/tgingold/ghdl/events","assignees_url":"https://api.github.com/repos/tgingold/ghdl/assignees{/user}","branches_url":"https://api.github.com/repos/tgingold/ghdl/branches{/branch}","tags_url":"https://api.github.com/repos/tgingold/ghdl/tags","blobs_url":"https://api.github.com/repos/tgingold/ghdl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tgingold/ghdl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tgingold/ghdl/git/refs{/sha}","trees_url":"https://api.github.com/repos/tgingold/ghdl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tgingold/ghdl/statuses/{sha}","languages_url":"https://api.github.com/repos/tgingold/ghdl/languages","stargazers_url":"https://api.github.com/repos/tgingold/ghdl/stargazers","contributors_url":"https://api.github.com/repos/tgingold/ghdl/contributors","subscribers_url":"https://api.github.com/repos/tgingold/ghdl/subscribers","subscription_url":"https://api.github.com/repos/tgingold/ghdl/subscription","commits_url":"https://api.github.com/repos/tgingold/ghdl/commits{/sha}","git_commits_url":"https://api.github.com/repos/tgingold/ghdl/git/commits{/sha}","comments_url":"https://api.github.com/repos/tgingold/ghdl/comments{/number}","issue_comment_url":"https://api.github.com/repos/tgingold/ghdl/issues/comments{/number}","contents_url":"https://api.github.com/repos/tgingold/ghdl/contents/{+path}","compare_url":"https://api.github.com/repos/tgingold/ghdl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tgingold/ghdl/merges","archive_url":"https://api.github.com/repos/tgingold/ghdl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tgingold/ghdl/downloads","issues_url":"https://api.github.com/repos/tgingold/ghdl/issues{/number}","pulls_url":"https://api.github.com/repos/tgingold/ghdl/pulls{/number}","milestones_url":"https://api.github.com/repos/tgingold/ghdl/milestones{/number}","notifications_url":"https://api.github.com/repos/tgingold/ghdl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tgingold/ghdl/labels{/name}","releases_url":"https://api.github.com/repos/tgingold/ghdl/releases{/id}","deployments_url":"https://api.github.com/repos/tgingold/ghdl/deployments","created_at":"2015-11-18T18:39:53Z","updated_at":"2016-07-21T07:30:20Z","pushed_at":"2016-07-23T06:40:00Z","git_url":"git://github.com/tgingold/ghdl.git","ssh_url":"git@github.com:tgingold/ghdl.git","clone_url":"https://github.com/tgingold/ghdl.git","svn_url":"https://github.com/tgingold/ghdl","homepage":null,"size":45742,"stargazers_count":131,"watchers_count":131,"language":"VHDL","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":19,"forks":24,"open_issues":19,"watchers":131,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tgingold/ghdl/pulls/121"},"html":{"href":"https://github.com/tgingold/ghdl/pull/121"},"issue":{"href":"https://api.github.com/repos/tgingold/ghdl/issues/121"},"comments":{"href":"https://api.github.com/repos/tgingold/ghdl/issues/121/comments"},"review_comments":{"href":"https://api.github.com/repos/tgingold/ghdl/pulls/121/comments"},"review_comment":{"href":"https://api.github.com/repos/tgingold/ghdl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tgingold/ghdl/pulls/121/commits"},"statuses":{"href":"https://api.github.com/repos/tgingold/ghdl/statuses/2c55b5273cae337fc57d058a3b1730b069a7e7c8"}}}}
{"actor":{"display_login":"Jonsba"}}