hphp/runtime/ext/json/JSON_parser.cpp
static int push(json_parser *json, Mode mode) {
  if (json->top + 1 >= json->depth) {
    return false;
  }
  json->top += 1;
  json->stack[json->top].mode = mode;
  if (json->top > json->mark) {
    json->mark = json->top;
  }
  return true;
}
/**
 * Push a mode onto the stack. Return false if there is overflow.
 */
Push a mode onto the stack. Return false if there is overflow.
Push a mode onto the stack . Return false if there is overflow .
static int push(json_parser *json, Mode mode) {
  if (json->top + 1 >= json->depth) {
    return false;
  }
  json->top += 1;
  json->stack[json->top].mode = mode;
  if (json->top > json->mark) {
    json->mark = json->top;
  }
  return true;
}
static int push ( json_parser * json , Mode mode ) { if ( json -> top + 1 >= json -> depth ) { return false ; } json -> top += 1 ; json -> stack [ json -> top ] . mode = mode ; if ( json -> top > json -> mark ) { json -> mark = json -> top ; } return true ; }
Push a mode onto the stack.
Push a mode onto the stack .