Skip to content

Commit ddbbf4c

Browse files
committed
Revert "macos"
This reverts commit 7e39631.
1 parent 7e39631 commit ddbbf4c

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

jam-files/engine/modules/path.c

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include "../lists.h"
1010
#include "../native.h"
1111
#include "../timestamp.h"
12-
#include "../filesys.h"
1312

1413

1514
LIST * path_exists( FRAME * frame, int flags )

phrase-extract/syntax-common/tree-inl.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Tree<T>::PreOrderIter<V>::PreOrderIter(V &t)
7373

7474
template<typename T>
7575
template<typename V>
76-
typename Tree<T>::template PreOrderIter<V> &Tree<T>::PreOrderIter<V>::operator++() {
76+
Tree<T>::PreOrderIter<V> &Tree<T>::PreOrderIter<V>::operator++() {
7777
// If the current node has children then visit the left-most child next.
7878
if (!node_->children().empty()) {
7979
index_stack_.push(0);
@@ -100,7 +100,7 @@ typename Tree<T>::template PreOrderIter<V> &Tree<T>::PreOrderIter<V>::operator++
100100

101101
template<typename T>
102102
template<typename V>
103-
typename Tree<T>::template PreOrderIter<V> Tree<T>::PreOrderIter<V>::operator++(int) {
103+
Tree<T>::PreOrderIter<V> Tree<T>::PreOrderIter<V>::operator++(int) {
104104
PreOrderIter tmp(*this);
105105
++*this;
106106
return tmp;
@@ -162,7 +162,7 @@ Tree<T>::LeafIter<V>::LeafIter(V &t)
162162

163163
template<typename T>
164164
template<typename V>
165-
typename Tree<T>::template LeafIter<V> &Tree<T>::LeafIter<V>::operator++() {
165+
Tree<T>::LeafIter<V> &Tree<T>::LeafIter<V>::operator++() {
166166
// Try node's ancestors until either a node is found with a sibling to the
167167
// right or we reach the root (in which case the traversal is complete).
168168
V *ancestor = node_->parent_;
@@ -187,7 +187,7 @@ typename Tree<T>::template LeafIter<V> &Tree<T>::LeafIter<V>::operator++() {
187187

188188
template<typename T>
189189
template<typename V>
190-
typename Tree<T>::template LeafIter<V> Tree<T>::LeafIter<V>::operator++(int) {
190+
Tree<T>::LeafIter<V> Tree<T>::LeafIter<V>::operator++(int) {
191191
LeafIter tmp(*this);
192192
++*this;
193193
return tmp;

symal/Jamfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
exe symal : symal.cpp cmd.cpp ;
1+
exe symal : symal.cpp cmd.c ;
22

symal/cmd.cpp symal/cmd.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,15 @@ int DeclareParams(const char *ParName, ...)
144144
cmds[j].p = va_arg(args, void *);
145145
break;
146146
case CMDSUBRANGETYPE: { /* get the two extremes */
147-
int *subrange = (int*) calloc(2, sizeof(int));
147+
int *subrange = calloc(2, sizeof(int));
148148
cmds[j].p = subrange;
149149
subrange[0] = va_arg(args, int);
150150
subrange[1] = va_arg(args, int);
151151
}
152152
break;
153153
case CMDGTETYPE: /* get lower or upper bound */
154154
case CMDLTETYPE: {
155-
int *value = (int*) calloc(1, sizeof(int));
155+
int *value = calloc(1, sizeof(int));
156156
cmds[j].p = value;
157157
value[0] = va_arg(args, int);
158158
}
@@ -320,12 +320,12 @@ static char **str2array(const char *s, const char *sep)
320320
p += strspn(p, sep);
321321
++n;
322322
}
323-
a = (char **) calloc(n+1, sizeof(char *));
323+
a = calloc(n+1, sizeof(char *));
324324
p = s;
325325
n = 0;
326326
while(*p) {
327327
l = strcspn(p, sep);
328-
a[n] = (char *) malloc(l+1);
328+
a[n] = malloc(l+1);
329329
memcpy(a[n], p, l);
330330
a[n][l] = 0;
331331
++n;
@@ -479,7 +479,7 @@ static void PrintStrArray(const Cmd_T *cmd, int ValFlag, FILE *fp)
479479
int l = 4+strlen(cmd->Name);
480480

481481
fprintf(fp, "%s", cmd->Name);
482-
indent = (char *) malloc(l+2);
482+
indent = malloc(l+2);
483483
memset(indent, ' ', l+1);
484484
indent[l+1] = 0;
485485
if(ValFlag) {
@@ -578,7 +578,7 @@ int GetParams(int *n, char ***a, const char *CmdFileName)
578578
#define PATHSEP '/'
579579
#endif
580580

581-
if(!(Line=(char *) malloc(LINSIZ))) {
581+
if(!(Line=malloc(LINSIZ))) {
582582
fprintf(stderr, "GetParams(): Unable to alloc %d bytes\n",
583583
LINSIZ);
584584
exit(1);

0 commit comments

Comments
 (0)