Skip to content

v: support __global C.Name = i16(123) and @[c_extern] __global C.stdout &C.FILE declarations (in addition to @[c_extern] fn C.name()), to allow for more precise C API error checking (fix #25319)#25331

Merged
spytheman merged 4 commits into
vlang:masterfrom
spytheman:add__c_extern__support_for_globals
Sep 20, 2025

Conversation

@spytheman

@spytheman spytheman commented Sep 17, 2025

Copy link
Copy Markdown
Contributor
  • v: support @[c_extern] __global C.stdout &C.FILE declarations (in addition to @[c_extern] fn C.name()), to allow for more precise C API error checking
  • add test

Fix #25319 .

@spytheman spytheman changed the title add c extern support for globals v: support @[c_extern] __global C.stdout &C.FILE declarations (in addition to @[c_extern] fn C.name()), to allow for more precise C API error checking (fix #25319) Sep 17, 2025
@vlang vlang deleted a comment from huly-for-github Bot Sep 17, 2025
@spytheman spytheman changed the title v: support @[c_extern] __global C.stdout &C.FILE declarations (in addition to @[c_extern] fn C.name()), to allow for more precise C API error checking (fix #25319) v: support __global C.Name = i16(123) and @[c_extern] __global C.stdout &C.FILE declarations (in addition to @[c_extern] fn C.name()), to allow for more precise C API error checking (fix #25319) Sep 20, 2025
…ddition to `@[c_extern] fn C.name()`), to allow for more precise C API error checking
…(without @[c_extern]) too; add more tests
@spytheman spytheman force-pushed the add__c_extern__support_for_globals branch from 84623c2 to a43baf3 Compare September 20, 2025 12:16
@spytheman spytheman merged commit 8fa8354 into vlang:master Sep 20, 2025
81 of 83 checks passed
@spytheman spytheman deleted the add__c_extern__support_for_globals branch September 20, 2025 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

support C.xx var type redeclare in V

2 participants