search for: numchar

Displaying 6 results from an estimated 6 matches for "numchar".

Did you mean: numchars
2010 Sep 18
0
Saving long character variable to database saves timestamp instead
...xt field in PostgreSQL, using RODBC on Windows XP, I get a timestamp saved to the database instead. Is there any way to extend the number of characters that a text variable can receive? Here are the details of my case (simplified): I'm using PostgreSQL to create a table CREATE TABLE testdf ( numchar bigint NOT NULL, chars text, CONSTRAINT pktestdf PRIMARY KEY (numchar) ) WITH ( OIDS=FALSE ); ALTER TABLE testdf OWNER TO postgres; Then in R I create a table with long character variables: > testdf <- data.frame(matrix(NA, 2, 2)) > names(testdf) <- c("numchar", "c...
2009 Mar 05
0
[PATCH 5/5] COM32/rosh: Improvements
...: break; - default : rosh_help(1); + default : rosh_help(1, NULL); } /* switch(cmdstr[0]) */ return do_exit; } /* rosh_command */ @@ -758,8 +1009,7 @@ int rosh_prompt(const char *icmdstr) int rv; char cmdstr[ROSH_CMD_SZ]; char pwdstr[ROSH_PATH_SZ + 1], ipwdstr[ROSH_PATH_SZ + 1]; -/* int numchar; -*/ char do_exit; + char do_exit; char *c; rv = 0; @@ -771,6 +1021,7 @@ int rosh_prompt(const char *icmdstr) do_exit = rosh_command(icmdstr, pwdstr, ipwdstr); while (!(do_exit)) { console_ansi_std(); + /* Extra preceeding newline */ printf("\nrosh: "); /* Read a line...
2009 Feb 15
2
COM32 module: Read-Only shell
...mmands as read from stdin and call rosh_command + * to process command line string + * icmdstr Initial command line string + * returns Exit status + */ +int rosh_prompt(const char *icmdstr) +{ + int rv; + char cmdstr[ROSH_CMD_SZ]; + char pwdstr[ROSH_PATH_SZ + 1], ipwdstr[ROSH_PATH_SZ + 1]; +/* int numchar; +*/ char do_exit; + char *c; + + rv = 0; + do_exit = false; + strcpy(pwdstr, "/"); + getcwd(pwdstr, ROSH_PATH_SZ + 1); + strcpy(ipwdstr, pwdstr); /* Retain the original PWD */ + if (icmdstr[0] != '\0') + do_exit = rosh_command(icmdstr, pwdstr, ipwdstr); + while (!(do_exit)) { +...
2010 Jun 27
1
[PATCH] ROSH: Upgraded
...lt: - rosh_help(1); + rosh_help(1, NULL); } /* switch(cmdstr[0]) */ return do_exit; } /* rosh_command */ @@ -812,33 +1131,28 @@ int rosh_prompt(const char *icmdstr) { int rv; char cmdstr[ROSH_CMD_SZ]; - char pwdstr[ROSH_PATH_SZ + 1], ipwdstr[ROSH_PATH_SZ + 1]; -/* int numchar; -*/ char do_exit; + char ipwdstr[ROSH_PATH_SZ]; + char do_exit; char *c; rv = 0; do_exit = false; - strcpy(pwdstr, "/"); - getcwd(pwdstr, ROSH_PATH_SZ + 1); - strcpy(ipwdstr, pwdstr); /* Retain the original PWD */ + if (!getcwd(ipwdstr, ROSH_PATH_SZ)) +...
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
...expand_nxt_chk(); nxt[tblend] = end_of_buffer_state; chk[tblend] = jamstate; for ( i = 1; i <= numecs; ++i ) { nxt[tblend + i] = 0; chk[tblend + i] = jamstate; } jambase = tblend; base[jamstate] = jambase; def[jamstate] = 0; tblend += numecs; ++numtemps; } void mkentry( state, numchars, statenum, deflink, totaltrans ) register int *state; int numchars, statenum, deflink, totaltrans; { register int minec, maxec, i, baseaddr; int tblbase, tbllast; if ( totaltrans == 0 ) { if ( deflink == -32766 ) base[statenum] = -32766; else base[statenum] = 0; def[statenum] = d...