Staging
v0.5.1
https://github.com/python/cpython
Revision 5abe9125f9eb858fdaca966d687bb32387603f45 authored by Christian Heimes on 23 February 2008, 16:29:43 UTC, committed by Christian Heimes on 23 February 2008, 16:29:43 UTC
  svnmerge-blocked : /python/trunk:60480,60521-60522,60528-60529,60534,60539,60599,60707,60713,60879,60893,60899,60932,60962,60970,60978
  svnmerge-integrated : /python/trunk:1-60479,60481-60520,60523-60527,60530-60533,60535-60538,60540-60598,60600-60706,60708-60712,60714-60878,60880-60892,60894-60898,60900-60931,60933-60961,60963-60969,60971-60977,60979-60989
1 parent 8640e74
Raw File
Tip revision: 5abe9125f9eb858fdaca966d687bb32387603f45 authored by Christian Heimes on 23 February 2008, 16:29:43 UTC
Simplified svnmerge blocked and integrated. We are never ever going to integrate the blocked revisions. The old values were:
Tip revision: 5abe912
make_versioninfo.c
#include <stdio.h>
#include "patchlevel.h"
/*
 * This program prints out an include file containing fields required to build
 * the version info resource of pythonxx.dll because the resource compiler
 * cannot do the arithmetic.
 */
/*
 * FIELD3 is the third field of the version number.
 * This is what we'd like FIELD3 to be:
 *
 * #define FIELD3 (PY_MICRO_VERSION*1000 + PY_RELEASE_LEVEL*10 + PY_RELEASE_SERIAL)
 *
 * but that neither gives an error nor comes anywhere close to working.
 *
 * For 2.4a0,
 * PY_MICRO_VERSION = 0
 * PY_RELEASE_LEVEL = 'alpha' = 0xa
 * PY_RELEASE_SERIAL = 0
 *
 * gives FIELD3 = 0*1000 + 10*10 + 0 = 100
 */
int main(int argc, char **argv)
{
	printf("/* This file created by make_versioninfo.exe */\n");
	printf("#define FIELD3 %d\n",
		PY_MICRO_VERSION*1000 + PY_RELEASE_LEVEL*10 + PY_RELEASE_SERIAL);
	printf("#define MS_DLL_ID \"%d.%d\"\n",
	       PY_MAJOR_VERSION, PY_MINOR_VERSION);
	printf("#ifndef _DEBUG\n");
	printf("#define PYTHON_DLL_NAME \"python%d%d.dll\"\n",
	       PY_MAJOR_VERSION, PY_MINOR_VERSION);
	printf("#else\n");
	printf("#define PYTHON_DLL_NAME \"python%d%d_d.dll\"\n",
	       PY_MAJOR_VERSION, PY_MINOR_VERSION);
	printf("#endif\n");
	return 0;
}
back to top