search for: locstr

Displaying 3 results from an estimated 3 matches for "locstr".

Did you mean: lobstr
2014 Jan 30
2
[PATCH] builder: output translated notes
...able[7] = { + LC_ALL, + LC_CTYPE, + LC_NUMERIC, + LC_TIME, + LC_COLLATE, + LC_MONETARY, + LC_MESSAGES +}; + +#define Val_none (Val_int (0)) + +value +virt_builder_setlocale (value val_category, value val_name) +{ + CAMLparam2 (val_category, val_name); + CAMLlocal2 (rv, rv2); + char *ret, *locstring; + int category; + + category = lc_string_table[Int_val (val_category)]; + locstring = val_name == Val_none ? NULL : String_val (Field (val_name, 0)); + ret = setlocale (category, locstring); + if (ret) { + rv2 = caml_copy_string (ret); + rv = caml_alloc (1, 0); + Store_field (rv,...
2012 Nov 29
2
[LLVMdev] problem trying to write an LLVM register-allocation pass
I have a new problem: Register RBP is used in a function foo. (I am not allocating RBP to any virtual register, the instances of RBP in function foo are in the machine code when my register allocator starts.) Function foo calls function bar. Register RBP is not saved across the call, though it is live after the call. Function bar includes a virtual register. The code that I'm using to
2012 Dec 01
0
[LLVMdev] problem trying to write an LLVM register-allocation pass
...le[hashfunct( sym, table_size )]; while ( sym_entry ) { if ( ! strcmp( sym, sym_entry->name ) ) return sym_entry; sym_entry = sym_entry->next; } return &empty_entry; } int hashfunct( str, hash_size ) register char str[]; int hash_size; { register int hashval; register int locstr; hashval = 0; locstr = 0; while ( str[locstr] ) { hashval = (hashval << 1) + (unsigned char) str[locstr++]; hashval %= hash_size; } return hashval; } void ndinstal( name, definition ) char name[]; unsigned char definition[]; { char *copy_string(); unsigned char *copy_unsigned_...