X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-xmltooling.git;a=blobdiff_plain;f=xmltooling%2Fversion.h;h=62618110f3738d0fdf66119a3c10514fd3b0c312;hp=adf0181568368d9a58d7a11451327f40f68453de;hb=e93ce2c962c535ff88f26427e9aeb572f83976e1;hpb=c3eaaebd67a820207b22b61fed6c626c39245a2f diff --git a/xmltooling/version.h b/xmltooling/version.h index adf0181..6261811 100644 --- a/xmltooling/version.h +++ b/xmltooling/version.h @@ -1,74 +1,80 @@ -/* - * Copyright 2001-2006 Internet2 - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * @file version.h - * - * Library version macros and constants - */ - -#if !defined(__xmltooling_version_h__) -#define __xmltooling_version_h__ - -// This is all based on Xerces, on the theory it might be useful to -// support this kind of stuff in the future. If they ever yank some -// of this stuff, it can be copied into here. - -#include - -// --------------------------------------------------------------------------- -// V E R S I O N S P E C I F I C A T I O N - -/** - * MODIFY THESE NUMERIC VALUES TO COINCIDE WITH XMLTOOLING VERSION - * AND DO NOT MODIFY ANYTHING ELSE IN THIS VERSION HEADER FILE - */ - -#define XMLTOOLING_VERSION_MAJOR 1 -#define XMLTOOLING_VERSION_MINOR 0 -#define XMLTOOLING_VERSION_REVISION 0 - -/** DO NOT MODIFY BELOW THIS LINE */ - -/** - * MAGIC THAT AUTOMATICALLY GENERATES THE FOLLOWING: - * - * gXMLToolingVersionStr, gXMLToolingFullVersionStr, gXMLToolingMajVersion, gXMLToolingMinVersion, gXMLToolingRevision - */ - -// --------------------------------------------------------------------------- -// V E R S I O N I N F O R M A T I O N - -// XMLTooling version strings; these particular macros cannot be used for -// conditional compilation as they are not numeric constants - -#define XMLTOOLING_FULLVERSIONSTR INVK_CAT3_SEP_UNDERSCORE(XMLTOOLING_VERSION_MAJOR,XMLTOOLING_VERSION_MINOR,XMLTOOLING_VERSION_REVISION) -#define XMLTOOLING_FULLVERSIONDOT INVK_CAT3_SEP_PERIOD(XMLTOOLING_VERSION_MAJOR,XMLTOOLING_VERSION_MINOR,XMLTOOLING_VERSION_REVISION) -#define XMLTOOLING_FULLVERSIONNUM INVK_CAT3_SEP_NIL(XMLTOOLING_VERSION_MAJOR,XMLTOOLING_VERSION_MINOR,XMLTOOLING_VERSION_REVISION) -#define XMLTOOLING_VERSIONSTR INVK_CAT2_SEP_UNDERSCORE(XMLTOOLING_VERSION_MAJOR,XMLTOOLING_VERSION_MINOR) - -const char* const gXMLToolingVersionStr = XMLTOOLING_VERSIONSTR; -const char* const gXMLToolingFullVersionStr = XMLTOOLING_FULLVERSIONSTR; -const unsigned int gXMLToolingMajVersion = XMLTOOLING_VERSION_MAJOR; -const unsigned int gXMLToolingMinVersion = XMLTOOLING_VERSION_MINOR; -const unsigned int gXMLToolingRevision = XMLTOOLING_VERSION_REVISION; - -// XMLTooling version numeric constants that can be used for conditional -// compilation purposes. - -#define _XMLTOOLING_VERSION CALC_EXPANDED_FORM (XMLTOOLING_VERSION_MAJOR,XMLTOOLING_VERSION_MINOR,XMLTOOLING_VERSION_REVISION) - -#endif // __xmltooling_version_h__ +/** + * Licensed to the University Corporation for Advanced Internet + * Development, Inc. (UCAID) under one or more contributor license + * agreements. See the NOTICE file distributed with this work for + * additional information regarding copyright ownership. + * + * UCAID licenses this file to you under the Apache License, + * Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the + * License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific + * language governing permissions and limitations under the License. + */ + +/** + * xmltooling/version.h + * + * Library version macros and constants. + */ + +#if !defined(__xmltooling_version_h__) +#define __xmltooling_version_h__ + +// This is all based on Xerces, on the theory it might be useful to +// support this kind of stuff in the future. If they ever yank some +// of this stuff, it can be copied into here. + +#include +#include + +// --------------------------------------------------------------------------- +// V E R S I O N S P E C I F I C A T I O N + +/** + * MODIFY THESE NUMERIC VALUES TO COINCIDE WITH XMLTOOLING VERSION + * AND DO NOT MODIFY ANYTHING ELSE IN THIS VERSION HEADER FILE + */ + +#define XMLTOOLING_VERSION_MAJOR 1 +#define XMLTOOLING_VERSION_MINOR 5 +#define XMLTOOLING_VERSION_REVISION 0 + +/** DO NOT MODIFY BELOW THIS LINE */ + +/** + * MAGIC THAT AUTOMATICALLY GENERATES THE FOLLOWING: + * + * gXMLToolingVersionStr, gXMLToolingFullVersionStr, gXMLToolingMajVersion, gXMLToolingMinVersion, gXMLToolingRevision + */ + +// --------------------------------------------------------------------------- +// V E R S I O N I N F O R M A T I O N + +// XMLTooling version strings; these particular macros cannot be used for +// conditional compilation as they are not numeric constants + +#define XMLTOOLING_FULLVERSIONSTR INVK_CAT3_SEP_UNDERSCORE(XMLTOOLING_VERSION_MAJOR,XMLTOOLING_VERSION_MINOR,XMLTOOLING_VERSION_REVISION) +#define XMLTOOLING_FULLVERSIONDOT INVK_CAT3_SEP_PERIOD(XMLTOOLING_VERSION_MAJOR,XMLTOOLING_VERSION_MINOR,XMLTOOLING_VERSION_REVISION) +#define XMLTOOLING_FULLVERSIONNUM INVK_CAT3_SEP_NIL(XMLTOOLING_VERSION_MAJOR,XMLTOOLING_VERSION_MINOR,XMLTOOLING_VERSION_REVISION) +#define XMLTOOLING_VERSIONSTR INVK_CAT2_SEP_UNDERSCORE(XMLTOOLING_VERSION_MAJOR,XMLTOOLING_VERSION_MINOR) + +extern XMLTOOL_API const char* const gXMLToolingVersionStr; +extern XMLTOOL_API const char* const gXMLToolingFullVersionStr; +extern XMLTOOL_API const char* const gXMLToolingDotVersionStr; +extern XMLTOOL_API const unsigned int gXMLToolingMajVersion; +extern XMLTOOL_API const unsigned int gXMLToolingMinVersion; +extern XMLTOOL_API const unsigned int gXMLToolingRevision; + +// XMLTooling version numeric constants that can be used for conditional +// compilation purposes. + +#define _XMLTOOLING_VERSION CALC_EXPANDED_FORM (XMLTOOLING_VERSION_MAJOR,XMLTOOLING_VERSION_MINOR,XMLTOOLING_VERSION_REVISION) + +#endif // __xmltooling_version_h__