allow renaming of tablenodes
This commit is contained in:
@ -390,8 +390,8 @@ bool getAsKeyword(TableNode *definition) {
|
|||||||
}
|
}
|
||||||
if (strcmp(getType(definition), "primitive function") != 0) {
|
if (strcmp(getType(definition), "primitive function") != 0) {
|
||||||
printdebug(
|
printdebug(
|
||||||
"not checking if a function is called with as or not -- "
|
"not checking if a function is called with as or not (%s) -- "
|
||||||
"invalid op");
|
"invalid op", getType(definition));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return definition->additionalinfo->FunDecAdInfo->regularoras;
|
return definition->additionalinfo->FunDecAdInfo->regularoras;
|
||||||
@ -856,6 +856,11 @@ TableNode *addName(TableNode *tn, char *str) {
|
|||||||
printdebug(
|
printdebug(
|
||||||
"Name doesn't look like it is empty before you change. "
|
"Name doesn't look like it is empty before you change. "
|
||||||
"Are you sure you need to update name?");
|
"Are you sure you need to update name?");
|
||||||
|
if (str != NULL) {
|
||||||
|
tn->theName = str;
|
||||||
|
return tn;
|
||||||
|
}
|
||||||
|
printdebug("passed a NULL string to the addName function");
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
if (str == NULL) {
|
if (str == NULL) {
|
||||||
@ -1322,4 +1327,4 @@ TableNode *getNextEntry(TableNode *tn) {
|
|||||||
printdebug("The type of the first entry is %s",First_Entry->theType);
|
printdebug("The type of the first entry is %s",First_Entry->theType);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user