Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/signedchar.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
main()
int main(void)
{
signed char x = 'a';
return (x - 'a');
Expand Down
5 changes: 3 additions & 2 deletions config/unsigned.c
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
#include <stdio.h>
int main()
{
char x[] = "\377";
if (x[0] > 0)
{
printf("char is unsigned type\n");
exit(0);
return 0;
}
else
{
printf("char is signed type\n");
exit(1);
return 1;
}
}

2 changes: 1 addition & 1 deletion pTk/config/Hstrdup.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ int main()
{char *e;
char *p = strdup(STRING);
if (!p || strcmp(p,STRING))
exit(1);
return 1;
return 0;
}

1 change: 1 addition & 0 deletions pTk/config/Hstrtoul.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <stdlib.h>
#include <string.h>

int main()
{char *e;
Expand Down
1 change: 1 addition & 0 deletions pTk/mTk/generic/tkEvent.c
Original file line number Diff line number Diff line change
Expand Up @@ -1153,6 +1153,7 @@ TkEventDeadWindow(winPtr)
Time
TkCurrentTime(dispPtr, fallbackCurrent)
TkDisplay *dispPtr; /* Display for which the time is desired. */
int fallbackCurrent;
{
register XEvent *eventPtr;
ThreadSpecificData *tsdPtr = (ThreadSpecificData *)
Expand Down
2 changes: 2 additions & 0 deletions pTk/mTk/generic/tkImage.c
Original file line number Diff line number Diff line change
Expand Up @@ -1083,6 +1083,8 @@ int x;
int y;
int width;
int height;
int imgWidth;
int imgHeight;
{
Tk_Tile tile = (Tk_Tile) clientData;
Tk_TileChange *handler;
Expand Down