projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
flush
[m6w6/ext-psi]
/
src
/
parser.h
diff --git
a/src/parser.h
b/src/parser.h
index cd1e0d4b253fa489fd368eb6a83eb01123aa4305..9ec15b9b7825ba47ab7c88e716bd1b32248032fb 100644
(file)
--- a/
src/parser.h
+++ b/
src/parser.h
@@
-367,7
+367,7
@@
typedef struct impl_var {
static inline impl_var *init_impl_var(char *name, int is_reference) {
impl_var *var = calloc(1, sizeof(*var));
static inline impl_var *init_impl_var(char *name, int is_reference) {
impl_var *var = calloc(1, sizeof(*var));
- var->name =
(char *) strdup((const char *)
name);
+ var->name =
strdup(
name);
var->reference = is_reference;
return var;
}
var->reference = is_reference;
return var;
}
@@
-382,10
+382,10
@@
typedef struct impl_def_val {
char *text;
} impl_def_val;
char *text;
} impl_def_val;
-static inline impl_def_val *init_impl_def_val(
PSI_Token *T
) {
+static inline impl_def_val *init_impl_def_val(
token_t t, char *text
) {
impl_def_val *def = calloc(1, sizeof(*def));
impl_def_val *def = calloc(1, sizeof(*def));
- def->type =
T->type
;
- def->text = strdup(
T->
text);
+ def->type =
t
;
+ def->text = strdup(text);
return def;
}
return def;
}
@@
-950,4
+950,3
@@
void PSI_ParserDtor(PSI_Parser *P);
void PSI_ParserFree(PSI_Parser **P);
#endif
void PSI_ParserFree(PSI_Parser **P);
#endif
-