unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#9359: 23.3; Etags does not recognise pure functions in Fortran 90
@ 2011-08-24  9:50 Dieter Schuster
  2011-09-07  7:28 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Dieter Schuster @ 2011-08-24  9:50 UTC (permalink / raw)
  To: 9359

[-- Attachment #1: Type: text/plain, Size: 229 bytes --]

Hello,

etags does not recognize pure functions in Fortran 90 programs. There is
a Fortran 90 program attached to this mail as an example. I've also
add a patch in the attachment which fixed the bug.


Kind regards,

     Dieter

[-- Attachment #2: pure.f90 --]
[-- Type: text/plain, Size: 156 bytes --]

program pure
contains 
  function f(i)
    intent(in) :: i
  end function f
  
  pure function pf(i)
    intent(in) :: i
  end function pf
end program pure

[-- Attachment #3: etags-pure.diff --]
[-- Type: text/x-diff, Size: 321 bytes --]

--- etags.c.orig	2011-04-05 05:46:44.000000000 +0200
+++ etags.c	2011-08-24 11:39:31.512910651 +0200
@@ -4112,6 +4112,9 @@
       if (LOOKING_AT_NOCASE (dbp, "recursive"))
 	dbp = skip_spaces (dbp);
 
+      if (LOOKING_AT_NOCASE (dbp, "pure"))
+	dbp = skip_spaces (dbp);
+
       switch (lowcase (*dbp))
 	{
 	case 'i':

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#9359: 23.3; Etags does not recognise pure functions in Fortran 90
  2011-08-24  9:50 bug#9359: 23.3; Etags does not recognise pure functions in Fortran 90 Dieter Schuster
@ 2011-09-07  7:28 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2011-09-07  7:28 UTC (permalink / raw)
  To: 9359-done

Version: 24.1

Thanks; applied.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-07  7:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-24  9:50 bug#9359: 23.3; Etags does not recognise pure functions in Fortran 90 Dieter Schuster
2011-09-07  7:28 ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).