Rev 503 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 503 | Rev 505 | ||
---|---|---|---|
Line 45... | Line 45... | ||
45 | PIDISPOSEHANDLE(h); /* Not 100% sure if we are supposed to dispose of handle. It doesn't crash though */ |
45 | PIDISPOSEHANDLE(h); /* Not 100% sure if we are supposed to dispose of handle. It doesn't crash though */ |
46 | return e; |
46 | return e; |
47 | } |
47 | } |
48 | 48 | ||
49 | char* get_cstring(PIReadDescriptor token) { |
49 | char* get_cstring(PIReadDescriptor token) { |
50 | int n; |
50 | size_t n; |
51 | Ptr p; |
51 | Ptr p; |
52 | char* str = NULL; |
52 | char* str = NULL; |
53 | Handle h; |
53 | Handle h; |
54 | OSErr e = PIGetText(token, &h); |
54 | OSErr e = PIGetText(token, &h); |
55 | 55 |