Subversion Repositories wimsdev

Rev

Rev 13766 | Rev 13783 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13766 Rev 13771
Line 30... Line 30...
30
#define int_buf_size 40
30
#define int_buf_size 40
31
 
31
 
32
/* this is rapid. Output string will be erased at the next call. */
32
/* this is rapid. Output string will be erased at the next call. */
33
char *int2str(int i)
33
char *int2str(int i)
34
{
34
{
35
    int neg,t;
35
  int neg,t;
36
    static char int_buf[int_buf_size];
36
  static char int_buf[int_buf_size];
37
    int_buf[int_buf_size-1]=0;
37
  int_buf[int_buf_size-1]=0;
38
    neg=0; if(i<0) {neg=1;i=-i;}
38
  neg=0; if(i<0) {neg=1;i=-i;}
39
    for(t=int_buf_size-2;t>=0;) {
39
  for(t=int_buf_size-2;t>=0;) {
40
      int_buf[t--]=i%10+'0'; i/=10;
40
    int_buf[t--]=i%10+'0'; i/=10;
41
      if(i==0) break;
41
    if(i==0) break;
42
    }
42
  }
43
    if(t<=0) {int_buf[0]=0; return int_buf;} /* should never occur. */
43
  if(t<=0) {int_buf[0]=0; return int_buf;} /* should never occur. */
44
    if(neg) int_buf[t--]='-';
44
  if(neg) int_buf[t--]='-';
45
    t++; return int_buf+t;
45
  t++; return int_buf+t;
46
}
46
}
47
 
47
 
48
void *xmalloc(size_t n)
48
void *xmalloc(size_t n)
49
{
49
{
50
    void *p;
50
    void *p;
Line 855... Line 855...
855
  {"&yacute;","ý"},
855
  {"&yacute;","ý"},
856
  {"&Yacute;","Ý"},
856
  {"&Yacute;","Ý"},
857
  {"&szlig;","ß"},
857
  {"&szlig;","ß"},
858
  {"&laquo;","«"},
858
  {"&laquo;","«"},
859
  {"&raquo;","»"},
859
  {"&raquo;","»"},
-
 
860
  {"&lsaquo;","‹"},
-
 
861
  {"&rsaquo;","›"},
-
 
862
  {"&lsquo;","‘"},
-
 
863
  {"&rsquo;","’"},
-
 
864
  {"&ldquo;","“"},
-
 
865
  {"&rdquo;","”"},
860
  {"&amp;","&"},
866
  {"&amp;","&"},
861
  {"&lt;","<"},
867
  {"&lt;","<"},
862
  {"&gt;","<"},
868
  {"&gt;","<"},
863
  {"&quot;","\""},
869
  {"&quot;","\""},
864
  {"&para;","§"},
870
  {"&para;","§"},