morse.c (57527) | morse.c (73349) |
---|---|
1/* 2 * Copyright (c) 1988, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 33 unchanged lines hidden (view full) --- 42 The Regents of the University of California. All rights reserved.\n"; 43#endif /* not lint */ 44 45#ifndef lint 46#if 0 47static char sccsid[] = "@(#)morse.c 8.1 (Berkeley) 5/31/93"; 48#endif 49static const char rcsid[] = | 1/* 2 * Copyright (c) 1988, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 33 unchanged lines hidden (view full) --- 42 The Regents of the University of California. All rights reserved.\n"; 43#endif /* not lint */ 44 45#ifndef lint 46#if 0 47static char sccsid[] = "@(#)morse.c 8.1 (Berkeley) 5/31/93"; 48#endif 49static const char rcsid[] = |
50 "$FreeBSD: head/games/morse/morse.c 57527 2000-02-27 01:21:28Z joerg $"; | 50 "$FreeBSD: head/games/morse/morse.c 73349 2001-03-02 16:52:14Z ru $"; |
51#endif /* not lint */ 52 53#include <sys/time.h> 54 55#include <ctype.h> 56#include <fcntl.h> 57#include <locale.h> 58#include <signal.h> --- 254 unchanged lines hidden (view full) --- 313 dot_clock = dot_clock / 2; /* dot_clock runs at twice */ 314 /* the dot rate */ 315 dot_clock = dot_clock * 100; /* scale for ioctl */ 316 } 317 318 argc -= optind; 319 argv += optind; 320 | 51#endif /* not lint */ 52 53#include <sys/time.h> 54 55#include <ctype.h> 56#include <fcntl.h> 57#include <locale.h> 58#include <signal.h> --- 254 unchanged lines hidden (view full) --- 313 dot_clock = dot_clock / 2; /* dot_clock runs at twice */ 314 /* the dot rate */ 315 dot_clock = dot_clock * 100; /* scale for ioctl */ 316 } 317 318 argc -= optind; 319 argv += optind; 320 |
321 if((p = getenv("LC_CTYPE")) || 322 (p = getenv("LC_ALL")) || 323 (p = getenv("LANG"))) { | 321 if(((p = getenv("LC_ALL")) && *p) || 322 ((p = getenv("LC_CTYPE")) && *p) || 323 ((p = getenv("LANG")) && *p)) { |
324 if(strlen(p) >= sizeof(".KOI8-R") && 325 strcasecmp(&p[strlen(p) + 1 - sizeof(".KOI8-R")], ".KOI8-R") == 0) 326 hightab = koi8rtab; 327 } 328 (void) setlocale(LC_CTYPE, ""); 329 330 if (*argv) { 331 do { --- 161 unchanged lines hidden --- | 324 if(strlen(p) >= sizeof(".KOI8-R") && 325 strcasecmp(&p[strlen(p) + 1 - sizeof(".KOI8-R")], ".KOI8-R") == 0) 326 hightab = koi8rtab; 327 } 328 (void) setlocale(LC_CTYPE, ""); 329 330 if (*argv) { 331 do { --- 161 unchanged lines hidden --- |