Annotation of 43BSDReno/lib/libplot/grn/linemod.c, revision 1.1

1.1     ! root        1: /*
        !             2:  * Copyright (c) 1980, 1986 Regents of the University of California.
        !             3:  * All rights reserved.  The Berkeley software License Agreement
        !             4:  * specifies the terms and conditions for redistribution.
        !             5:  */
        !             6: 
        !             7: #ifndef lint
        !             8: static char sccsid[] = "@(#)linemod.c  6.1 (Berkeley) 8/29/86";
        !             9: #endif not lint
        !            10: 
        !            11: 
        !            12: #include "grnplot.h"
        !            13: 
        !            14: /*---------------------------------------------------------
        !            15:  *     Linemod sets the current line drawing style.
        !            16:  *
        !            17:  *     Results:        None.
        !            18:  *
        !            19:  *     Side Effects:
        !            20:  *     The line style is set based on string s which
        !            21:  *     must be one of "dotted", "solid", "longdashed", "shortdashed",
        !            22:  *     or "dotdashed".  If s isn't recognized, then "solid" is used.
        !            23:  *---------------------------------------------------------
        !            24:  */
        !            25: linemod(s)
        !            26: char *s;
        !            27: {
        !            28:     endvector();
        !            29:     if (strcmp(s, "dotted") == 0)
        !            30:        linestyle = 1;
        !            31:     else if (strcmp(s, "longdashed") == 0)
        !            32:        linestyle = 4;
        !            33:     else if (strcmp(s, "shortdashed") == 0)
        !            34:        linestyle = 4;
        !            35:     else if (strcmp(s, "dotdashed") == 0)
        !            36:        linestyle = 2;
        !            37:     else linestyle = DEFAULTLINE;
        !            38: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.