diff Modules/parsermodule.c @ 23832:ed1ba37a46b7 legacy-trunk

Patch #568124: Add doc string macros.
author Martin v. Löwis <martin@v.loewis.de>
date Thu, 13 Jun 2002 20:33:02 +0000
parents 9e67a0d5705f
children 1598a1e473e2
line wrap: on
line diff
--- a/Modules/parsermodule.c	Thu Jun 13 20:24:17 2002 +0000
+++ b/Modules/parsermodule.c	Thu Jun 13 20:33:02 2002 +0000
@@ -46,20 +46,17 @@
 /*  String constants used to initialize module attributes.
  *
  */
-static char*
-parser_copyright_string
-= "Copyright 1995-1996 by Virginia Polytechnic Institute & State\n\
+static char parser_copyright_string[] =
+"Copyright 1995-1996 by Virginia Polytechnic Institute & State\n\
 University, Blacksburg, Virginia, USA, and Fred L. Drake, Jr., Reston,\n\
 Virginia, USA.  Portions copyright 1991-1995 by Stichting Mathematisch\n\
 Centrum, Amsterdam, The Netherlands.";
 
 
-static char*
-parser_doc_string
-= "This is an interface to Python's internal parser.";
-
-static char*
-parser_version_string = "0.5";
+PyDoc_STRVAR(parser_doc_string,
+"This is an interface to Python's internal parser.");
+
+static char parser_version_string[] = "0.5";
 
 
 typedef PyObject* (*SeqMaker) (int length);