Staging
v0.5.1
https://github.com/python/cpython
Revision 6d0bc3e9f4ca48e43b823f7c4207d5549824a24a authored by Andrew M. Kuchling on 05 October 2006, 19:25:26 UTC, committed by Andrew M. Kuchling on 05 October 2006, 19:25:26 UTC
Handle a whole lot of failures from PyString_FromInternedString().

Should fix most of Klocwork 234-272.

[Backport r51400 | neal.norwitz]

Move initialization of interned strings to before allocating the
object so we don't leak op.  (Fixes an earlier patch to this code)

Klockwork #350
1 parent 154a884
Raw File
Tip revision: 6d0bc3e9f4ca48e43b823f7c4207d5549824a24a authored by Andrew M. Kuchling on 05 October 2006, 19:25:26 UTC
[Backport r51246 | neal.norwitz]
Tip revision: 6d0bc3e
WETabHooks.h
/*
 *	WETabHooks.h
 *
 *	WASTE TABS PACKAGE
 *	Private (internal) interface
 *
 *	Copyright (c) 1993-1998 Marco Piovanelli
 *	All Rights Reserved
 *
 */


#ifndef WITHOUT_FRAMEWORKS
#include <Carbon/Carbon.h>
#endif
#ifndef _WASTE_
#include "WASTE.h"
#endif

enum {
	kTabSizeTag			=	'tbsz'
};

#ifdef __cplusplus
extern "C" {
#endif

pascal void _WETabDrawText(const char *, SInt32, Fixed, JustStyleCode, WEReference);
pascal SInt32 _WETabPixelToChar(const char *, SInt32, Fixed, Fixed *, WEEdge *, JustStyleCode, Fixed, WEReference);
pascal SInt16 _WETabCharToPixel(const char *, SInt32, Fixed, SInt32, SInt16, JustStyleCode, SInt16, WEReference);
pascal StyledLineBreakCode _WETabLineBreak(const char *, SInt32, SInt32, SInt32, Fixed *, SInt32 *, WEReference);

#ifdef __cplusplus
}
#endif
back to top