Mercurial > octave
comparison libinterp/corefcn/symtab.h @ 21040:3e7cfee5f786
maint: Rename attributes GCC_ATTR_XXX to OCTAVE_XXX.
* oct-conf-post.in.h: Rename macros GCC_ATTR_XXX to OCTAVE_XXX. Add comments
describing purpose of macros. Add FIXME note about switching macros to C++
standard convention. Add FIXME note about using visibility attributes.
* error.cc, error.h, gripes.h, jit-typeinfo.cc, load-save.cc, oct-stream.cc,
pt-jit.cc, symtab.h, variables.h, ov-base-sparse.h, ov-base.cc, ov-base.h,
ov-class.cc, ov-classdef.cc, ov-classdef.h, ov.cc, ov.h, octave.cc, pt-mat.cc,
Array.h, DiagArray2.h, PermMatrix.h, Range.h, Sparse.h, dSparse.h, f77-fcn.h,
lo-error.c, lo-error.h, quit.h, SparseCmplxQR.cc, lo-array-gripes.h,
unwind-prot.h: Rename attributes GCC_ATTR_XXX to OCTAVE_XXX.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 05 Jan 2016 14:16:58 -0800 |
parents | e3b3bb522d62 |
children | 258c787cd9ce |
comparison
equal
deleted
inserted
replaced
21039:53bded18aba6 | 21040:3e7cfee5f786 |
---|---|
1338 if (inst) | 1338 if (inst) |
1339 inst->do_assign (name, value, context, force_add); | 1339 inst->do_assign (name, value, context, force_add); |
1340 } | 1340 } |
1341 | 1341 |
1342 // Use assign (name, value, scope, context, force_add) instead. | 1342 // Use assign (name, value, scope, context, force_add) instead. |
1343 GCC_ATTR_DEPRECATED static | 1343 OCTAVE_DEPRECATED static |
1344 octave_value& | 1344 octave_value& |
1345 varref (const std::string& name, scope_id scope = xcurrent_scope, | 1345 varref (const std::string& name, scope_id scope = xcurrent_scope, |
1346 context_id context = xdefault_context, bool force_add = false) | 1346 context_id context = xdefault_context, bool force_add = false) |
1347 { | 1347 { |
1348 static octave_value foobar; | 1348 static octave_value foobar; |
1362 { | 1362 { |
1363 assign (name, value, scope, context, true); | 1363 assign (name, value, scope, context, true); |
1364 } | 1364 } |
1365 | 1365 |
1366 // Use force_assign (name, value, scope, context) instead. | 1366 // Use force_assign (name, value, scope, context) instead. |
1367 GCC_ATTR_DEPRECATED static | 1367 OCTAVE_DEPRECATED static |
1368 octave_value& | 1368 octave_value& |
1369 force_varref (const std::string& name, scope_id scope = xcurrent_scope, | 1369 force_varref (const std::string& name, scope_id scope = xcurrent_scope, |
1370 context_id context = xdefault_context) | 1370 context_id context = xdefault_context) |
1371 { | 1371 { |
1372 static octave_value foobar; | 1372 static octave_value foobar; |
1397 else | 1397 else |
1398 p->second = value; | 1398 p->second = value; |
1399 } | 1399 } |
1400 | 1400 |
1401 // Use global_assign (name, value) instead. | 1401 // Use global_assign (name, value) instead. |
1402 GCC_ATTR_DEPRECATED static | 1402 OCTAVE_DEPRECATED static |
1403 octave_value& | 1403 octave_value& |
1404 global_varref (const std::string& name) | 1404 global_varref (const std::string& name) |
1405 | 1405 |
1406 { | 1406 { |
1407 global_table_iterator p = global_table.find (name); | 1407 global_table_iterator p = global_table.find (name); |
1423 { | 1423 { |
1424 assign (name, value, top_scope (), 0); | 1424 assign (name, value, top_scope (), 0); |
1425 } | 1425 } |
1426 | 1426 |
1427 // Use top_level_assign (name, value) instead. | 1427 // Use top_level_assign (name, value) instead. |
1428 GCC_ATTR_DEPRECATED static | 1428 OCTAVE_DEPRECATED static |
1429 octave_value& | 1429 octave_value& |
1430 top_level_varref (const std::string& name) | 1430 top_level_varref (const std::string& name) |
1431 { | 1431 { |
1432 static octave_value foobar; | 1432 static octave_value foobar; |
1433 | 1433 |
1451 if (inst) | 1451 if (inst) |
1452 inst->do_persistent_assign (name, value); | 1452 inst->do_persistent_assign (name, value); |
1453 } | 1453 } |
1454 | 1454 |
1455 // Use persistent_assign (name, value) instead. | 1455 // Use persistent_assign (name, value) instead. |
1456 GCC_ATTR_DEPRECATED static | 1456 OCTAVE_DEPRECATED static |
1457 octave_value& | 1457 octave_value& |
1458 persistent_varref (const std::string& name) | 1458 persistent_varref (const std::string& name) |
1459 { | 1459 { |
1460 static octave_value foobar; | 1460 static octave_value foobar; |
1461 | 1461 |