Advertisement
rdsedmundo

working convert 3

Dec 24th, 2013
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. __entrada = prompt("Digite a entrada: ", "").split("\n"), code = "";
  2.  
  3. code     += "new temp_int[256];\nnew temp_float[256];\n";
  4.  
  5. for(i = 0; i < __entrada.length; i++) {
  6.         __dest  = __entrada[i].split(" =")[0].trim();
  7.         __value = __entrada[i].split("\");")[0].split("\"")[1];
  8.         __type  = __entrada[i].split("hGet")[1].split("(")[0].toLowerCase();
  9.        
  10.         code += "mysql_fetch_field_row(temp_" + __type + ", \"" + __value + "\");\n";
  11.         code += __dest + " = " + ((__type == "int") ? "pvoidval" : "floatattach") + "(temp"+__type+");\n\n";
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement