php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
is_json.c File Reference
#include "file.h"
#include "magic.h"
#include <string.h>

Go to the source code of this file.

Macros

#define DPRINTF(a, b, c)
 
#define __file_debugused   __attribute__((__unused__))
 
#define JSON_ARRAY   0
 
#define JSON_CONSTANT   1
 
#define JSON_NUMBER   2
 
#define JSON_OBJECT   3
 
#define JSON_STRING   4
 
#define JSON_ARRAYN   5
 
#define JSON_MAX   6
 
#define JSON_COUNT   0
 

Functions

int file_is_json (struct magic_set *ms, const struct buffer *b)
 

Macro Definition Documentation

◆ __file_debugused

#define __file_debugused   __attribute__((__unused__))

Definition at line 53 of file is_json.c.

◆ DPRINTF

#define DPRINTF ( a,
b,
c )
Value:
do { } while (/*CONSTCOND*/0)

Definition at line 52 of file is_json.c.

◆ JSON_ARRAY

#define JSON_ARRAY   0

Definition at line 56 of file is_json.c.

◆ JSON_ARRAYN

#define JSON_ARRAYN   5

Definition at line 61 of file is_json.c.

◆ JSON_CONSTANT

#define JSON_CONSTANT   1

Definition at line 57 of file is_json.c.

◆ JSON_COUNT

#define JSON_COUNT   0

Definition at line 71 of file is_json.c.

◆ JSON_MAX

#define JSON_MAX   6

Definition at line 62 of file is_json.c.

◆ JSON_NUMBER

#define JSON_NUMBER   2

Definition at line 58 of file is_json.c.

◆ JSON_OBJECT

#define JSON_OBJECT   3

Definition at line 59 of file is_json.c.

◆ JSON_STRING

#define JSON_STRING   4

Definition at line 60 of file is_json.c.

Function Documentation

◆ file_is_json()

int file_is_json ( struct magic_set * ms,
const struct buffer * b )

Definition at line 422 of file is_json.c.