OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr35006.c] - Blame information for rev 299

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
typedef unsigned long grub_uint64_t;
2
typedef grub_uint64_t grub_size_t;
3
grub_cmdline_get (unsigned max_len, int echo_char)
4
{
5
  unsigned xpos, ypos, ystart;
6
  grub_size_t lpos, llen;
7
  char buf[max_len];
8
  void cl_print (int pos, int c)
9
  {
10
      char *p;
11
      for (p = buf + pos; *p; p++)
12
      {
13
        if (xpos++ > 78)
14
          grub_putchar ('\n');
15
        grub_putchar (*p);
16
      }
17
 }
18
 void cl_delete (unsigned len)
19
 {
20
   cl_set_pos ();
21
   cl_print (lpos, ' ');
22
   grub_memmove ();
23
   cl_print (lpos, echo_char);
24
   cl_set_pos ();
25
 }
26
 cl_delete (llen);
27
 grub_size_t n = lpos;
28
 cl_delete (n);
29
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.