void m(char16_t c0, char32_t c1) { f_c (c0); /* { dg-warning "conversion from .char16_t. to .char. may change value" } */ fsc (c0); /* { dg-warning "change value" } */ fuc (c0); /* { dg-warning "change value" } */ f_s (c0); /* { dg-warning "change the sign" } */ fss (c0); /* { dg-warning "change the sign" } */ fus (c0); f_i (c0); fsi (c0); fui (c0); f_l (c0); fsl (c0); ful (c0); f_ll (c0); fsll (c0); full (c0); f_c (c1); /* { dg-warning "change value" } */ fsc (c1); /* { dg-warning "change value" } */ fuc (c1); /* { dg-warning "change value" } */ f_s (c1); /* { dg-warning "change value" } */ fss (c1); /* { dg-warning "change value" } */ fus (c1); /* { dg-warning "change value" } */ f_i (c1); /* { dg-warning "change the sign" } */ fsi (c1); /* { dg-warning "change the sign" } */ fui (c1); f_l (c1); /* { dg-warning "change the sign" "" { target { llp64 || ilp32 } } } */ fsl (c1); /* { dg-warning "change the sign" "" { target { llp64 || ilp32 } } } */ ful (c1); f_ll (c1); fsll (c1); full (c1); }
void m (char16_t c0, char32_t c1) { f_c (c0); /* { dg-warning "alter its value" } */ fsc (c0); /* { dg-warning "alter its value" } */ fuc (c0); /* { dg-warning "alter its value" } */ f_s (c0); /* { dg-warning "change the sign" } */ fss (c0); /* { dg-warning "change the sign" } */ fus (c0); f_i (c0); fsi (c0); fui (c0); f_l (c0); fsl (c0); ful (c0); f_ll (c0); fsll (c0); full (c0); f_c (c1); /* { dg-warning "alter its value" } */ fsc (c1); /* { dg-warning "alter its value" } */ fuc (c1); /* { dg-warning "alter its value" } */ f_s (c1); /* { dg-warning "alter its value" } */ fss (c1); /* { dg-warning "alter its value" } */ fus (c1); /* { dg-warning "alter its value" } */ f_i (c1); /* { dg-warning "change the sign" "" { target { ! int16 } } } */ fsi (c1); /* { dg-warning "change the sign" "" { target { ! int16 } } } */ fui (c1); f_l (c1); /* { dg-warning "change the sign" "" { target { llp64 || ilp32 } } } */ fsl (c1); /* { dg-warning "change the sign" "" { target { llp64 || ilp32 } } } */ ful (c1); f_ll (c1); fsll (c1); full (c1); }
MPQData::MPQData(MPQFile *file) : error(ERROR_SUCCESS) { DWORD dwBytes = 1; std::string buffer; char szBuffer[0x10000]; while (dwBytes > 0) { SFileReadFile(file->GetHandle(), szBuffer, sizeof(szBuffer), &dwBytes, NULL); if (dwBytes > 0) { buffer.append(szBuffer, dwBytes); } } // TODO: need to remove \r, \n chars here if (error == ERROR_SUCCESS) { std::stringstream ss(buffer); std::string line; std::string field; if (std::getline(ss, line)) { // read the header first std::stringstream hss(line); while (std::getline(hss, field, '\t')) { fields.push_back(field); } while (std::getline(ss, line)) { std::map<std::string, std::string> linedata; std::stringstream fss(line); for (std::vector<std::string>::iterator it = fields.begin(); it != fields.end(); it++) { if (!std::getline(fss, field, '\t')) { field.clear(); } linedata[(*it)] = field; } data.push_back(linedata); } } } }
void FragSpectrumScanDatabaseBoostdb::print(serializer & ser) { mapdb::const_iterator it; for (it = bdb->begin(); it != bdb->end(); it++) { std::istringstream istr (it->second); binary_iarchive ia (istr); xml_schema::istream<binary_iarchive> is (ia); std::auto_ptr< ::percolatorInNs::fragSpectrumScan> fss (new ::percolatorInNs::fragSpectrumScan (is)); ser.next ( PERCOLATOR_IN_NAMESPACE, "fragSpectrumScan", *fss); } }
ForceInline Void main2(Int argc, WChar **argv) { _wsetlocale(LC_CTYPE, L""); { CFontSubSet fss(argc, argv); if (fss.ParseCmdLine() == FALSE) { _tprintf(_T("Parse command line failed.\n")); } else if (fss.ParseAss() == FALSE) { _tprintf(_T("Parse ass file failed.\n")); } else if (fss.SubSet() == FALSE) { _tprintf(_T("Subset failed.\n")); } } }
MPQData::MPQData(MPQFile *file) : error(ERROR_SUCCESS) { DWORD dwBytes = 1; std::string buffer; char szBuffer[0x10000]; while (dwBytes > 0) { SFileReadFile(file->GetHandle(), szBuffer, sizeof(szBuffer), &dwBytes, NULL); if (dwBytes > 0) { buffer.append(szBuffer, dwBytes); } } // TODO: need to remove \r, \n chars here if (error == ERROR_SUCCESS) { FILE *phil = fopen("C:\\philtest.txt", "a+"); fprintf(phil, "STARTING A NEW FILE %s\n", file->name.c_str()); std::stringstream ss(buffer); std::string line; std::string field; if (std::getline(ss, line)) { // read the header first std::stringstream hss(line); while (std::getline(hss, field, '\t')) { fields.push_back(field); fprintf(phil, "Got header field name: %s\n", field.c_str()); } while (std::getline(ss, line)) { std::map<std::string, std::string> linedata; std::stringstream fss(line); for (std::vector<std::string>::iterator it = fields.begin(); it != fields.end(); it++) { if (!std::getline(fss, field, '\t')) { field.clear(); } linedata[(*it)] = field; } data.push_back(linedata); } fprintf(phil, "Number of data lines: %d\n", data.size()); } fclose(phil); } }