static void makeVhdlTag (tokenInfo * const token, const vhdlKind kind) { if (VhdlKinds[kind].enabled) { /* * If a scope has been added to the token, change the token * string to include the scope when making the tag. */ if (vStringLength (token->scope) > 0) { vString *fulltag = vStringNew (); vStringCopy (fulltag, token->scope); vStringPut (fulltag, '.'); vStringCat (fulltag, token->string); vStringCopy (token->string, fulltag); vStringDelete (fulltag); } makeConstTag (token, kind); } }
static void makeTexTag (tokenInfo *const token, texKind kind) { vString * fulltag; if (TexKinds [kind].enabled) { /* * If a scope has been added to the token, change the token * string to include the scope when making the tag. */ if ( vStringLength (token->scope) > 0 ) { fulltag = vStringNew (); vStringCopy (fulltag, token->scope); vStringCatS (fulltag, "."); vStringCatS (fulltag, vStringValue (token->string)); vStringTerminate (fulltag); vStringCopy (token->string, fulltag); vStringDelete (fulltag); } makeConstTag (token, kind); } }