morse.c (203479) | morse.c (203921) |
---|---|
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 203479 2010-02-04 07:08:06Z imp $"; | 50 "$FreeBSD: head/games/morse/morse.c 203921 2010-02-15 14:31:05Z uqs $"; |
51#endif /* not lint */ 52 53#include <sys/time.h> 54 55#include <ctype.h> 56#include <fcntl.h> 57#include <langinfo.h> 58#include <locale.h> --- 7 unchanged lines hidden (view full) --- 66/* Always use the speaker, let the open fail if -p is selected */ 67#define SPEAKER "/dev/speaker" 68 69#ifdef SPEAKER 70#include <dev/speaker/speaker.h> 71#endif 72 73struct morsetab { | 51#endif /* not lint */ 52 53#include <sys/time.h> 54 55#include <ctype.h> 56#include <fcntl.h> 57#include <langinfo.h> 58#include <locale.h> --- 7 unchanged lines hidden (view full) --- 66/* Always use the speaker, let the open fail if -p is selected */ 67#define SPEAKER "/dev/speaker" 68 69#ifdef SPEAKER 70#include <dev/speaker/speaker.h> 71#endif 72 73struct morsetab { |
74 char inchar; 75 char *morse; | 74 const char inchar; 75 const char *morse; |
76}; 77 78static const struct morsetab mtab[] = { 79 80 /* letters */ 81 82 {'a', ".-"}, 83 {'b', "-..."}, --- 505 unchanged lines hidden --- | 76}; 77 78static const struct morsetab mtab[] = { 79 80 /* letters */ 81 82 {'a', ".-"}, 83 {'b', "-..."}, --- 505 unchanged lines hidden --- |