Esempio n. 1
0
//===========================================================================
//
// Parameter:               -
// Returns:                 -
// Changes Globals:     -
//===========================================================================
void SetScriptPunctuations(script_t* script, punctuation_t* p) {
#ifdef PUNCTABLE
    if (p) PS_CreatePunctuationTable(script, p);
    else  PS_CreatePunctuationTable(script, default_punctuations);
#endif //PUNCTABLE
    if (p) script->punctuations = p;
    else script->punctuations = default_punctuations;
} //end of the function SetScriptPunctuations
Esempio n. 2
0
void SetScriptPunctuations( script_t* script, punctuation_t* p ) {
	if ( p ) {
		PS_CreatePunctuationTable( script, p );
		script->punctuations = p;
	} else {
		PS_CreatePunctuationTable( script, default_punctuations );
		script->punctuations = default_punctuations;
	}
}
Esempio n. 3
0
/**
 * @brief Set an array with punctuations, NULL restores default C/C++ set
 * @param[in,out] script
 * @param[in] p
 */
void SetScriptPunctuations(script_t *script, punctuation_t *p)
{
#ifdef PUNCTABLE
	if (p)
	{
		PS_CreatePunctuationTable(script, p);
	}
	else
	{
		PS_CreatePunctuationTable(script, default_punctuations);
	}
#endif //PUNCTABLE
	if (p)
	{
		script->punctuations = p;
	}
	else
	{
		script->punctuations = default_punctuations;
	}
}