mirror of
https://github.com/RubyMetric/chsrc
synced 2025-08-14 08:29:32 +08:00
Call chef_debug_target()
This commit is contained in:
parent
7c1b3c2a91
commit
1be3dc2a0b
@ -38,7 +38,7 @@
|
|||||||
* ------------------------------------------------------------*/
|
* ------------------------------------------------------------*/
|
||||||
|
|
||||||
#define Chsrc_Version "0.2.2.3"
|
#define Chsrc_Version "0.2.2.3"
|
||||||
#define Chsrc_Release_Date "2025/08/10"
|
#define Chsrc_Release_Date "2025/08/11"
|
||||||
#define Chsrc_Maintain_URL "https://github.com/RubyMetric/chsrc"
|
#define Chsrc_Maintain_URL "https://github.com/RubyMetric/chsrc"
|
||||||
#define Chsrc_Maintain_URL2 "https://gitee.com/RubyMetric/chsrc"
|
#define Chsrc_Maintain_URL2 "https://gitee.com/RubyMetric/chsrc"
|
||||||
|
|
||||||
@ -683,6 +683,8 @@ get_target (const char *input, TargetOp code, char *option)
|
|||||||
cli_notify_lastly_for_users();
|
cli_notify_lastly_for_users();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
chef_debug_target (target);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||||
* Contributors : Nul None <nul@none.org>
|
* Contributors : Nul None <nul@none.org>
|
||||||
* Created On : <2025-08-09>
|
* Created On : <2025-08-09>
|
||||||
* Last Modified : <2025-08-10>
|
* Last Modified : <2025-08-11>
|
||||||
*
|
*
|
||||||
* chef DSL: for chefs (recipe makers) to define a target
|
* chef DSL: for chefs (recipe makers) to define a target
|
||||||
* ------------------------------------------------------------*/
|
* ------------------------------------------------------------*/
|
||||||
@ -223,8 +223,12 @@ chef_set_sources_last_updated (Target_t *target, char *date)
|
|||||||
void
|
void
|
||||||
chef_debug_target (Target_t *target)
|
chef_debug_target (Target_t *target)
|
||||||
{
|
{
|
||||||
|
#ifdef XY_DEBUG
|
||||||
if (!target)
|
if (!target)
|
||||||
|
{
|
||||||
|
chsrc_debug2 ("t", "Target is NULL");
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
say ("Debug Target Information:");
|
say ("Debug Target Information:");
|
||||||
printf (" Get Function: %p\n", target->getfn);
|
printf (" Get Function: %p\n", target->getfn);
|
||||||
@ -232,6 +236,13 @@ chef_debug_target (Target_t *target)
|
|||||||
printf (" Reset Function: %p\n", target->resetfn);
|
printf (" Reset Function: %p\n", target->resetfn);
|
||||||
printf (" Sources: %p\n", target->sources);
|
printf (" Sources: %p\n", target->sources);
|
||||||
printf (" Sources Count: %lld\n", target->sources_n);
|
printf (" Sources Count: %lld\n", target->sources_n);
|
||||||
|
|
||||||
|
printf (" Authors: %p\n", target->authors);
|
||||||
|
printf (" Authors Count: %lld\n", target->authors_n);
|
||||||
|
printf (" Chef: %p\n", target->chef);
|
||||||
|
printf (" Cooks: %p\n", target->cooks);
|
||||||
|
printf (" Cooks Count: %lld\n", target->cooks_n);
|
||||||
printf (" Contributors: %p\n", target->contributors);
|
printf (" Contributors: %p\n", target->contributors);
|
||||||
printf (" Contributors Count: %lld\n", target->contributors_n);
|
printf (" Contributors Count: %lld\n", target->contributors_n);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user