Lines Matching refs:flag
649 // Return the textual binding for a given CPP flag name.
651 char* ArchDesc::get_preproc_def(const char* flag) {
652 // In case of syntax errors, flag may take the value NULL.
654 if (flag != NULL)
655 deff = (SourceForm*) _preproc_table[flag];
661 // Change or create a textual binding for a given CPP flag name.
662 // Giving NULL means the flag name is to be #undef-ed.
664 void ArchDesc::set_preproc_def(const char* flag, const char* def) {
665 SourceForm* deff = (SourceForm*) _preproc_table[flag];
668 _preproc_table.Insert(flag, deff);
669 _preproc_list.addName(flag); // this supports iteration
788 int ArchDesc::emit_msg(int quiet, int flag, int line, const char *fmt,
794 switch(flag) {
1135 const char* flag;
1140 for (_preproc_list.reset(); (flag = _preproc_list.iter()) != NULL; ) {
1142 char* def = get_preproc_def(flag);
1145 fprintf(fp, "-D%s=%s\n", flag, def);
1146 else fprintf(fp, "-U%s\n", flag);
1148 def ? "ifndef" : "ifdef", flag);
1150 flag, def ? "must" : "must not");
1151 fprintf(fp, "#endif // %s\n", flag);
1198 // instruction. The must_clone flag prevents the constant from