cpp5.c (86e1cf34) cpp5.c (26d9e9dd)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 226 unchanged lines hidden (view full) ---

235 extern int *evaleval(); /* Does actual evaluation */
236#endif
237 valp = value;
238 opp = opstack;
239 opp->op = OP_END; /* Mark bottom of stack */
240 opp->prec = opdope[OP_END]; /* And its precedence */
241 opp->skip = 0; /* Not skipping now */
242 binop = 0;
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 226 unchanged lines hidden (view full) ---

235 extern int *evaleval(); /* Does actual evaluation */
236#endif
237 valp = value;
238 opp = opstack;
239 opp->op = OP_END; /* Mark bottom of stack */
240 opp->prec = opdope[OP_END]; /* And its precedence */
241 opp->skip = 0; /* Not skipping now */
242 binop = 0;
243again: ;
243again:
244#ifdef DEBUG_EVAL
245 fprintf( pCppOut, "In #if at again: skip = %d, binop = %d, line is: %s",
246 opp->skip, binop, infile->bptr);
247#endif
248 if ((op = evallex(opp->skip)) == OP_SUB && binop == 0)
249 op = OP_NEG; /* Unary minus */
250 else if (op == OP_ADD && binop == 0)
251 op = OP_PLU; /* Unary plus */

--- 674 unchanged lines hidden ---
244#ifdef DEBUG_EVAL
245 fprintf( pCppOut, "In #if at again: skip = %d, binop = %d, line is: %s",
246 opp->skip, binop, infile->bptr);
247#endif
248 if ((op = evallex(opp->skip)) == OP_SUB && binop == 0)
249 op = OP_NEG; /* Unary minus */
250 else if (op == OP_ADD && binop == 0)
251 op = OP_PLU; /* Unary plus */

--- 674 unchanged lines hidden ---