Adding PACKAGE_PATCHLEVEL to an extension
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Adding PACKAGE_PATCHLEVEL to an extension

From: Tim Baker <tnbaker1@shaw.ca>
Date: Sat May 28 2005 - 23:29:58 CEST

I added these lines to my configure.ac file:

AC_SUBST([PACKAGE_PATCHLEVEL], [1.0.1])
AC_DEFINE_UNQUOTED(PACKAGE_PATCHLEVEL, "$PACKAGE_PATCHLEVEL")

This passes -DPACKAGE_PATCHLEVEL=\"1.0.1\" to the compiler.

My question is, should I call Tcl_PkgProvide("1.0.1") or just
Tcl_PkgProvide("1.0")?
Tcl and Tk pass 8.4 not 8.4.9, while the Tile extension passes 0.6.3 not
0.6.

Also, should my pkgIndex.tcl file call "package provide MyPkg 1.0.1" or
"package provide MyPkg 1.0"? It seems the Tile Windows pkgIndex.tcl file
uses 0.6 while the Tile Unix pkgIndex.tcl file uses 0.6.3.

-- Tim Baker
Received on Thu Sep 29 14:19:34 2005