Home | History | Annotate | Line # | Download | only in dist
att.c revision 1.1.1.8
      1  1.1.1.8  christos /*	$Id: att.c,v 1.1.1.8 2015/12/17 21:58:48 christos Exp $ */
      2      1.1     joerg /*
      3  1.1.1.5     joerg  * Copyright (c) 2009 Kristaps Dzonsons <kristaps (at) bsd.lv>
      4      1.1     joerg  *
      5      1.1     joerg  * Permission to use, copy, modify, and distribute this software for any
      6      1.1     joerg  * purpose with or without fee is hereby granted, provided that the above
      7      1.1     joerg  * copyright notice and this permission notice appear in all copies.
      8      1.1     joerg  *
      9      1.1     joerg  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
     10      1.1     joerg  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
     11      1.1     joerg  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
     12      1.1     joerg  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
     13      1.1     joerg  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
     14      1.1     joerg  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
     15      1.1     joerg  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     16      1.1     joerg  */
     17  1.1.1.3     joerg #include "config.h"
     18  1.1.1.3     joerg 
     19  1.1.1.8  christos #include <sys/types.h>
     20      1.1     joerg #include <string.h>
     21      1.1     joerg 
     22  1.1.1.6     joerg #include "mdoc.h"
     23      1.1     joerg #include "libmdoc.h"
     24      1.1     joerg 
     25      1.1     joerg #define LINE(x, y) \
     26  1.1.1.8  christos 	if (0 == strcmp(p, x)) return(y)
     27  1.1.1.8  christos 
     28      1.1     joerg 
     29      1.1     joerg const char *
     30      1.1     joerg mdoc_a2att(const char *p)
     31      1.1     joerg {
     32      1.1     joerg 
     33  1.1.1.8  christos 	LINE("v1",	"Version\\~1 AT&T UNIX");
     34  1.1.1.8  christos 	LINE("v2",	"Version\\~2 AT&T UNIX");
     35  1.1.1.8  christos 	LINE("v3",	"Version\\~3 AT&T UNIX");
     36  1.1.1.8  christos 	LINE("v4",	"Version\\~4 AT&T UNIX");
     37  1.1.1.8  christos 	LINE("v5",	"Version\\~5 AT&T UNIX");
     38  1.1.1.8  christos 	LINE("v6",	"Version\\~6 AT&T UNIX");
     39  1.1.1.8  christos 	LINE("v7",	"Version\\~7 AT&T UNIX");
     40  1.1.1.8  christos 	LINE("32v",	"Version\\~32V AT&T UNIX");
     41  1.1.1.8  christos 	LINE("III",	"AT&T System\\~III UNIX");
     42  1.1.1.8  christos 	LINE("V",	"AT&T System\\~V UNIX");
     43  1.1.1.8  christos 	LINE("V.1",	"AT&T System\\~V Release\\~1 UNIX");
     44  1.1.1.8  christos 	LINE("V.2",	"AT&T System\\~V Release\\~2 UNIX");
     45  1.1.1.8  christos 	LINE("V.3",	"AT&T System\\~V Release\\~3 UNIX");
     46  1.1.1.8  christos 	LINE("V.4",	"AT&T System\\~V Release\\~4 UNIX");
     47      1.1     joerg 
     48      1.1     joerg 	return(NULL);
     49      1.1     joerg }
     50