summaryrefslogtreecommitdiff
path: root/zwgc/formatter.c
diff options
context:
space:
mode:
authorGravatar John Kohl <jtkohl@mit.edu>1989-11-09 07:26:05 +0000
committerGravatar John Kohl <jtkohl@mit.edu>1989-11-09 07:26:05 +0000
commitcfa453758938ef83bce5d63a96a887259d8b11a5 (patch)
treefffe6f7ffab86a2a4f61f871ea43a8314a7e217a /zwgc/formatter.c
parente8ed0625613afc6dc837ced3e0484be4f02b0079 (diff)
fixes for array & problems
Diffstat (limited to 'zwgc/formatter.c')
-rw-r--r--zwgc/formatter.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/zwgc/formatter.c b/zwgc/formatter.c
index f62a43d..47bd7d4 100644
--- a/zwgc/formatter.c
+++ b/zwgc/formatter.c
@@ -179,10 +179,10 @@ string verbatim(str)
if (strlen(str) == pure_text_length(str,0)) {
/* No environments, so consider the fast-and-easy methods */
- if (not_contains(str,&allbracket_set))
+ if (not_contains(str,allbracket_set))
return(string_Copy(str));
- if (not_contains(str,&abracket_set)) {
+ if (not_contains(str,abracket_set)) {
temp=(char *) malloc((len=strlen(str))+4);
temp[0]='@';
temp[1]='<';
@@ -191,7 +191,7 @@ string verbatim(str)
temp[len+3]='\0';
return(temp);
}
- if (not_contains(str,&sbracket_set)) {
+ if (not_contains(str,sbracket_set)) {
temp=(char *) malloc((len=strlen(str))+4);
temp[0]='@';
temp[1]='[';
@@ -200,7 +200,7 @@ string verbatim(str)
temp[len+3]='\0';
return(temp);
}
- if (not_contains(str,&cbracket_set)) {
+ if (not_contains(str,cbracket_set)) {
temp=(char *) malloc((len=strlen(str))+4);
temp[0]='@';
temp[1]='{';
@@ -209,7 +209,7 @@ string verbatim(str)
temp[len+3]='\0';
return(temp);
}
- if (not_contains(str,&paren_set)) {
+ if (not_contains(str,paren_set)) {
temp=(char *) malloc((len=strlen(str))+4);
temp[0]='@';
temp[1]='(';
@@ -220,14 +220,14 @@ string verbatim(str)
}
}
- temp=lbreak(&str,&allmaskable_set);
+ temp=lbreak(&str,allmaskable_set);
while(*str) {
bracketnum=(int) (index(brackets,str[0])-brackets);
temp=string_Concat2(temp,openbracket[bracketnum]);
temp=string_Concat2(temp,temp2=lany(&str," "));
free(temp2);
temp=string_Concat2(temp,closebracket[bracketnum]);
- temp=string_Concat2(temp,temp2=lbreak(&str,&allmaskable_set));
+ temp=string_Concat2(temp,temp2=lbreak(&str,allmaskable_set));
free(temp2);
}
free(str); /* str is "" at this point, anyway */
@@ -381,9 +381,9 @@ string protect(str)
int not_contains(str, set)
string str;
- character_class *set;
+ character_class set;
{
- while (*str && ! (*set)[*str]) str++;
+ while (*str && ! set[*str]) str++;
return (! *str);
}