public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Gaius Mulley <gaius@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/modula-2] Correct module name component in global symbols. Date: Thu, 20 Jan 2022 17:32:21 +0000 (GMT) [thread overview] Message-ID: <20220120173221.2D93D3858D37@sourceware.org> (raw) https://gcc.gnu.org/g:2525979b7b8d37266db87430c79b2ac0881c996b commit 2525979b7b8d37266db87430c79b2ac0881c996b Author: Gaius Mulley <gaius.mulley@southwales.ac.uk> Date: Thu Jan 20 16:53:04 2022 +0000 Correct module name component in global symbols. 2022-20-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> libgm2/ChangeLog: * cgetopt.c: Replace all occurrences of getopt_ with cgetopt_ to conform to the Modula-2 naming scheme. Signed-off-by: Gaius Mulley <gaius.mulley@southwales.ac.uk> Diff: --- libgm2/libm2pim/cgetopt.c | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/libgm2/libm2pim/cgetopt.c b/libgm2/libm2pim/cgetopt.c index e76e4e15de6..0b69379a766 100644 --- a/libgm2/libm2pim/cgetopt.c +++ b/libgm2/libm2pim/cgetopt.c @@ -28,20 +28,20 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #include <stdlib.h> #include <getopt.h> -char *getopt_optarg; -int getopt_optind; -int getopt_opterr; -int getopt_optopt; +char *cgetopt_optarg; +int cgetopt_optind; +int cgetopt_opterr; +int cgetopt_optopt; char -getopt_getopt (int argc, char *argv[], char *optstring) +cgetopt_getopt (int argc, char *argv[], char *optstring) { char r = getopt (argc, argv, optstring); - getopt_optarg = optarg; - getopt_optind = optind; - getopt_opterr = opterr; - getopt_optopt = optopt; + cgetopt_optarg = optarg; + cgetopt_optind = optind; + cgetopt_opterr = opterr; + cgetopt_optopt = optopt; if (r == (char)-1) return (char)0; @@ -49,29 +49,29 @@ getopt_getopt (int argc, char *argv[], char *optstring) } int -getopt_getopt_long (int argc, char *argv[], char *optstring, +cgetopt_getopt_long (int argc, char *argv[], char *optstring, const struct option *longopts, int *longindex) { int r = getopt_long (argc, argv, optstring, longopts, longindex); - getopt_optarg = optarg; - getopt_optind = optind; - getopt_opterr = opterr; - getopt_optopt = optopt; + cgetopt_optarg = optarg; + cgetopt_optind = optind; + cgetopt_opterr = opterr; + cgetopt_optopt = optopt; return r; } int -getopt_getopt_long_only (int argc, char *argv[], char *optstring, +cgetopt_getopt_long_only (int argc, char *argv[], char *optstring, const struct option *longopts, int *longindex) { int r = getopt_long_only (argc, argv, optstring, longopts, longindex); - getopt_optarg = optarg; - getopt_optind = optind; - getopt_opterr = opterr; - getopt_optopt = optopt; + cgetopt_optarg = optarg; + cgetopt_optind = optind; + cgetopt_opterr = opterr; + cgetopt_optopt = optopt; return r; }
reply other threads:[~2022-01-20 17:32 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220120173221.2D93D3858D37@sourceware.org \ --to=gaius@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).