1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-25 08:12:11 -07:00

Fixing event clock width assumptions found by microsoft c.

Copied from Perforce
 Change: 179146
 ServerID: perforce.ravenbrook.com
This commit is contained in:
Richard Brooksby 2012-08-31 20:50:47 +01:00
parent 3ac7671375
commit ecb97f9900
3 changed files with 10 additions and 8 deletions

View file

@ -190,7 +190,7 @@ static char *parseArgs(int argc, char *argv[])
/* processEvent -- process event */
static void processEvent(EventProc proc, Event event, Word etime)
static void processEvent(EventProc proc, Event event, EventClock etime)
{
Res res;
@ -288,17 +288,19 @@ static void reportEventResults(eventCountArray eventCounts)
/* reportBucketResults -- report results of the current bucket */
static void reportBucketResults(Word bucketLimit)
static void reportBucketResults(EventClock bucketLimit)
{
switch (style) {
case '\0':
printf("%8"PRIuLONGEST":", (ulongest_t)bucketLimit);
EVENT_CLOCK_PRINT(stdout, bucketLimit);
putchar(':');
break;
case 'L':
printf("(%"PRIXLONGEST, (ulongest_t)bucketLimit);
putchar('(');
EVENT_CLOCK_PRINT(stdout, bucketLimit);
break;
case 'C':
printf("%"PRIuLONGEST, (ulongest_t)bucketLimit);
EVENT_CLOCK_PRINT(stdout, bucketLimit);
break;
}
if (reportEvents) {

View file

@ -193,7 +193,7 @@ typedef struct symbolStruct *Symbol;
typedef struct labelStruct {
Word id;
Word time;
EventClock time;
Addr addr;
} labelStruct;
typedef struct labelStruct *Label;
@ -277,7 +277,7 @@ Res EventRead(Event *eventReturn, EventProc proc)
* stuff in the future.
*/
Res EventRecord(EventProc proc, Event event, Word etime)
Res EventRecord(EventProc proc, Event event, EventClock etime)
{
Res res;

View file

@ -30,7 +30,7 @@ extern char *LabelText(EventProc proc, Word label);
extern Res EventRead(Event *eventReturn, EventProc proc);
extern void EventDestroy(EventProc proc, Event event);
extern Res EventRecord(EventProc proc, Event event, Word etime);
extern Res EventRecord(EventProc proc, Event event, EventClock etime);
extern Res EventProcCreate(EventProc *procReturn, Bool partial,
EventProcReader reader, void *readerP);