Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
G
glslang
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • glslang
  • Repository

Switch branch/tag
  • glslang
  • Test
  • preprocessor.eof_missing.vert
Find file
BlameHistoryPermalink
  • qining's avatar
    Fix the infinite loop when an input file lacks EOF · 19647a32
    qining authored Apr 11, 2016
    The input scanner can be trapped in an infinite loop if the given input
    file does not have EOF (and is not ended with a 'whitespace').
    
    The problem is caused by unget(), which keeps rolling back the scanner
    pointer without hitting an EOF at the end of the file. This makes getch()
    function keep returning the last character of the file and never ends,
    and the effect of advance() is always counteracted by unget().
    19647a32
preprocessor.eof_missing.vert 5 Bytes
EditWeb IDE
×

Replace preprocessor.eof_missing.vert

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.