search for: tempstr

Displaying 8 results from an estimated 8 matches for "tempstr".

2017 May 29
2
Print 128 bit value at runtime using printf
...ant-integer-back-from-value ) //========= Relevant code below ========== Value* val = e->codegen() ; if(!val) { return logError("Error evaluating argument to function call"); } if(val->getType()->isIntegerTy() ) { if(val->getType()->getIntegerBitWidth() <= 64) { tempString = tempString + "%+d,"; } // Is this correct ? else { if(ConstantInt* CI = dyn_cast<ConstantInt>(val)) { // base 10 and signed std::string res = CI->getValue().toString(10,true); val=Builder.CreateGlobalStringPtr(res,"str"); tempString = te...
2015 Jun 02
2
[LLVMdev] struct type parament
...pe is constantly re-created even if it already exists, which might be inefficient. > > See in lib/IR/Type.cpp, StructType::setName(StringRef Name): > > ... > // While we have a name collision, try a random rename. > if (Entry->getValue()) { > SmallString<64> TempStr(Name); > TempStr.push_back('.'); > raw_svector_ostream TmpStream(TempStr); > unsigned NameSize = Name.size(); > > do { > TempStr.resize(NameSize + 1); > TmpStream.resync(); > TmpStream << getContext().pImpl->Name...
2005 Feb 16
4
festival text for weather report
http://www.srh.noaa.gov/fwd/productviewnation.php?pil=OKXZFPOKX&version= 0 can anyone suggest how I could set up asterisk@home to read out allowed the following text when I dial extension 850? 815 PM EST WED FEB 16 2005 .OVERNIGHT...MOSTLY CLEAR. LOWS 30 TO 35. NORTHWEST WINDS 15 TO 20 MPH WITH GUSTS UP TO 30 MPH...DIMINISHING TO 10 TO 15 MPH LATE. .THURSDAY...PARTLY CLOUDY. COOLER
2015 Jun 02
2
[LLVMdev] struct type parament
Hi All, I generated the following code with "clang -flto" command. void test(struct StruTyName *a) { ... } Then the type of test function is "void (%struct.StruTyName.100*)" by calling function::getFunctionType API. What's the meaning of number 100? Best, Haopeng
2015 Jun 02
2
[LLVMdev] struct type parament
...hich might be inefficient. >>> >>> See in lib/IR/Type.cpp, StructType::setName(StringRef Name): >>> >>> ... >>> // While we have a name collision, try a random rename. >>> if (Entry->getValue()) { >>> SmallString<64> TempStr(Name); >>> TempStr.push_back('.'); >>> raw_svector_ostream TmpStream(TempStr); >>> unsigned NameSize = Name.size(); >>> do { >>> TempStr.resize(NameSize + 1); >>> TmpStream.resync(); >>>...
2002 Jun 27
2
Samba 2.2.5 Recycle Bin file permissions
Using Samba 2.2.5 on FreeBSD 4.5. We have a file share used by several people working on common projects. The share is set up with force group = cad create mask = 0774 force create mode = 0774 directory mask = 0775 force directory mode = 0775 so that everyone can create/modify any file in the share. The new VFS recycle bin, however, sets the file
2004 Mar 17
1
best methods for strings and structures?
I'm trying to generate an R interface for a library that's commonly used and I'm currently writing wrapper functions for file i/o and return an object (list?) that contains the elements of the C structure. For example, reading a file that contains: struct CONFIG_RECORD { char coeffs_filename[256]; char species_filename[256]; unsigned long
2004 Sep 10
2
xmms plugin, fileinfo
...c_layer, flac_lsf, flac_mode; -extern gboolean flac_stereo, flac_flac25; - -#define MAX_STR_LEN 100 - -static void set_entry_tag(GtkEntry * entry, gchar * tag, gint length) +static void label_set_text(GtkWidget * label, char *str, ...) { - gint stripped_len; - gchar *text; + va_list args; + gchar *tempstr; + + va_start(args, str); + tempstr = g_strdup_vprintf(str, args); + va_end(args); - stripped_len = flac_strip_spaces(tag, length); - text = g_strdup_printf("%-*.*s", stripped_len, stripped_len, tag); - gtk_entry_set_text(entry, text); - g_free(text); + gtk_label_set_text(GTK_LABEL(labe...