Skip to content
Snippets Groups Projects
Commit 2a73e0a9 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

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
parent 388e5d9d
No related branches found
No related tags found
No related merge requests found
...@@ -193,6 +193,16 @@ o Pike_fp->context ...@@ -193,6 +193,16 @@ o Pike_fp->context
NOTE! C-API incompatibility! NOTE! C-API incompatibility!
NOTE! 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 Extensions and New Functions
o __attribute__ and __deprecated__ o __attribute__ and __deprecated__
...@@ -200,6 +210,12 @@ o __attribute__ and __deprecated__ ...@@ -200,6 +210,12 @@ o __attribute__ and __deprecated__
It's now possible to set custom attributes on types. This is It's now possible to set custom attributes on types. This is
currently used to improve the argument checking for sprintf() currently used to improve the argument checking for sprintf()
and related functions, and for marking symbols as deprecated. 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__ o __func__
...@@ -211,6 +227,17 @@ o __func__ ...@@ -211,6 +227,17 @@ o __func__
error("Error in " __func__ ".\n"); 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() o limit()
The new toplevel function limit(a, x, b) is a convenience function The new toplevel function limit(a, x, b) is a convenience function
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment