version 1.23, 2011/06/24 20:31:34
|
version 1.73, 2025/04/15 10:17:50
|
Line 1
|
Line 1
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.1.0.prerelease.4 |
RPL/2 (R) version 4.1.36 |
Copyright (C) 1989-2011 Dr. BERTRAND Joël |
Copyright (C) 1989-2025 Dr. BERTRAND Joël |
|
|
This file is part of RPL/2. |
This file is part of RPL/2. |
|
|
Line 38
|
Line 38
|
void |
void |
initialisation_completion() |
initialisation_completion() |
{ |
{ |
rl_attempted_completion_function = (CPPFunction *) completion_rpl; |
rl_attempted_completion_function = (rl_completion_func_t *) completion_rpl; |
} |
} |
|
|
|
|
Line 56 generateur_commandes(char *texte, int et
|
Line 56 generateur_commandes(char *texte, int et
|
char *tampon; |
char *tampon; |
|
|
static int indice; |
static int indice; |
static int longueur; |
static size_t longueur; |
|
|
# define COMPLETION |
# define COMPLETION |
# include "completion-conv.h" |
# include "completion-conv.h" |
Line 73 generateur_commandes(char *texte, int et
|
Line 73 generateur_commandes(char *texte, int et
|
|
|
if (strncmp(nom, texte, longueur) == 0) |
if (strncmp(nom, texte, longueur) == 0) |
{ |
{ |
tampon = malloc((strlen(nom) + 1) * sizeof(char)); |
tampon = sys_malloc((strlen(nom) + 1) * sizeof(char)); |
|
|
if (tampon == NULL) |
if (tampon == NULL) |
{ |
{ |