Simon Wright <[email protected]> writes: > On 17 Jan 2015, at 20:10, Simon Wright <[email protected]> wrote: > >> Below, function Create_Mutex reports this, pointing at the final semicolon: >> >> mutexes.ads:6:53: syntax error in grammar state 215; unexpected >> Mutex_Handle, expecting one of (default ACCESS) >> >> (Create_Mutex_2 is fine) > > And by “below” I mean this: > > package Mutexes with Preelaborate is > > type Mutex (<>) is limited private; > type Mutex_Handle is access all Mutex; > > function Create_Mutex return not null Mutex_Handle; > > function Create_Mutex_2 (P : Integer) return not null Mutex_Handle; > > private > > type Mutex is null record; > -- Of course it isn't really, but it is opaque to us. > > end Mutexes;
I can reproduce this. The fix is quite straightforward. But in the interest of finding out if anyone understands this code besides me, I'll let you all work on it for a while before I post it. I am getting older, and someone will have to take over maintaining Emacs ada-mode at some point. -- -- Stephe _______________________________________________ Emacs-ada-mode mailing list [email protected] http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org
