Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Miscellany
Tuesday, April 24th, 2007 at 11:41:53pm UTC 

  1. Index: apps/gui/wps_parser.c
  2. ===================================================================
  3. --- apps/gui/wps_parser.c       (révision 13256)
  4. +++ apps/gui/wps_parser.c       (copie de travail)
  5. @@ -42,6 +42,10 @@
  6.  #define PARSE_FAIL_INVALID_CHAR      2
  7.  #define PARSE_FAIL_COND_SYNTAX_ERROR 3
  8.  
  9. +#ifdef SIMULATOR
  10. +extern bool debug_wps;
  11. +#endif
  12. +
  13.  /* level of current conditional.
  14.     -1 means we're not in a conditional. */
  15.  static int level = -1;
  16. @@ -796,14 +800,17 @@
  17.  
  18.  #ifdef DEBUG
  19.  
  20. -#if 0 /* optional debugging code */
  21. -    dump_wps_tokens(data);
  22. -    print_line_info(data);
  23. -    print_wps_strings(data);
  24. +#ifdef SIMULATOR
  25. +    if (debug_wps)
  26. +    {
  27. +        dump_wps_tokens(data);
  28. +        print_line_info(data);
  29. +        print_wps_strings(data);
  30.  #ifdef HAVE_LCD_BITMAP
  31. -    print_img_cond_indexes(data);
  32. +        print_img_cond_indexes(data);
  33.  #endif
  34. -#endif
  35. +    }
  36. +#endif /* SIMULATOR */
  37.  
  38.      if (fail)
  39.      {
  40. Index: uisimulator/sdl/uisdl.c
  41. ===================================================================
  42. --- uisimulator/sdl/uisdl.c     (révision 13256)
  43. +++ uisimulator/sdl/uisdl.c     (copie de travail)
  44. @@ -55,6 +55,8 @@
  45.  
  46.  bool debug_audio = false;
  47.  
  48. +bool debug_wps = false;
  49. +
  50.  long start_tick;
  51.  
  52.  Uint32 tick_timer(Uint32 interval, void *param)
  53. @@ -200,6 +202,9 @@
  54.              if (!strcmp("--debugaudio", argv[x])) {
  55.                  debug_audio = true;
  56.                  printf("Writing debug audio file.\n");
  57. +            } else if (!strcmp("--debugwps", argv[x])) {
  58. +                debug_wps = true;
  59. +                printf("WPS debug mode.\n");
  60.              } else if (!strcmp("--background", argv[x])) {
  61.                  background = true;
  62.                  printf("Using background image.\n");
  63. @@ -217,9 +222,10 @@
  64.                  printf("rockboxui\n");
  65.                  printf("Arguments:\n");
  66.                  printf("  --debugaudio \t Write raw PCM data to audiodebug.raw\n");
  67. +                printf("  --debugwps \t Print advanced WPS debug info\n");
  68.                  printf("  --background \t Use background image of hardware\n");
  69.                  printf("  --old_lcd \t [Player] simulate old playermodel (ROM version<4.51)\n");
  70. -                printf("  --zoom \t window zoom (will disable backgrounds)\n");
  71. +                printf("  --zoom [VAL]\t window zoom (will disable backgrounds)\n");
  72.                  exit(0);
  73.              }
  74.          }

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right