summaryrefslogtreecommitdiff
path: root/src/debug.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-02-23 18:55:07 +0000
committerbelugas <belugas@openttd.org>2007-02-23 18:55:07 +0000
commit6dbf9f2f41e82a05d284c72ab3acbae949c3e904 (patch)
tree28b541cce9a8abd90d47b1524d635b9a38e37e51 /src/debug.cpp
parent1bbbbeeef19727639d80c9bfe760248d50720bc2 (diff)
downloadopenttd-6dbf9f2f41e82a05d284c72ab3acbae949c3e904.tar.xz
(svn r8862) -Cleanup: doxygen changes, again. Mostly @files missing tags and a few comments style.
Some documentation addition, when i can easily supply them
Diffstat (limited to 'src/debug.cpp')
-rw-r--r--src/debug.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/debug.cpp b/src/debug.cpp
index d21580665..2e416d515 100644
--- a/src/debug.cpp
+++ b/src/debug.cpp
@@ -1,5 +1,7 @@
/* $Id$ */
+/** @file debug.cpp */
+
#include "stdafx.h"
#include <stdio.h>
#include <stdarg.h>
@@ -105,7 +107,7 @@ void SetDebugString(const char *s)
char *end;
const char *t;
- // global debugging level?
+ /* global debugging level? */
if (*s >= '0' && *s <= '9') {
const DebugLevel *i;
@@ -115,19 +117,19 @@ void SetDebugString(const char *s)
for (i = debug_level; i != endof(debug_level); ++i) *i->level = v;
}
- // individual levels
+ /* individual levels */
for (;;) {
const DebugLevel *i;
int *p;
- // skip delimiters
+ /* skip delimiters */
while (*s == ' ' || *s == ',' || *s == '\t') s++;
if (*s == '\0') break;
t = s;
while (*s >= 'a' && *s <= 'z') s++;
- // check debugging levels
+ /* check debugging levels */
p = NULL;
for (i = debug_level; i != endof(debug_level); ++i)
if (s == t + strlen(i->name) && strncmp(t, i->name, s - t) == 0) {