From 2a73e0a9ddce72584fe8349cf42c2d59f5849da5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Fri, 30 May 2008 13:48:01 +0200 Subject: [PATCH] Added note about #pragma {no_,}deprecation_warnings. Added some examples about how to use __deprecated__. Added note about API-change needed to implement object subtypes. Rev: CHANGES:1.99 --- CHANGES | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/CHANGES b/CHANGES index f33760e9d8..0b5255e506 100644 --- a/CHANGES +++ b/CHANGES @@ -193,6 +193,16 @@ o Pike_fp->context NOTE! C-API incompatibility! NOTE! +o Inherit level argument added to several object handling functions. + + In order to implement subtyping of objects, and extra argument + "inherit_level" has been added to many object indexing related + functions. + + NOTE! + NOTE! C-API incompatibility! + NOTE! + Extensions and New Functions o __attribute__ and __deprecated__ @@ -200,6 +210,12 @@ o __attribute__ and __deprecated__ It's now possible to set custom attributes on types. This is currently used to improve the argument checking for sprintf() and related functions, and for marking symbols as deprecated. + eg: + + __deprecated__ mixed obsolete_function(); + __deprecated__(mixed) obsolete_return_value(); + mixed fun(__deprecated__(mixed) obsolete_arg); + __deprecated__(mixed) obsolete_variable; o __func__ @@ -211,6 +227,17 @@ o __func__ error("Error in " __func__ ".\n"); +o #pragma {no_,}deprecation_warnings + + Warnings for use of deprecated symbols can be turned off for a + segment of code with + + #pragma no_deprecation_warnings + + and turned on again with + + #pragma deprecation_warnings + o limit() The new toplevel function limit(a, x, b) is a convenience function -- GitLab