POV-Ray : Newsgroups : povray.binaries.utilities : adding SDL to ctags : Re: adding SDL to ctags Server Time
23 Feb 2024 14:16:28 EST (-0500)
  Re: adding SDL to ctags  
From: jr
Date: 5 Jan 2020 17:10:01
Message: <web.5e125cc33de8e3ea8c662f470@news.povray.org>

the first version posted would not "see" macros/declares/locals when not the
first item on the line, eg "#if (flag_) #local a_ = 1; #end"  misses the '#local
a_', now corrected.

I find the cross-referencing option too worth having, the output shown is
produced with:

  $ cd /usr/local/share/povray-3.8/include
  $ ctags -x debug.inc
  DEBUG            variable     13 debug.inc        #declare DEBUG = yes;
  DEBUG            variable     19 debug.inc        #macro Set_Debug(Bool)
#declare DEBUG = Bool; #end
  DEBUG_MCR        variable     11 debug.inc        #declare DEBUG_MCR = true;
  Debug            macro        29 debug.inc        #macro Debug(Condition,
  Debug_Inc_Stack  macro        15 debug.inc        #macro Debug_Inc_Stack()
  Debug_Message    macro        22 debug.inc        #macro Debug_Message(Str)
  Error            macro        39 debug.inc        #macro Error(Condition,
  Set_Debug        macro        19 debug.inc        #macro Set_Debug(Bool)
#declare DEBUG = Bool; #end
  View_POV_Include_Stack variable     16 debug.inc        #declare
View_POV_Include_Stack = 1;
  Warning          macro        34 debug.inc        #macro Warning(Condition,

enjoy, jr.

Post a reply to this message

Download 'ctagspov2.tar' (10 KB)

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.