Kaydet (Commit) 793d8478 authored tarafından Georg Brandl's avatar Georg Brandl

merge with 3.3

...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
**.vsprops = BIN **.vsprops = BIN
**.aif = BIN **.aif = BIN
**.aifc = BIN
**.aiff = BIN
**.au = BIN **.au = BIN
**.bmp = BIN **.bmp = BIN
**.db = BIN **.db = BIN
...@@ -23,6 +25,7 @@ ...@@ -23,6 +25,7 @@
**.png = BIN **.png = BIN
**.psd = BIN **.psd = BIN
**.tar = BIN **.tar = BIN
**.wav = BIN
**.xar = BIN **.xar = BIN
**.zip = BIN **.zip = BIN
......
...@@ -73,10 +73,10 @@ class Annotations(dict): ...@@ -73,10 +73,10 @@ class Annotations(dict):
par = node.parent par = node.parent
if par['domain'] != 'c': if par['domain'] != 'c':
continue continue
if par['notlimited']: if par['stableabi']:
node.insert(0, nodes.emphasis(' Not part of the stable API.', node.insert(0, nodes.emphasis(' Part of the stable ABI.',
' Not part of the stable API.', ' Part of the stable ABI.',
classes=['notlimited'])) classes=['stableabi']))
if par['objtype'] != 'function': if par['objtype'] != 'function':
continue continue
if not par[0].has_key('names') or not par[0]['names']: if not par[0].has_key('names') or not par[0]['names']:
...@@ -108,10 +108,10 @@ def setup(app): ...@@ -108,10 +108,10 @@ def setup(app):
# monkey-patch C object... # monkey-patch C object...
CObject.option_spec = { CObject.option_spec = {
'noindex': directives.flag, 'noindex': directives.flag,
'notlimited': directives.flag, 'stableabi': directives.flag,
} }
old_handle_signature = CObject.handle_signature old_handle_signature = CObject.handle_signature
def new_handle_signature(self, sig, signode): def new_handle_signature(self, sig, signode):
signode.parent['notlimited'] = 'notlimited' in self.options signode.parent['stableabi'] = 'stableabi' in self.options
return old_handle_signature(self, sig, signode) return old_handle_signature(self, sig, signode)
CObject.handle_signature = new_handle_signature CObject.handle_signature = new_handle_signature
...@@ -173,6 +173,6 @@ div.footer a:hover { ...@@ -173,6 +173,6 @@ div.footer a:hover {
color: #060; color: #060;
} }
.notlimited { .stableabi {
color: #922; color: #229;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment