@@ -974,26 +974,26 @@ to the module's variables, or additional data stored in the ``data`` field of
974
974
``YR_OBJECT `` structures as discussed earlier in
975
975
:ref: `storing-data-for-later-use `. But for that we need a way to get access to
976
976
the corresponding ``YR_OBJECT `` first. There are two functions to do that:
977
- ``module () `` and ``parent () ``. The ``module () `` function returns a pointer to
977
+ ``yr_module () `` and ``yr_parent () ``. The ``yr_module () `` function returns a pointer to
978
978
the top-level ``YR_OBJECT `` corresponding to the module, the same one passed
979
- to the ``module_load `` function. The ``parent () `` function returns a pointer to
979
+ to the ``module_load `` function. The ``yr_parent () `` function returns a pointer to
980
980
the ``YR_OBJECT `` corresponding to the structure where the function is
981
981
contained. For example, consider the following code snippet:
982
982
983
983
.. code-block :: c
984
984
985
985
define_function(f1)
986
986
{
987
- YR_OBJECT* module = module ();
988
- YR_OBJECT* parent = parent ();
987
+ YR_OBJECT* module = yr_module ();
988
+ YR_OBJECT* parent = yr_parent ();
989
989
990
990
// parent == module;
991
991
}
992
992
993
993
define_function(f2)
994
994
{
995
- YR_OBJECT* module = module ();
996
- YR_OBJECT* parent = parent ();
995
+ YR_OBJECT* module = yr_module ();
996
+ YR_OBJECT* parent = yr_parent ();
997
997
998
998
// parent != module;
999
999
}
@@ -1026,4 +1026,4 @@ you get a pointer to the ``YR_SCAN_CONTEXT`` structure:
1026
1026
1027
1027
.. code-block :: c
1028
1028
1029
- YR_SCAN_CONTEXT* context = scan_context ();
1029
+ YR_SCAN_CONTEXT* context = yr_scan_context ();
0 commit comments