亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? scanner.c

?? nVidia開發(fā)的圖形語言 Cg
?? C
?? 第 1 頁 / 共 3 頁
字號(hào):
/****************************************************************************\
Copyright (c) 2002, NVIDIA Corporation.

NVIDIA Corporation("NVIDIA") supplies this software to you in
consideration of your agreement to the following terms, and your use,
installation, modification or redistribution of this NVIDIA software
constitutes acceptance of these terms.  If you do not agree with these
terms, please do not use, install, modify or redistribute this NVIDIA
software.

In consideration of your agreement to abide by the following terms, and
subject to these terms, NVIDIA grants you a personal, non-exclusive
license, under NVIDIA's copyrights in this original NVIDIA software (the
"NVIDIA Software"), to use, reproduce, modify and redistribute the
NVIDIA Software, with or without modifications, in source and/or binary
forms; provided that if you redistribute the NVIDIA Software, you must
retain the copyright notice of NVIDIA, this notice and the following
text and disclaimers in all such redistributions of the NVIDIA Software.
Neither the name, trademarks, service marks nor logos of NVIDIA
Corporation may be used to endorse or promote products derived from the
NVIDIA Software without specific prior written permission from NVIDIA.
Except as expressly stated in this notice, no other rights or licenses
express or implied, are granted by NVIDIA herein, including but not
limited to any patent rights that may be infringed by your derivative
works or by other works in which the NVIDIA Software may be
incorporated. No hardware is licensed hereunder. 

THE NVIDIA SOFTWARE IS BEING PROVIDED ON AN "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED,
INCLUDING WITHOUT LIMITATION, WARRANTIES OR CONDITIONS OF TITLE,
NON-INFRINGEMENT, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
ITS USE AND OPERATION EITHER ALONE OR IN COMBINATION WITH OTHER
PRODUCTS.

IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT,
INCIDENTAL, EXEMPLARY, CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
TO, LOST PROFITS; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) OR ARISING IN ANY WAY
OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE
NVIDIA SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT,
TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF
NVIDIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\****************************************************************************/
// scanner.c
//

#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#if 0
#include <ieeefp.h>
#else
#define isinff(x) (((*(long *)&(x) & 0x7f800000L)==0x7f800000L) && \
                   ((*(long *)&(x) & 0x007fffffL)==0000000000L))
#endif

#include "slglobals.h"

const char *Build_Date = __DATE__;
const char *Build_Time = __TIME__;

typedef struct FileInputSrc {
    InputSrc            base;
    FILE                *fd;
    char                save_cnt;
    char                save[3];
} FileInputSrc;

typedef struct StringInputSrc {
    InputSrc base;
    char *p;
} StringInputSrc;

static int eof_scan(InputSrc *is)
{
    return EOF;
} // eof_scan

static void noop(InputSrc *in, int ch) {}

static InputSrc eof_inputsrc = { 0, &eof_scan, &eof_scan, &noop };

static int byte_scan(InputSrc *);
static int nextchar(FileInputSrc *);
static void ungetchar(FileInputSrc *, int);

#define EOL_SY '\n'

#if defined(_WIN32)
#define DBG_BREAKPOINT() __asm int 3
#else
#define DBG_BREAKPOINT()
#endif

#if defined(_WIN32)
__int64 RDTSC ( void ) {

    __int64 v;

    __asm __emit 0x0f
    __asm __emit 0x31
    __asm mov dword ptr v, eax
    __asm mov dword ptr v+4, edx

    return v;
}
#endif

int InitScanner(CgStruct *Cg)
{
    // Add various atoms needed by the CPP line scanner:
    if (!InitCPP())
        return 0;

    Cg->mostRecentToken = 0;
    Cg->tokenLoc = &Cg->ltokenLoc;

    Cg->ltokenLoc.file = 0;
    Cg->ltokenLoc.line = 0;
    Cg->errorCount = 0;
    Cg->warningCount = 0;
    Cg->lineCount = 0;
    Cg->AllowSemanticParseErrors = 0;

    Cg->currentInput = &eof_inputsrc;

    return 1;
} // InitScanner

int SetInputFile(const char *fname)
{
    FileInputSrc *in = malloc(sizeof(FileInputSrc));
    memset(in, 0, sizeof(FileInputSrc));
    if (fname) {
        if (!Cg->options.Quiet)
            printf("%s\n", fname);
        in->base.name = LookUpAddString(atable, fname);
        in->fd = fopen(fname, "r");
        if (!in->fd) {
            printf(OPENSL_TAG ": cannot open input file \"%s\"\n", fname);
            free(in);
            return 0;
        }
    } else {
        in->fd = stdin;
        in->base.name = LookUpAddString(atable, "<stdin>");
    }
    in->base.line = 1;
    in->base.scan = byte_scan;
    in->base.getch = (int (*)(InputSrc *)) nextchar;
    in->base.ungetch = (void (*)(InputSrc *, int)) ungetchar;
    in->base.prev = Cg->currentInput;
    Cg->currentInput = &in->base;
#if 0 && !defined(_DEBUG)
    if (Cg->options.TraceScanner) {
        __int64 s,e;
        s = RDTSC();
        while (Cg->currentInput->scan(Cg->currentInput) > 0)
            /* empty statement */ ;
        e = RDTSC();
        printf("%d cycles\n", (int)(e-s));
        return 0;
    }
#endif
    return 1;
} // SetInputFile

static int str_getch(StringInputSrc *in)
{
    if (*in->p)
        return *in->p++;
    Cg->currentInput = in->base.prev;
    free(in);
    return ' ';
} // str_getch

static void str_ungetch(StringInputSrc *in, int ch) {
    if (in->p[-1] == ch) in->p--;
} // str_ungetch

int ScanFromString(char *s)
{
    StringInputSrc *in = malloc(sizeof(StringInputSrc));
    memset(in, 0, sizeof(StringInputSrc));
    in->p = s;
    in->base.line = 1;
    in->base.scan = byte_scan;
    in->base.getch = (int (*)(InputSrc *))str_getch;
    in->base.ungetch = (void (*)(InputSrc *, int))str_ungetch;
    in->base.prev = Cg->currentInput;
    Cg->currentInput = &in->base;
    return 1;
} // ScanFromString;

int FreeScanner(CgStruct *Cg)
{
    FinalCPP();
    if (Cg->warningCount || Cg->errorCount || !Cg->options.Quiet) {
        fprintf(Cg->options.listfd, "%d lines", Cg->lineCount);
        if (Cg->warningCount)
            fprintf(Cg->options.listfd, ", %d warnings", Cg->warningCount);
        fprintf(Cg->options.listfd, ", %d errors.\n", Cg->errorCount);
    }
    return Cg->errorCount;
} // FreeScanner

int GetErrorCount(void)
{
    return Cg->errorCount;
} // GetErrorCount

/*
 * bumpErrorCount() - Useful for setting breakpoints when debugging.
 *
 */

void bumpErrorCount(void)
{
    Cg->errorCount++;
    if (Cg->options.TrapOnError) {
        DBG_BREAKPOINT();
    }
} // bumbErrorCount

/*
 * bumpWarningCount() - Useful for setting breakpoints when debugging.
 *
 */

void bumpWarningCount(void)
{
    Cg->warningCount++;
    if (Cg->options.TrapOnError) {
        DBG_BREAKPOINT();
    }
} // bumpWarningCount

// Called by yyparse on an error:

void yyerror(const char *s)
{
    if (!Cg->options.ErrorMode) {
        if (Cg->ltokenLoc.file) {
            fprintf(Cg->options.listfd, "%s(%d) : error C0000: ",
                    GetAtomString(atable, Cg->ltokenLoc.file), Cg->ltokenLoc.line);
        } else {
            fprintf(Cg->options.listfd, "(%d) : error C0000: ", Cg->currentInput->line);
        }
        fprintf(Cg->options.listfd, "%s at token \"%s\"\n", s,
                GetAtomString(atable, Cg->mostRecentToken));
        Cg->AllowSemanticParseErrors = 1;
    }
    bumpErrorCount();
} // yyerror

/*
 * SemanticParseError() - Compiler generated semantic error inside an error rule.
 *
 */

void SemanticParseError(SourceLoc *loc, int num, const char *mess, ...)
{
    va_list args;

    if (Cg->AllowSemanticParseErrors) {
        if (!Cg->options.ErrorMode) {
            if (loc->file) {
                fprintf(Cg->options.listfd, "%s(%d) : error C%04d: ",
                        GetAtomString(atable, loc->file), loc->line, num);
            } else {
                fprintf(Cg->options.listfd, "(%d) : error C%04d: ", loc->line, num);
            }
            va_start(args, mess);
            vfprintf(Cg->options.listfd, mess, args);
            va_end(args);
            fprintf(Cg->options.listfd, "\n");
            bumpErrorCount();
        } else {
            MarkErrorPosHit(loc);
        }

        Cg->AllowSemanticParseErrors = 0;
    }
} // SemanticParseError

/*
 * SemanticError() - Compiler generated semantic error.
 *
 */

void SemanticError(SourceLoc *loc, int num, const char *mess, ...)
{
    va_list args;

    if (!Cg->options.ErrorMode) {
        if (loc->file) {
            fprintf(Cg->options.listfd, "%s(%d) : error C%04d: ",
                    GetAtomString(atable, loc->file), loc->line, num);
        } else {
            fprintf(Cg->options.listfd, "(%d) : error C%04d: ", loc->line, num);
        }
        va_start(args, mess);
        vfprintf(Cg->options.listfd, mess, args);
        va_end(args);
        fprintf(Cg->options.listfd, "\n");
        bumpErrorCount();
    } else {
        MarkErrorPosHit(loc);
    }
} // SemanticError

/*
 * InternalError() - Internal compiler error.
 *
 */

void InternalError(SourceLoc *loc, int num, const char *mess, ...)
{
    va_list args;

    if (loc->file) {
        fprintf(Cg->options.listfd, "%s(%d) : error C%04d: ",
                GetAtomString(atable, loc->file), loc->line, num);
    } else {

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产中文字幕| 激情综合网天天干| 久久久久久久精| 91精品办公室少妇高潮对白| 久久99精品久久久| 亚洲地区一二三色| 国产精品久久久久久久久快鸭 | 亚洲香肠在线观看| 中文字幕第一页久久| 欧美va亚洲va| 欧美猛男gaygay网站| 99久久伊人网影院| 极品美女销魂一区二区三区 | 日韩国产在线观看一区| 亚洲男人电影天堂| 国产精品区一区二区三区| 日韩精品在线看片z| 欧美体内she精高潮| 91视频免费观看| 国产成人丝袜美腿| 国产一区日韩二区欧美三区| 免费成人av在线| 五月天视频一区| 亚洲午夜电影在线| 一区二区三区国产精品| 日韩毛片视频在线看| 国产精品三级av在线播放| 久久久91精品国产一区二区三区| 91精品国产欧美日韩| 欧美日韩在线播放三区四区| 在线视频观看一区| 色婷婷综合中文久久一本| 91亚洲精品一区二区乱码| 粉嫩av一区二区三区| 丁香啪啪综合成人亚洲小说| 国产高清不卡一区二区| 国产高清在线观看免费不卡| 国产福利精品一区| 国产99久久久国产精品免费看| 国精产品一区一区三区mba视频| 久久精品国产一区二区三| 久久99精品久久久| 国产一区二区三区观看| 国产剧情在线观看一区二区 | 欧美日韩免费观看一区三区| 日本高清不卡aⅴ免费网站| 色综合久久久久久久久| 欧美怡红院视频| 欧美一区二区三区在线电影 | 久久亚洲精品国产精品紫薇| 久久久久久久综合| 国产精品久久久一区麻豆最新章节| 欧美激情一区在线| 亚洲天堂a在线| 亚洲妇熟xx妇色黄| 久热成人在线视频| 成人一区二区三区中文字幕| 99视频一区二区| 欧美日韩综合不卡| 91精品国产综合久久婷婷香蕉| 日韩欧美亚洲国产另类| 久久久国产一区二区三区四区小说| 国产女人aaa级久久久级| 一色屋精品亚洲香蕉网站| 亚洲成人动漫在线免费观看| 日韩电影一二三区| 国产激情一区二区三区| 91香蕉视频mp4| 91精品蜜臀在线一区尤物| 久久久久久久久久久久久女国产乱| 国产日韩亚洲欧美综合| 一区二区三区精品视频| 裸体在线国模精品偷拍| 成人免费精品视频| 欧美精品视频www在线观看| 欧美精品一区二区在线观看| 中文字幕一区二区视频| 日韩成人av影视| 粉嫩嫩av羞羞动漫久久久| 欧美色电影在线| 国产日产欧美一区| 亚洲国产婷婷综合在线精品| 国产九九视频一区二区三区| 在线影视一区二区三区| 精品国精品国产| 一区二区在线免费观看| 国内精品国产成人国产三级粉色| 91在线一区二区三区| 精品国产免费一区二区三区香蕉| 亚洲欧美在线高清| 久国产精品韩国三级视频| 色欧美日韩亚洲| 欧美v亚洲v综合ⅴ国产v| 一区二区激情小说| 国产盗摄视频一区二区三区| 欧美二区三区91| 一区二区中文视频| 国产精品亚洲专一区二区三区| 欧美色窝79yyyycom| 国产精品视频免费看| 精品一区二区精品| 欧美日韩一区在线| 亚洲欧美日韩久久精品| 国产馆精品极品| 日韩一区二区三区免费看| 亚洲精品成人在线| 成人av电影在线观看| 精品国产伦理网| 午夜伊人狠狠久久| 日本久久精品电影| 中文字幕一区二区在线观看| 国产一区二区在线影院| 91精品国产91久久久久久最新毛片| 亚洲美女区一区| 不卡的av在线| 国产人久久人人人人爽| 狠狠色综合日日| 日韩欧美一二区| 美女在线观看视频一区二区| 欧美日免费三级在线| 一区二区三区高清| 91黄色激情网站| 综合自拍亚洲综合图不卡区| 丰满少妇久久久久久久| 久久精品日韩一区二区三区| 久久99精品久久久久久动态图| 91精品国产欧美一区二区成人| 亚洲成av人片一区二区梦乃| 91黄色激情网站| 亚洲五码中文字幕| 欧美日免费三级在线| 亚洲福利一二三区| 欧美老肥妇做.爰bbww视频| 性做久久久久久久久| 欧美日韩亚洲丝袜制服| 午夜久久久影院| 欧美高清精品3d| 秋霞电影一区二区| 精品欧美黑人一区二区三区| 黄页视频在线91| 久久精品人人做人人综合| 成人污视频在线观看| 国产精品久久久久久亚洲伦| 91蜜桃在线观看| 午夜精品久久久久久久久久| 91麻豆精品国产91| 激情文学综合网| 国产精品人妖ts系列视频| 色综合久久天天综合网| 午夜欧美2019年伦理| 欧美videos中文字幕| 国产成人啪免费观看软件| 中文字幕一区二区在线观看| 欧洲在线/亚洲| 奇米影视在线99精品| 国产欧美日韩激情| 日本高清不卡aⅴ免费网站| 午夜精品久久久久久久久| 精品va天堂亚洲国产| 99国产精品一区| 亚洲成人动漫在线观看| 欧美精品一区二区三区在线 | 99国产精品久久久久久久久久 | 日本丶国产丶欧美色综合| 日本不卡123| 国产精品每日更新| 欧美最猛性xxxxx直播| 久久99国产精品免费网站| ...中文天堂在线一区| 欧美高清视频一二三区| 国产成人午夜精品影院观看视频| 亚洲精品日韩一| 精品国产1区二区| 色婷婷亚洲综合| 国内外成人在线视频| 亚洲欧洲制服丝袜| 亚洲精品一区二区三区影院| 99国产精品一区| 精品中文字幕一区二区小辣椒| 国产精品―色哟哟| 欧美一级xxx| 97超碰欧美中文字幕| 久久成人羞羞网站| 亚洲在线成人精品| 久久久精品天堂| 欧美日韩国产系列| aaa亚洲精品| 狠狠色综合播放一区二区| 亚洲国产欧美在线| 国产精品福利一区| 欧美变态口味重另类| 91电影在线观看| 成人看片黄a免费看在线| 蜜桃视频免费观看一区| 亚洲精品免费看| 中文字幕精品一区二区精品绿巨人 | 欧美喷水一区二区| 99久久伊人精品| 国产精品66部| 久久99国内精品|