Difference for plugins/cfpython/cfpython.c from version 1.19 to 1.20


version 1.19 version 1.20
Line 667
 
Line 667
     free(context);      free(context);
 }  }
   
 static int do_script(CFPContext* context)  static int do_script(CFPContext* context,int silent)
 {  {
     FILE*   scriptfile;      FILE*   scriptfile;
     PyObject* built;      PyObject* built;
Line 681
 
Line 681
     scriptfile = fopen(context->script,"r");      scriptfile = fopen(context->script,"r");
     if (scriptfile == NULL)      if (scriptfile == NULL)
     {      {
           if (!silent)
         printf( "cfpython - The Script file %s can't be opened\n",context->script);          printf( "cfpython - The Script file %s can't be opened\n",context->script);
         return 0;          return 0;
     }      }
Line 827
 
Line 828
     snprintf(context->options, sizeof(context->options), "%s", params);      snprintf(context->options, sizeof(context->options), "%s", params);
     context->returnvalue = 1; /* Default is "command successful" */      context->returnvalue = 1; /* Default is "command successful" */
   
     if (!do_script(context))      if (!do_script(context,0))
     {      {
         freeContext(context);          freeContext(context);
         return rv;          return rv;
Line 1005
 
Line 1006
     va_end(args);      va_end(args);
     context->returnvalue = 0;      context->returnvalue = 0;
   
     if (!do_script(context))      if (!do_script(context,1))
     {      {
         freeContext(context);          freeContext(context);
         return &rv;          return &rv;
Line 1047
 
Line 1048
   
     va_end(args);      va_end(args);
   
     if (!do_script(context))      if (!do_script(context,0))
     {      {
         freeContext(context);          freeContext(context);
         return &rv;          return &rv;


Legend:
line(s) removed in v.1.19 
line(s) changed
 line(s) added in v.1.20

File made using version 1.98 of cvs2html by leaf at 2011-07-21 16:59