linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* How to find macro defination in source code ?
@ 2010-06-18 16:47 wilbur.chan
  2010-06-18 17:46 ` jjDaNiMoTh
  2010-06-19  5:52 ` Michael Ellerman
  0 siblings, 2 replies; 3+ messages in thread
From: wilbur.chan @ 2010-06-18 16:47 UTC (permalink / raw)
  To: linuxppc-dev

For example, a macro in serial driver 8250.c , SERIAL_PORT_DFNS ,I
can't find where it is implement.

Is there any solutions to find a macro defination in code ?

Thx

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

* Re: How to find macro defination in source code ?
  2010-06-18 16:47 How to find macro defination in source code ? wilbur.chan
@ 2010-06-18 17:46 ` jjDaNiMoTh
  2010-06-19  5:52 ` Michael Ellerman
  1 sibling, 0 replies; 3+ messages in thread
From: jjDaNiMoTh @ 2010-06-18 17:46 UTC (permalink / raw)
  To: wilbur.chan; +Cc: linuxppc-dev

2010/6/18 wilbur.chan <wilbur512@gmail.com>:
> For example, a macro in serial driver 8250.c , SERIAL_PORT_DFNS ,I
> can't find where it is implement.
>
> Is there any solutions to find a macro defination in code ?
>
> Thx

Yes, use the lxr engine [1].


[1] http://lxr.linux.no

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

* Re: How to find macro defination in source code ?
  2010-06-18 16:47 How to find macro defination in source code ? wilbur.chan
  2010-06-18 17:46 ` jjDaNiMoTh
@ 2010-06-19  5:52 ` Michael Ellerman
  1 sibling, 0 replies; 3+ messages in thread
From: Michael Ellerman @ 2010-06-19  5:52 UTC (permalink / raw)
  To: wilbur.chan; +Cc: linuxppc-dev list

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

On Sat, 2010-06-19 at 00:47 +0800, wilbur.chan wrote:
> For example, a macro in serial driver 8250.c , SERIAL_PORT_DFNS ,I
> can't find where it is implement.

It looks to be in 8250.c, so I don't know why you can't find it.

> Is there any solutions to find a macro defination in code ?

# make tags
# vi -t SERIAL_PORT_DFNS

Or in general:
http://ctags.sourceforge.net/

cheers

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

end of thread, other threads:[~2010-06-19  5:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-18 16:47 How to find macro defination in source code ? wilbur.chan
2010-06-18 17:46 ` jjDaNiMoTh
2010-06-19  5:52 ` Michael Ellerman

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 NNTP newsgroup(s).