Skip to content

Commit

Permalink
Fixed a bug which caused FORD to crash when handling abstract interfa…
Browse files Browse the repository at this point in the history
…ces.
  • Loading branch information
cmacmackin committed Jan 21, 2015
1 parent 41429a2 commit 1b14ea9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ford/sourceform.py
Original file line number Diff line number Diff line change
Expand Up @@ -780,14 +780,16 @@ def _initialize(self,line):
self.functions = []
self.modprocs = []

def _cleanup(self):
if not self.hasname:
contents = self.subroutines + self.functions
self.name = contents[0].name

def correlate(self,project):
if self.abstract: return
self.all_interfaces = self.parent.all_interfaces
self.all_types = self.parent.all_types
self.procs = self.parent.procs
if not self.hasname:
contents = self.subroutines + self.functions
self.name = contents[0].name
for modproc in self.modprocs:
for proc in self.procs:
if modproc.name.lower() == proc.name.lower():
Expand Down

0 comments on commit 1b14ea9

Please sign in to comment.