File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,34 +44,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
4444
4545static PyObject * MacOS_Error ; /* Exception MacOS.Error */
4646
47- /* Convert a ResType argument */
48- static int
49- GetOSType (PyObject * v , ResType * pr )
50- {
51- if (!PyString_Check (v ) || PyString_Size (v ) != 4 ) {
52- PyErr_SetString (MacOS_Error ,
53- "OSType arg must be string of 4 chars" );
54- return 0 ;
55- }
56- memcpy ((char * )pr , PyString_AsString (v ), 4 );
57- return 1 ;
58- }
59-
60- /* Convert a Str255 argument */
61- static int
62- GetStr255 (PyObject * v , Str255 pbuf )
63- {
64- int len ;
65- if (!PyString_Check (v ) || (len = PyString_Size (v )) > 255 ) {
66- PyErr_SetString (MacOS_Error ,
67- "Str255 arg must be string of at most 255 chars" );
68- return 0 ;
69- }
70- pbuf [0 ] = len ;
71- memcpy ((char * )(pbuf + 1 ), PyString_AsString (v ), len );
72- return 1 ;
73- }
74-
7547/*----------------------------------------------------------------------*/
7648/* Resource objects */
7749
You can’t perform that action at this time.
0 commit comments