added python script files to MSVC 6.0 projectfiles and changed snprintf to PyOS_snprintf

This commit is contained in:
Roel Spruit 2004-01-14 21:48:56 +00:00
parent 0d9d16e6e9
commit 8df5de525c
2 changed files with 10 additions and 1 deletions

@ -111,6 +111,10 @@ SOURCE=..\..\..\source\blender\python\BPY_interface.c
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=..\..\..\source\blender\python\BPY_menus.c
# End Source File
# Begin Source File
SOURCE=..\..\..\source\blender\python\api2_2x\Build.c SOURCE=..\..\..\source\blender\python\api2_2x\Build.c
# End Source File # End Source File
# Begin Source File # Begin Source File
@ -263,6 +267,10 @@ SOURCE=..\..\..\source\blender\python\BPY_extern.h
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=..\..\..\source\blender\python\BPY_menus.h
# End Source File
# Begin Source File
SOURCE=..\..\..\source\blender\python\api2_2x\bpy_types.h SOURCE=..\..\..\source\blender\python\api2_2x\bpy_types.h
# End Source File # End Source File
# Begin Source File # Begin Source File

@ -42,6 +42,7 @@
#include <string.h> #include <string.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <Python.h>
#ifndef WIN32 #ifndef WIN32
#include <dirent.h> #include <dirent.h>
@ -103,7 +104,7 @@ char *BPyMenu_CreatePupmenuStr(BPyMenu *pym, short menugroup)
str[0] = '\0'; str[0] = '\0';
snprintf(str2, sizeof(str2), "%s: %s%%t", PyOS_snprintf(str2, sizeof(str2), "%s: %s%%t",
BPyMenu_group_itoa(menugroup), pym->name); BPyMenu_group_itoa(menugroup), pym->name);
strcat(str, str2); strcat(str, str2);