|
From: <ai...@us...> - 2010-01-20 06:29:56
|
Revision: 10760
http://plplot.svn.sourceforge.net/plplot/?rev=10760&view=rev
Author: airwin
Date: 2010-01-20 06:29:50 +0000 (Wed, 20 Jan 2010)
Log Message:
-----------
Style recent changes.
Modified Paths:
--------------
trunk/drivers/tk.c
Modified: trunk/drivers/tk.c
===================================================================
--- trunk/drivers/tk.c 2010-01-20 03:33:06 UTC (rev 10759)
+++ trunk/drivers/tk.c 2010-01-20 06:29:50 UTC (rev 10760)
@@ -1375,7 +1375,7 @@
char command[CMD_LEN];
unsigned int bg;
char *tmp;
- int i,n;
+ int i, n;
dbug_enter( "plwindow_init" );
@@ -1383,15 +1383,16 @@
* and with ' ' replaced by '_' and all other '.' by '_' to avoid
* quoting and bad window name problems. Also avoid name starting with
* an upper case letter. */
- n = strlen(pls->plwindow)+1;
- tmp = (char *)malloc(sizeof(char)*(n+1));
- sprintf(tmp,".%s",pls->plwindow);
- for (i=1;i<n;i++) {
- if ( (tmp[i] == ' ') || (tmp[i] == '.') ) tmp[i] = '_';
+ n = strlen( pls->plwindow ) + 1;
+ tmp = (char *) malloc( sizeof ( char ) * ( n + 1 ));
+ sprintf( tmp, ".%s", pls->plwindow );
+ for ( i = 1; i < n; i++ )
+ {
+ if (( tmp[i] == ' ' ) || ( tmp[i] == '.' )) tmp[i] = '_';
}
- if (isupper(tmp[1])) tmp[1] = tolower(tmp[1]);
+ if ( isupper( tmp[1] )) tmp[1] = tolower( tmp[1] );
Tcl_SetVar( dev->interp, "plwindow", tmp, 0 );
- free(tmp);
+ free( tmp );
/* Create the plframe widget & anything else you want with it. */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|