aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/acidtypes
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/acidtypes')
-rw-r--r--src/cmd/acidtypes/dat.h3
-rw-r--r--src/cmd/acidtypes/dwarf.c1
-rw-r--r--src/cmd/acidtypes/main.c3
-rw-r--r--src/cmd/acidtypes/stabs.c16
-rw-r--r--src/cmd/acidtypes/type.c16
-rw-r--r--src/cmd/acidtypes/util.c2
6 files changed, 19 insertions, 22 deletions
diff --git a/src/cmd/acidtypes/dat.h b/src/cmd/acidtypes/dat.h
index 8a043787..97b3a166 100644
--- a/src/cmd/acidtypes/dat.h
+++ b/src/cmd/acidtypes/dat.h
@@ -9,7 +9,7 @@ enum
Base,
Enum,
Aggr,
- Function,
+ Function,
Pointer,
Array,
Range,
@@ -92,4 +92,3 @@ int Bfmt(Fmt*);
#ifdef VARARGCK
#pragma varargck type "B" char*
#endif
-
diff --git a/src/cmd/acidtypes/dwarf.c b/src/cmd/acidtypes/dwarf.c
index f9294286..cb39fcbf 100644
--- a/src/cmd/acidtypes/dwarf.c
+++ b/src/cmd/acidtypes/dwarf.c
@@ -183,4 +183,3 @@ ds2acid(Dwarf *d, DwarfSym *s, Biobuf *b, char *fn)
break;
}
}
-
diff --git a/src/cmd/acidtypes/main.c b/src/cmd/acidtypes/main.c
index f272f67a..eb1a9418 100644
--- a/src/cmd/acidtypes/main.c
+++ b/src/cmd/acidtypes/main.c
@@ -64,7 +64,7 @@ main(int argc, char **argv)
}
have = 1;
}
-
+
if(!have){
Bprint(&b, "// no debugging symbols in %s\n\n", argv[i]);
/* fprint(2, "no debugging symbols in %s\n", argv[i]); */
@@ -75,4 +75,3 @@ main(int argc, char **argv)
Bterm(&b);
exits(0);
}
-
diff --git a/src/cmd/acidtypes/stabs.c b/src/cmd/acidtypes/stabs.c
index 5ce0d461..0ca3b73f 100644
--- a/src/cmd/acidtypes/stabs.c
+++ b/src/cmd/acidtypes/stabs.c
@@ -192,7 +192,7 @@ parsenum(char *p, int *n1, int *n2, char **pp)
/*
attr ::= '@' text ';'
- text is
+ text is
'a' integer (alignment)
'p' integer (pointer class)
'P' (packed type)
@@ -237,7 +237,7 @@ static Basic baseints[] =
/*13*/ 8, 'f', /* double */
/*14*/ 10, 'f', /* long double */
/*15*/ 4, 'd', /* int32 */
-/*16*/ 4, 'd', /* bool32 */
+/*16*/ 4, 'd', /* bool32 */
/*17*/ 2, 'f', /* short real */
/*18*/ 4, 'f', /* real */
/*19*/ 4, 'x', /* stringptr */
@@ -391,7 +391,7 @@ parsedefn(char *p, Type *t, char **pp)
t->ty = Pointer;
t->sub = parseinfo(p+1, &p);
break;
- case 'a': /* array */
+ case 'a': /* array */
case 'P': /* packed array */
t->ty = Pointer;
tt = newtype();
@@ -422,7 +422,7 @@ parsedefn(char *p, Type *t, char **pp)
}
semi(&p);
break;
-
+
case 's': /* struct */
case 'u': /* union */
p++;
@@ -532,7 +532,7 @@ parsedefn(char *p, Type *t, char **pp)
}
/*
- bound ::=
+ bound ::=
'A' offset (bound is on stack by ref at offset offset from arg list)
| 'T' offset (bound is on stack by val at offset offset from arg list)
| 'a' regnum (bound passed by reference in register)
@@ -642,7 +642,7 @@ stabs2acid(Stab *stabs, Biobuf *b)
fno++;
if((f = findftypes(dir, sym.name)) == nil){
static int cannotprint;
-
+
if(cannotprint++ == 0)
fprint(2, "cannot find remembered %s\n", sym.name);
continue;
@@ -673,7 +673,7 @@ stabs2acid(Stab *stabs, Biobuf *b)
}
if(setjmp(kaboom)){
static int cannotparse;
-
+
if(cannotparse++ == 0)
fprint(2, "cannot parse %s\n", name);
continue;
@@ -683,7 +683,7 @@ stabs2acid(Stab *stabs, Biobuf *b)
continue;
if(*p != 0){
static int extradesc;
-
+
if(extradesc++ == 0)
fprint(2, "extra desc '%s' in '%s'\n", p, desc);
}
diff --git a/src/cmd/acidtypes/type.c b/src/cmd/acidtypes/type.c
index 00897e34..0f1c2f30 100644
--- a/src/cmd/acidtypes/type.c
+++ b/src/cmd/acidtypes/type.c
@@ -95,7 +95,7 @@ typebynum(uint n1, uint n2)
t->n2 = n2;
addhash(t);
return t;
-}
+}
Type*
newtype(void)
@@ -251,10 +251,10 @@ cleanstl(char *name)
{
char *b, *p;
static char buf[65536]; /* These can be huge. */
-
+
if(strchr(name, '<') == nil)
return nonempty(name);
-
+
b = buf;
for(p = name; *p != 0; p++){
switch(*p){
@@ -443,7 +443,7 @@ char*
mkname(char *prefix, char *name)
{
static char buf[65536];
-
+
snprint(buf, sizeof buf, "%s%s", prefix, name);
return buf;
}
@@ -630,7 +630,7 @@ ttt=ttt->sub;
if(nprint == 0)
Bprint(b, "\t'X' 0 __dummy;\n");
Bprint(b, "};\n\n");
-
+
name = nameof(t, 1); /* might have smashed it */
Bprint(b, "defn %B(addr) { %B(addr, \"\"); }\n", name, mkname("indent_", name));
Bprint(b, "defn %B(addr, indent) {\n", mkname("indent_", name));
@@ -675,13 +675,13 @@ ttt=ttt->sub;
}
Bprint(b, "};\n\n");
break;
-
+
case Enum:
name = nameof(t, 1);
Bprint(b, "// enum %s\n", name);
for(j=0; j<t->n; j++)
Bprint(b, "%B = %ld;\n", fixname(t->tname[j]), t->val[j]);
-
+
Bprint(b, "%B = {\n", mkname("vals_", name));
for(j=0; j<t->n; j++)
Bprint(b, "\t%lud,\n", t->val[j]);
@@ -738,7 +738,7 @@ printtypes(Biobuf *b)
* only take one type of a given name; acid is going to do this anyway,
* and this will reduce the amount of code we output considerably.
* we could run a DFA equivalence relaxation sort of algorithm
- * to find the actual equivalence classes, and then rename types
+ * to find the actual equivalence classes, and then rename types
* appropriately, but this will do for now.
*/
all = emalloc(n*sizeof(all[0]));
diff --git a/src/cmd/acidtypes/util.c b/src/cmd/acidtypes/util.c
index 47fe193d..41883bbd 100644
--- a/src/cmd/acidtypes/util.c
+++ b/src/cmd/acidtypes/util.c
@@ -68,7 +68,7 @@ Bfmt(Fmt *fmt)
{
int i;
char *s, *t;
-
+
if(!isBfrog['.']){
for(i=0; i<256; i++)
if(i != '_' && i != '$' && i < Runeself && !isalnum(i))