[PD-cvs] pd/src t_main.c, 1.2.8.1, 1.2.8.2 t_tkcmd.c, 1.2.4.1.2.6, 1.2.4.1.2.7 u_pdreceive.c, 1.2, 1.2.8.1

Mathieu Bouchard matju at users.sourceforge.net
Fri Oct 28 13:01:43 CEST 2005


Update of /cvsroot/pure-data/pd/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1424

Modified Files:
      Tag: devel_0_39
	t_main.c t_tkcmd.c u_pdreceive.c 
Log Message:
C++ support


Index: u_pdreceive.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/u_pdreceive.c,v
retrieving revision 1.2
retrieving revision 1.2.8.1
diff -C2 -d -r1.2 -r1.2.8.1
*** u_pdreceive.c	6 Sep 2004 20:20:36 -0000	1.2
--- u_pdreceive.c	28 Oct 2005 11:01:41 -0000	1.2.8.1
***************
*** 124,128 ****
      if (fd >= maxfd) maxfd = fd + 1;
      fp->fdp_inhead = fp->fdp_intail = 0;
!     if (!(fp->fdp_inbuf = malloc(BUFSIZE)))
      {
          fprintf(stderr, "out of memory");
--- 124,128 ----
      if (fd >= maxfd) maxfd = fd + 1;
      fp->fdp_inhead = fp->fdp_intail = 0;
!     if (!(fp->fdp_inbuf = (char *) malloc(BUFSIZE)))
      {
          fprintf(stderr, "out of memory");

Index: t_tkcmd.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/t_tkcmd.c,v
retrieving revision 1.2.4.1.2.6
retrieving revision 1.2.4.1.2.7
diff -C2 -d -r1.2.4.1.2.6 -r1.2.4.1.2.7
*** t_tkcmd.c	16 Oct 2005 10:46:40 -0000	1.2.4.1.2.6
--- t_tkcmd.c	28 Oct 2005 11:01:41 -0000	1.2.4.1.2.7
***************
*** 125,129 ****
      if (!pd_tkbuf)
      {
!         if (!(pd_tkbuf = malloc(CHUNKSIZE)))
          {
              fprintf(stderr, "pd-gui: out of memory\n");
--- 125,129 ----
      if (!pd_tkbuf)
      {
!         if (!(pd_tkbuf = (char *) malloc(CHUNKSIZE)))
          {
              fprintf(stderr, "pd-gui: out of memory\n");
***************
*** 135,139 ****
      {   
          int newsize = pd_tkbufsize + CHUNKSIZE;
!         char *newbuf = realloc(pd_tkbuf, newsize);
          if (!newbuf)
          {
--- 135,139 ----
      {   
          int newsize = pd_tkbufsize + CHUNKSIZE;
!         char *newbuf = (char *) realloc(pd_tkbuf, newsize);
          if (!newbuf)
          {
***************
*** 198,202 ****
                      if (gotcr - (pd_tkbuf+pd_bufhead) < 998)
                          realcmdbuf = smallcmdbuf;
!                     else realcmdbuf = malloc(bytesincmd+1);
                      if (realcmdbuf)
                      {
--- 198,202 ----
                      if (gotcr - (pd_tkbuf+pd_bufhead) < 998)
                          realcmdbuf = smallcmdbuf;
!                     else realcmdbuf = (char *) malloc(bytesincmd+1);
                      if (realcmdbuf)
                      {
***************
*** 599,603 ****
      else str = "./", n = 2;
      if (n > GUISTRING-100) n = GUISTRING-100;
!     pdgui_path = malloc(n+9);
  
      strncpy(pdgui_path, str, n);
--- 599,603 ----
      else str = "./", n = 2;
      if (n > GUISTRING-100) n = GUISTRING-100;
!     pdgui_path = (char *) malloc(n+9);
  
      strncpy(pdgui_path, str, n);

Index: t_main.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/t_main.c,v
retrieving revision 1.2.8.1
retrieving revision 1.2.8.2
diff -C2 -d -r1.2.8.1 -r1.2.8.2
*** t_main.c	12 Jul 2005 15:11:12 -0000	1.2.8.1
--- t_main.c	28 Oct 2005 11:01:40 -0000	1.2.8.2
***************
*** 83,89 ****
  
  int
! Tcl_AppInit(interp)
!     Tcl_Interp *interp;         /* Interpreter for application. */
! {
      Tk_Window mainwindow;
  
--- 83,89 ----
  
  int
! Tcl_AppInit(
!     Tcl_Interp *interp /* Interpreter for application. */
! ) {
      Tk_Window mainwindow;
  





More information about the Pd-cvs mailing list