prototypes in function popup menu
prototypes in function popup menu
- Subject: prototypes in function popup menu
- From: Markian Hlynka <email@hidden>
- Date: Wed, 9 Jun 2004 18:29:06 -0600
why don't function prototypes show up in my function popup menu in
xcode?
ie, I have a .h file with:
-------------------------------------
void CalculateElapsedTime(TimeData &timer)
{
timer.elapsed_ticks = timer.end_time - timer.start_time;
timer.elapsed_time = ((double)timer.elapsed_ticks) /
(double)CLOCKS_PER_SEC;
}
void InitSearchFlags(SearchFlags &a);
void InitTimer(TimeData &t);
void InitSearchData(SearchData &f);
void StartTimer(TimeData &t);
void SetAlarm();
void StopTimer(TimeData &t);
-----------------------------
The first one, CalculateElapsedTime, shows up in the function popup,
but the prototypes don't. I know I can do this with #pragma mark, but I
shouldn't have to!
For that matter, why do I have to use #pragma for types:
/
/-----------------------------------------------------------------------
-------
#pragma mark -
#pragma mark -- TimeData --
typedef struct __MyTimeData
{
...
} TimeData;
/
/-----------------------------------------------------------------------
-------
BBEdit, to cite my favourite example, automatically identifies the
correct types and displays them in the function popup with the correct
(typedefed) name. Why can't xcode do this?!
Markian
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.