Sometimes a "GoTo implementation" (right mouse menu on function name) results in a positioning to the Declaration/Prototype.
I managed to have a single function in a file to isolate my problem even than it doesn't work.
Could some one tell me if this is a know issue in CodeLite or is there something wrong I'm doing, forgetting a setting?
Currently I'm using revision 1927 on Windows XP.
Code: Select all
static int set_SubstractNameValuea(char *aLine, char *aVariableName, char *aVariableValue);
static int set_SubstractNameValuea(char *aLine, char *aVariableName, char *aVariableValue)
{
int len =0;
int done=0;
int rt=0;
char variableName[MAX_NAME];
char variableValue[MAX_NAME];
aLine = StripLeadingSpaces(aLine);
if (aLine != NULL)
{
strcpy(variableName, aLine);
strcpy(variableValue, "");
while ((*aLine) && !(done)) {
char *ptr;
if (isspace(*aLine) || ('=' == *aLine)) {
variableName[len] = NUL;
// variablename = StripTrailingSpaces(aVariableName);
aLine = StripLeadingSpaces(aLine+1);
while ((aLine && '=' == *aLine) && (!done))
aLine = StripLeadingSpaces(aLine+1);
if (aLine) {
strcpy(variableValue, aLine);
if (NULL != (ptr = strrchr(variableValue, ';')) &&
NULL == strchr(ptr, '\"')) {
*ptr = NUL;
}
StripTrailingSpaces(variableValue);
}
done = 1;
} else {
aLine++;
len++;
}
}
if (done)
{
strcpy (aVariableName,variableName);
strcpy (aVariableValue,variableValue);
rt = 1;
}
}
return (rt);
}