Staging
v0.5.1
https://github.com/python/cpython
Revision bc212104e48eaaf2038c0a3f9dc2e1304a039a8b authored by Amaury Forgeot d'Arc on 04 February 2008, 23:51:55 UTC, committed by Amaury Forgeot d'Arc on 04 February 2008, 23:51:55 UTC
r60579 broke a test test_compile, which seems to test an "implementation detail" IMO.

Also test that this correction does not impact the debugger.
1 parent dcf8400
Raw File
Tip revision: bc212104e48eaaf2038c0a3f9dc2e1304a039a8b authored by Amaury Forgeot d'Arc on 04 February 2008, 23:51:55 UTC
No need to emit co_lnotab item when both offsets are zeros.
Tip revision: bc21210
strdup.c
/* strdup() replacement (from stdwin, if you must know) */

#include "pgenheaders.h"

char *
strdup(const char *str)
{
	if (str != NULL) {
		register char *copy = malloc(strlen(str) + 1);
		if (copy != NULL)
			return strcpy(copy, str);
	}
	return NULL;
}
back to top