Update of /cvsroot/pure-data/pd/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3553/src
Modified Files:
Tag: devel_0_38
s_main.c s_path.c
Log Message:
conform to standard C, added prototype
Index: s_main.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/s_main.c,v
retrieving revision 1.7.4.16
retrieving revision 1.7.4.17
diff -C2 -d -r1.7.4.16 -r1.7.4.17
*** s_main.c 2 May 2005 08:36:17 -0000 1.7.4.16
--- s_main.c 6 May 2005 10:36:30 -0000 1.7.4.17
***************
*** 572,575 ****
--- 572,578 ----
#endif
+ /* defined in s_path.c */
+ int sys_parsercfile(char*filename);
+
int sys_argparse(int argc, char **argv)
{
***************
*** 818,822 ****
else if (!strcmp(*argv, "-rcfile"))
{
! sys_parsercfile(*(argv+1));
argc -= 2;
argv += 2;
--- 821,825 ----
else if (!strcmp(*argv, "-rcfile"))
{
! sys_parsercfile(*(argv+1));
argc -= 2;
argv += 2;
Index: s_path.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/s_path.c,v
retrieving revision 1.3.4.5
retrieving revision 1.3.4.6
diff -C2 -d -r1.3.4.5 -r1.3.4.6
*** s_path.c 2 May 2005 08:36:17 -0000 1.3.4.5
--- s_path.c 6 May 2005 10:36:30 -0000 1.3.4.6
***************
*** 373,376 ****
--- 373,377 ----
char* buffer;
char buf[1000];
+ char c[MAXPDSTRING];
/* parse a startup file */
***************
*** 385,389 ****
/* tb: comments in pdrc file { */
i=1;
- char c[MAXPDSTRING];
while ( (fgets(c,MAXPDSTRING,file)) != 0)
{
--- 386,389 ----
***************
*** 454,458 ****
strcat(fname, STARTUPNAME);
! return sys_parsercfile(fname);
}
--- 454,458 ----
strcat(fname, STARTUPNAME);
! return sys_parsercfile(fname);
}