OpenCores
URL https://opencores.org/ocsvn/qaz_libs/qaz_libs/trunk

Subversion Repositories qaz_libs

[/] [qaz_libs/] [trunk/] [BFM/] [sim/] [tests/] [tb_video_frame_dpi/] [py_dpi.c] - Diff between revs 44 and 45

Show entire file | Details | Blame | View Log

Rev 44 Rev 45
Line 88... Line 88...
 
 
  PySys_SetArgv(argc, w_argv);
  PySys_SetArgv(argc, w_argv);
 
 
  char pre_string[] = "exec(open('./";
  char pre_string[] = "exec(open('./";
  char post_string[] = "').read())";
  char post_string[] = "').read())";
  char v_filename[] = "try_it.py";
 
  unsigned int size = (sizeof(pre_string) + sizeof(post_string)) * sizeof(char);
  unsigned int size = (sizeof(pre_string) + sizeof(post_string)) * sizeof(char);
  size += strlen(filename);
  size += strlen(filename);
  char *run_string = (char *)malloc(size);
  char *run_string = (char *)malloc(size);
  sprintf(run_string, "%s%s%s", pre_string, filename, post_string);
  sprintf(run_string, "%s%s%s", pre_string, filename, post_string);
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2020 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.