Displaying 1 result from an estimated 1 matches for "old_prompt".
Did you mean:
old_prom
2014 Oct 27
0
Calling the original function after tweaking arguments is an incorrect use of the R-API?
...rompt.c and
occurs on line 38, I think.
void extPrompt() {
> // Initialize the plugin by replacing the R_ReadConsole function
> old_R_ReadConsole = ptr_R_ReadConsole;
> ptr_R_ReadConsole = extPrompt_ReadConsole;
> // ...
> }
> int extPrompt_ReadConsole(const char *old_prompt, unsigned char *buf, int
> len,
> int addtohistory) {
> // ...
> // Call the old function with the `new_prompt`
> return (*old_R_ReadConsole)(new_prompt, buf, len, addtohistory);
> }
I am trying to make the R_ReadConsole API call. However, since a different...