citrus_prop.c
Source contains an unconditional loopCalls a character-class helper
SHA-2567394c8d485b97465c731ec7bdd67ce84783b7dc05a77b8ce52694f8045bb37e8
MaleculeO(Er)H(Db₂)
Evidence
⋯6 lines
7 * All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions
11 * are met:
12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must repr …
20:6… PLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE …
⋯4 lines
31
32
33#include <assert.h>
34#include <errno.h>
35#include <limits.h>
36#include <stdbool.h>
37#include <stddef.h>
38#include <stdio.h>
39#include <stdint.h>
40#include <stdlib.h>
41#include <string.h>
42
43#include "citrus_namespace.h"
44#include "citrus_bcs.h"
45#include "citrus_region.h"
46#include "citrus_memstream.h"
47#include "citrus_prop.h"
48
49typedef struct {
⋯5 lines
132:15… ; \
133 } \
134 base += 8; \
135 } \
136 } else if (_bcs_isdigit(ch) == 0) \
137 return (EINVAL); \
138 _memstream_ungetc(ms, ch); \
139 return (_citrus_prop_read_##_func_##_common \
140 (ms, …
345:77…
346{
347 int ch, errnum;
348#define _CITRUS_PROP_HINT_NAME_LEN_MAX 255
349 char name[_CITRUS_PROP_HINT_NAME_LEN_MAX + 1];
350 const _citrus_prop_hint_t *hint;
351 _citrus_prop_object_t ostart, oend;
352
353 errnum = _citrus_p …