Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf93f780

Browse files
author
Bryan Henderson
committed
-Werror fixes from D'Arcy.
1 parent46c4e6f commitf93f780

File tree

2 files changed

+7
-23
lines changed

2 files changed

+7
-23
lines changed

‎src/bin/pgtclsh/pgtclAppInit.c

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@
1111
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
1212
*/
1313

14-
#ifndeflint
15-
staticcharsccsid[]="@(#) tclAppInit.c 1.11 94/12/17 16:14:03";
16-
#endif/* not lint */
17-
18-
#include"tcl.h"
14+
#include<tcl.h>
1915

2016
#include<libpgtcl.h>
2117

@@ -47,9 +43,7 @@ int *tclDummyMathPtr = (int *) matherr;
4743
*/
4844

4945
int
50-
main(argc,argv)
51-
intargc;/* Number of command-line arguments. */
52-
char**argv;/* Values of command-line arguments. */
46+
main(intargc,char**argv)
5347
{
5448
Tcl_Main(argc,argv,Tcl_AppInit);
5549
return0;/* Needed only to prevent compiler warning. */
@@ -75,8 +69,7 @@ main(argc, argv)
7569
*/
7670

7771
int
78-
Tcl_AppInit(interp)
79-
Tcl_Interp*interp;/* Interpreter for application. */
72+
Tcl_AppInit(Tcl_Interp*interp)
8073
{
8174
if (Tcl_Init(interp)==TCL_ERROR) {
8275
returnTCL_ERROR;
@@ -93,7 +86,7 @@ Tcl_AppInit(interp)
9386
* where "Mod" is the name of the module.
9487
*/
9588

96-
if (Pg_Init(interp)==TCL_ERROR) {
89+
if (Pgtcl_Init(interp)==TCL_ERROR) {
9790
returnTCL_ERROR;
9891
}
9992

‎src/bin/pgtclsh/pgtkAppInit.c

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
1212
*/
1313

14-
#ifndeflint
15-
staticcharsccsid[]="@(#) tkAppInit.c 1.12 94/12/17 16:30:56";
16-
#endif/* not lint */
17-
1814
#include"tk.h"
1915
#include"libpgtcl.h"
2016

@@ -46,9 +42,7 @@ int *tclDummyMathPtr = (int *) matherr;
4642
*/
4743

4844
int
49-
main(argc,argv)
50-
intargc;/* Number of command-line arguments. */
51-
char**argv;/* Values of command-line arguments. */
45+
main(intargc,char**argv)
5246
{
5347
Tk_Main(argc,argv,Tcl_AppInit);
5448
return0;/* Needed only to prevent compiler warning. */
@@ -74,11 +68,8 @@ main(argc, argv)
7468
*/
7569

7670
int
77-
Tcl_AppInit(interp)
78-
Tcl_Interp*interp;/* Interpreter for application. */
71+
Tcl_AppInit(Tcl_Interp*interp)
7972
{
80-
Tk_Windowmain;
81-
8273
if (Tcl_Init(interp)==TCL_ERROR) {
8374
returnTCL_ERROR;
8475
}
@@ -97,7 +88,7 @@ Tcl_AppInit(interp)
9788
* where "Mod" is the name of the module.
9889
*/
9990

100-
if (Pg_Init(interp)==TCL_ERROR) {
91+
if (Pgtcl_Init(interp)==TCL_ERROR) {
10192
returnTCL_ERROR;
10293
}
10394
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp