1 #ifndef DEFINE_INLINE_H
2 #define DEFINE_INLINE_H
4 inline bool ww_call_cmp (char * d_op
, char * d_cmp
, int d_len
)
6 if (!strncmp (d_op
, d_cmp
, d_len
)
7 && (d_op
[d_len
] == '(' || d_op
[d_len
+1] == '('))
13 inline bool ww_case_cmp (char * d_op
, char * d_cmp
, int d_len
)
15 if (!strncmp (d_op
, d_cmp
, d_len
)
16 && (d_op
[d_len
] == ':' || d_op
[d_len
+1] == ':'))
22 inline bool local_ftest (char *S
) // test for pair "()"
34 if (!d_count1
|| (d_count1
== d_count2
)) {
45 return d_count1
&& d_count2
;
48 inline char last_ch (char *S
)
50 S
= &S
[strlen (S
)] - 1;
51 while (if_digit (S
) || if_abc(S
) || *S
== '_')
58 inline char ww_after_word (char *S
)
61 if (! (if_abc (S
) || *S
=='_' || if_digit (S
)))
71 inline void free_cword (c_word
* word
)
77 inline struct c_word
* new_cword (char *word
, char sym
)
79 c_word
* Ret
= CNEW (c_word
, 1);
80 Ret
->S
= strdup (word
);
85 inline char * ww_first_word (char * word
)
97 return Dstrndup (word
, S
-word
);
100 inline int ww_nsyms_r (char * begin
, char * end
, char sym
)
105 while (S
!= begin
&& *S
== sym
) {