Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Wo finde Struktur X aus foo.c?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
Moorenkopf
Apprentice
Apprentice


Joined: 18 Apr 2004
Posts: 189
Location: NRW

PostPosted: Thu Aug 10, 2006 5:39 pm    Post subject: [SOLVED] Wo finde Struktur X aus foo.c? Reply with quote

Hi,
ich möchte diverse Quelltexte lesen und Headerfiles stellen sich mehr und mehr als Problem heraus.

Beispiel slocate.c aus slocate. Als erstes wird in der main-Funktion die Struktur g_data_s benötigt, also muss ich sie suchen.
Es gibt 4 Headerdateien und mit ein bisschen Glück findet Sie sich in der zweiten.
Was bei einem kleinen Programm nervig ist, wird in vielen Fällen zu einem für mich schier unlösbarem Problem. Zumal ich noch nicht sehr erfahren bin und überhaupt erstmal rauskriegen muss, ob eine Struktur eine Neuschöpfung des Programmieres ist, oder "Allgemeingut".

Deshalb die Frage: Wie löst ihr das? Gibt es Hilfen?

Ich stelle mir z.B. eine IDE, oder einen Editor, vor, der sich die Prototypen von Funktionen, Strukturen usw. aus den Dateien eines Projekts zieht und dann in irgendeiner Form bereithält. Sodass man etwa durch klicken auf einen Strukturnamen zur Definition gelangt, oder dergleichen.

Gruß Stefan


Wem ein sinnvolleres Topic einfällt darf auch dazu gerne seinen Senf dazugeben :)

Edit: Danke, wusste doch, dass ich da nicht der einzige sein kann :D


Last edited by Moorenkopf on Fri Aug 11, 2006 7:34 am; edited 1 time in total
Back to top
View user's profile Send private message
_hephaistos_
Advocate
Advocate


Joined: 07 Apr 2004
Posts: 2694
Location: salzburg, austria

PostPosted: Thu Aug 10, 2006 6:34 pm    Post subject: Reply with quote

scope (kscope) sollte helfen.

sonst grep :D
_________________
-l: signature: command not found
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum