~vcs-imports/pmake/main

« back to all changes in this revision

Viewing changes to metachar.c

  • Committer: rillig
  • Date: 2021-06-21 18:54:41 UTC
  • Revision ID: rillig-20210621185441-k6ch7xx1m785aco0
make: replace macro is_shell_metachar with inline function

No functional change.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*      $NetBSD: metachar.c,v 1.9 2021/01/19 20:51:46 rillig Exp $      */
 
1
/*      $NetBSD: metachar.c,v 1.10 2021/06/21 18:54:41 rillig Exp $     */
2
2
 
3
3
/*
4
4
 * Copyright (c) 2015 The NetBSD Foundation, Inc.
39
39
 
40
40
#include "metachar.h"
41
41
 
42
 
MAKE_RCSID("$NetBSD: metachar.c,v 1.9 2021/01/19 20:51:46 rillig Exp $");
 
42
MAKE_RCSID("$NetBSD: metachar.c,v 1.10 2021/06/21 18:54:41 rillig Exp $");
43
43
 
44
44
/*
45
45
 * The following array is used to make a fast determination of which
48
48
 * directly by us.
49
49
 */
50
50
 
51
 
unsigned char _metachar[128] = {
 
51
const unsigned char _metachar[128] = {
52
52
/*    nul   soh   stx   etx   eot   enq   ack   bel */
53
53
        1,    0,    0,    0,    0,    0,    0,    0,
54
54
/*     bs    ht    nl    vt    np    cr    so    si */